Skip to contentSkip to conversation

docker-distribution: bump to v3.0.0 stable version

PATCH In review [email protected] 2 participants 6 messages May 29, 2025 – May 30, 2025 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 docker-distribution: bump to v3.0.0 stable version

From: Chen Qi <[email protected]>

Bump docker-distribution from v3.0.0-beta.1 to v3.0.0 stable version.

---
 .../docker-distribution/docker-distribution_git.bb            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-containers/docker-distribution/docker-distribution_git.bb +2 -2
index 495b0d17..41c4e227 100644
@@ -3,7 +3,7 @@ SUMMARY = "The Docker toolset to pack, ship, store, and deliver content"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"
 
-SRCREV_distribution = "f22dd6186008ff9d35f92acc5bc5fd16ba7ef95a"
+SRCREV_distribution = "9ed95e7365224025ee89365e12cf128e1f1bf965"
 SRC_URI = "git://github.com/docker/distribution.git;branch=main;name=distribution;destsuffix=git/src/github.com/distribution/distribution/v3;protocol=https \
            file://docker-registry.service \
            file://0001-build-use-to-use-cross-go-compiler.patch \
@@ -11,7 +11,7 @@ SRC_URI = "git://github.com/docker/distribution.git;branch=main;name=distributio
 
 PACKAGES =+ "docker-registry"
 
-PV = "v3.0.0-beta.1"
+PV = "v3.0.0"
 S = "${WORKDIR}/git/src/github.com/distribution/distribution/v3"
 
 GO_IMPORT = "import"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/3 docker-distribution: get rid of unknown in version output

From: Chen Qi <[email protected]>

The '+unknown' is a deliberate design which is expected to be overridden at build time by VERSION environment variable.

However, after the following commit, things cannot be overridden.

a74cacf (version: export getter functions)

This is because variable beginning with small letter is a private one and cannot be exported or overridden.

An issue has been filed for upstream:
https://github.com/distribution/distribution/issues/4627

Before that issue is resolved, we need to sed the file manually.

---
 .../docker-distribution/docker-distribution_git.bb              | 2 ++
 1 file changed, 2 insertions(+)
recipes-containers/docker-distribution/docker-distribution_git.bb +2 -0
index 41c4e227..58308b82 100644
@@ -39,6 +39,8 @@ do_compile() {
 
 	cd ${S}
 
+	# See https://github.com/distribution/distribution/issues/4627
+	sed -i -e 's#+unknown##' version/version.go
 	oe_runmake binaries
 }
 
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/3 docker-distribution: fix build for 386

In reply to [email protected]

From: Chen Qi <[email protected]>

The build error could be reproduced by using qemux86 as the MACHINE or using qemux86-64 as the MACHINE and then running 'bitbake lib32-docker-distribution'.

The root cause is the wrong file (s3_64bit.go) is imported. Fix the tag matching to ensure s3_32bit.go is imported in case of 386.

---
 .../docker-distribution_git.bb                |  1 +
 .../files/0001-s3-aws-fix-build-for-386.patch | 45 +++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 recipes-containers/docker-distribution/files/0001-s3-aws-fix-build-for-386.patch
recipes-containers/docker-distribution/docker-distribution_git.bb +1 -0
index 58308b82..240da797 100644
@@ -7,6 +7,7 @@ SRCREV_distribution = "9ed95e7365224025ee89365e12cf128e1f1bf965"
 SRC_URI = "git://github.com/docker/distribution.git;branch=main;name=distribution;destsuffix=git/src/github.com/distribution/distribution/v3;protocol=https \
            file://docker-registry.service \
            file://0001-build-use-to-use-cross-go-compiler.patch \
+           file://0001-s3-aws-fix-build-for-386.patch \
           "
 
 PACKAGES =+ "docker-registry"
recipes-containers/docker-distribution/files/0001-s3-aws-fix-build-for-386.patch new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.34.1
#3 lore raw
In reply to [email protected]

As I've mentioned before, I'm not doing package upgrades at the moment.

A full pass of the recipes will happen at the m2 timeframe of the current release.

Cheers,

Bruce

Quoted 53 lines · Chen Qi via lists.yoctoproject.org

From: Chen Qi <[email protected]>

Bump docker-distribution from v3.0.0-beta.1 to v3.0.0 stable version.

---
 .../docker-distribution/docker-distribution_git.bb            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

docker-distribution_git.bb b/recipes-containers/docker-distribution/ docker-distribution_git.bb
index 495b0d17..41c4e227 100644

recipes-containers/docker-distribution/docker-distribution_git.bb +0 -0
@@ -3,7 +3,7 @@ SUMMARY = "The Docker toolset to pack, ship, store, and

deliver content"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"

recipes-containers/docker-distribution/docker-distribution_git.bb +1 -1
-SRCREV_distribution = "f22dd6186008ff9d35f92acc5bc5fd16ba7ef95a"
+SRCREV_distribution = "9ed95e7365224025ee89365e12cf128e1f1bf965"
 SRC_URI = "git://

github.com/docker/distribution.git;branch=main;name=distribution;destsuffix=git/src/github.com/distribution/distribution/v3;protocol=https

\
            file://docker-registry.service \
            file://0001-build-use-to-use-cross-go-compiler.patch \
recipes-containers/docker-distribution/docker-distribution_git.bb +0 -0
@@ -11,7 +11,7 @@ SRC_URI = "git://

github.com/docker/distribution.git;branch=main;name=distributio

PACKAGES =+ "docker-registry"

recipes-containers/docker-distribution/docker-distribution_git.bb +1 -2
-PV = "v3.0.0-beta.1"
+PV = "v3.0.0"
 S = "${WORKDIR}/git/src/github.com/distribution/distribution/v3"
 
 GO_IMPORT = "import"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9262):
https://lists.yoctoproject.org/g/meta-virtualization/message/9262
Mute This Topic: https://lists.yoctoproject.org/mt/113356930/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

I should clarify that my statement doesn't mean I won't take the change, just that some of the commits will be slightly different and that it won't be in the tree for a few weeks yet.

Bruce

Quoted 75 lines · Bruce Ashfield via lists.yoctoproject.org

As I've mentioned before, I'm not doing package upgrades at the moment.

A full pass of the recipes will happen at the m2 timeframe of the current release.

Cheers,

Bruce

Quoted 39 lines · Chen Qi via lists.yoctoproject.org

From: Chen Qi <[email protected]>

Bump docker-distribution from v3.0.0-beta.1 to v3.0.0 stable version.

---
 .../docker-distribution/docker-distribution_git.bb            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

docker-distribution_git.bb b/recipes-containers/docker-distribution/ docker-distribution_git.bb
index 495b0d17..41c4e227 100644

recipes-containers/docker-distribution/docker-distribution_git.bb +0 -0
@@ -3,7 +3,7 @@ SUMMARY = "The Docker toolset to pack, ship, store, and

deliver content"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"

recipes-containers/docker-distribution/docker-distribution_git.bb +1 -1
-SRCREV_distribution = "f22dd6186008ff9d35f92acc5bc5fd16ba7ef95a"
+SRCREV_distribution = "9ed95e7365224025ee89365e12cf128e1f1bf965"
 SRC_URI = "git://

github.com/docker/distribution.git;branch=main;name=distribution;destsuffix=git/src/github.com/distribution/distribution/v3;protocol=https

\
            file://docker-registry.service \
            file://0001-build-use-to-use-cross-go-compiler.patch \
recipes-containers/docker-distribution/docker-distribution_git.bb +0 -0
@@ -11,7 +11,7 @@ SRC_URI = "git://

github.com/docker/distribution.git;branch=main;name=distributio

PACKAGES =+ "docker-registry"

recipes-containers/docker-distribution/docker-distribution_git.bb +1 -2
-PV = "v3.0.0-beta.1"
+PV = "v3.0.0"
 S = "${WORKDIR}/git/src/github.com/distribution/distribution/v3"
 
 GO_IMPORT = "import"
--
Quoted 6 lines

2.34.1

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9265):
https://lists.yoctoproject.org/g/meta-virtualization/message/9265
Mute This Topic: https://lists.yoctoproject.org/mt/113356930/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
author
#6 lore raw

Got it. Thanks for the information.

Regards,
Qi

Quoted 109 lines · Bruce Ashfield

I should clarify that my statement doesn't mean I won't take the change, just that some of the commits will be slightly different and that it won't be in the tree for a few weeks yet.

Bruce

On Thu, May 29, 2025 at 9:07 AM Bruce Ashfield via lists.yoctoproject.org <https://urldefense.com/v3/__http://lists.yoctoproject.org__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeP6s1CcuQ$> <[email protected]> wrote:

    As I've mentioned before, I'm not doing package upgrades at the
    moment.

    A full pass of the recipes will happen at the m2 timeframe of the
    current release.

    Cheers,

    Bruce

    On Wed, May 28, 2025 at 11:51 PM Chen Qi via
    lists.yoctoproject.org
    <https://urldefense.com/v3/__http://lists.yoctoproject.org__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeP6s1CcuQ$>
    <[email protected]> wrote:

        From: Chen Qi <[email protected]>

        Bump docker-distribution from v3.0.0-beta.1 to v3.0.0 stable
        version.

        Signed-off-by: Chen Qi <[email protected]>
        ---
         .../docker-distribution/docker-distribution_git.bb
        <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeNnIxX_zw$>
                  | 4 ++--
         1 file changed, 2 insertions(+), 2 deletions(-)

        diff --git
        a/recipes-containers/docker-distribution/docker-distribution_git.bb
        <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeNnIxX_zw$>
        b/recipes-containers/docker-distribution/docker-distribution_git.bb
        <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeNnIxX_zw$>
        index 495b0d17..41c4e227 100644
        ---
        a/recipes-containers/docker-distribution/docker-distribution_git.bb
        <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeNnIxX_zw$>
        +++
        b/recipes-containers/docker-distribution/docker-distribution_git.bb
        <https://urldefense.com/v3/__http://docker-distribution_git.bb__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeNnIxX_zw$>
        @@ -3,7 +3,7 @@ SUMMARY = "The Docker toolset to pack, ship,
        store, and deliver content"
         LICENSE = "Apache-2.0"
         LIC_FILES_CHKSUM =
        "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"

        -SRCREV_distribution = "f22dd6186008ff9d35f92acc5bc5fd16ba7ef95a"
        +SRCREV_distribution = "9ed95e7365224025ee89365e12cf128e1f1bf965"
         SRC_URI =
        "git://github.com/docker/distribution.git;branch=main;name=distribution;destsuffix=git/src/github.com/distribution/distribution/v3;protocol=https
        <https://urldefense.com/v3/__http://github.com/docker/distribution.git;branch=main;name=distribution;destsuffix=git/src/github.com/distribution/distribution/v3;protocol=https__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTePG79BEsg$>
        \
        file://docker-registry.service \
        file://0001-build-use-to-use-cross-go-compiler.patch \
        @@ -11,7 +11,7 @@ SRC_URI =
        "git://github.com/docker/distribution.git;branch=main;name=distributio
        <https://urldefense.com/v3/__http://github.com/docker/distribution.git;branch=main;name=distributio__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeNZhIK9BA$>

         PACKAGES =+ "docker-registry"

        -PV = "v3.0.0-beta.1"
        +PV = "v3.0.0"
         S =
        "${WORKDIR}/git/src/github.com/distribution/distribution/v3
        <https://urldefense.com/v3/__http://github.com/distribution/distribution/v3__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeP7xKkdog$>"

         GO_IMPORT = "import"
        -- 
        2.34.1






    -- 
    - Thou shalt not follow the NULL pointer, for chaos and madness
    await thee at its end
    - "Use the force Harry" - Gandalf, Star Trek II


    -=-=-=-=-=-=-=-=-=-=-=-
    Links: You receive all messages sent to this group.
    View/Reply Online (#9265):
    https://lists.yoctoproject.org/g/meta-virtualization/message/9265
    <https://urldefense.com/v3/__https://lists.yoctoproject.org/g/meta-virtualization/message/9265__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeO33WvCZw$>
    Mute This Topic:
    https://lists.yoctoproject.org/mt/113356930/1050810
    <https://urldefense.com/v3/__https://lists.yoctoproject.org/mt/113356930/1050810__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeN3Dm0PBg$>
    Group Owner: [email protected]
    <mailto:meta-virtualization%[email protected]>
    Unsubscribe:
    https://lists.yoctoproject.org/g/meta-virtualization/unsub
    <https://urldefense.com/v3/__https://lists.yoctoproject.org/g/meta-virtualization/unsub__;!!AjveYdw8EvQ!fQ8kvvvqSbAgOR-75085HlgS_XCnBnPmNwmI4HQtxRPrWJrZ9_6HN8Re0dVus8hEc_pC1Zkw2Q4GppmNTeMILSpBbQ$>
    [[email protected]]
    -=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await 
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II