Skip to content

[20.10 backport] deb: scan: include packaging revision and distro version in version#826

Closed
thaJeztah wants to merge 1 commit into
docker:20.10from
thaJeztah:20.10_backport_scan_include_distro
Closed

[20.10 backport] deb: scan: include packaging revision and distro version in version#826
thaJeztah wants to merge 1 commit into
docker:20.10from
thaJeztah:20.10_backport_scan_include_distro

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Jan 11, 2023

Aligning the plugin's version with the format used for docker-ce and
docker-ce-cli, as updated in 39772a7

Before this patch:

deb/debbuild/
└── ubuntu-jammy
    ├── docker-buildx-plugin_0.10.0-1~ubuntu.22.04-jammy_arm64.deb
    ├── docker-ce-cli_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-ce-rootless-extras_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-ce_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-compose-plugin_2.15.1-1~ubuntu.22.04-jammy_arm64.deb
    └── docker-scan-plugin_0.23.0~ubuntu-jammy_arm64.deb

With this patch:

deb/debbuild/
└── ubuntu-jammy
    ├── docker-buildx-plugin_0.10.0-1~ubuntu.22.04-jammy_arm64.deb
    ├── docker-ce-cli_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-ce-rootless-extras_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-ce_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
    ├── docker-compose-plugin_2.15.1-1~ubuntu.22.04-jammy_arm64.deb
    └── docker-scan-plugin_0.23.0-1~ubuntu.22.04-jammy_arm64.deb

@tianon
Copy link
Copy Markdown
Contributor

tianon commented Jan 11, 2023

#823 (comment) 👀

Comment thread deb/common/rules Outdated
# Use separate version for the compose-plugin package, then generate the other control files as usual
# TODO override "Source" field in control as well (to point to compose, as it doesn't match the package name)
dh_gencontrol -pdocker-compose-plugin -- -v$${COMPOSE_VERSION#v}~$${DISTRO}-$${SUITE}
dh_gencontrol -pdocker-compose-plugin -- -v$${COMPOSE_DEB_VERSION#v}-$${PKG_REVISION}~$${DISTRO}.$${VERSION_ID}-$${SUITE}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dh_gencontrol -pdocker-compose-plugin -- -v$${COMPOSE_DEB_VERSION#v}-$${PKG_REVISION}~$${DISTRO}.$${VERSION_ID}-$${SUITE}
dh_gencontrol -pdocker-compose-plugin -- -v$${COMPOSE_DEB_VERSION#v}-$${PKG_REVISION}~$${DISTRO}.$${VERSION_ID}~$${SUITE}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I skipped the compose changes in this one, but those will get in through #825

Comment thread deb/common/rules Outdated
tianon
tianon previously approved these changes Jan 11, 2023
Aligning the plugin's version with the format used for docker-ce and
docker-ce-cli, as updated in 39772a7

Before this patch:

    deb/debbuild/
    └── ubuntu-jammy
        ├── docker-buildx-plugin_0.10.0-1~ubuntu.22.04-jammy_arm64.deb
        ├── docker-ce-cli_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-ce-rootless-extras_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-ce_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-compose-plugin_2.15.1-1~ubuntu.22.04-jammy_arm64.deb
        └── docker-scan-plugin_0.23.0~ubuntu-jammy_arm64.deb

With this patch:

    deb/debbuild/
    └── ubuntu-jammy
        ├── docker-buildx-plugin_0.10.0-1~ubuntu.22.04-jammy_arm64.deb
        ├── docker-ce-cli_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-ce-rootless-extras_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-ce_23.0.0~rc.2-1~ubuntu.22.04~jammy_arm64.deb
        ├── docker-compose-plugin_2.15.1-1~ubuntu.22.04-jammy_arm64.deb
        └── docker-scan-plugin_0.23.0-1~ubuntu.22.04~jammy_arm64.deb

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 1f2ff93)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the 20.10_backport_scan_include_distro branch from 476a9af to 83b567d Compare February 7, 2023 12:05
@thaJeztah
Copy link
Copy Markdown
Member Author

@thaJeztah thaJeztah closed this Mar 31, 2023
@thaJeztah thaJeztah deleted the 20.10_backport_scan_include_distro branch March 31, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants