Skip to contentSkip to conversation

support/docker/Dockerfile: unbreak 32bit support for x86-64

PATCH In review Peter Korsgaard 1 participant 8 messages Feb 19, 2025 – Feb 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 support/docker/Dockerfile: unbreak 32bit support for x86-64

Fixes ttps://gitlab.com/buildroot.org/buildroot/-/jobs/9153298207

Commit 3bc94471ca8a ("support/docker: prepare for Aarch64 Docker images") reworked the Dockerfile to only add the 32bit support when building for x86-64, but it forgot to add a TARGETPLATFORM argument so the conditionals never triggers.

Fix it by adding a TARGETPLATFORM argument as explained here:
https://forums.docker.com/t/build-multi-arch-images-with-different-commands-per-architecture-in-docker-file/134795

---
 support/docker/Dockerfile | 3 +++
 1 file changed, 3 insertions(+)
support/docker/Dockerfile +3 -0
index d0bdc73bbf..12d3fe024c 100644
@@ -14,6 +14,9 @@ LABEL maintainer="Buildroot mailing list <[email protected]>" \
       vendor="Buildroot" \
 description="Container with everything needed to run Buildroot"
 
+# Architecture to build for
+ARG TARGETPLATFORM
+
 # We need tar >= 1.35
 ARG TAR_VERSION="1.35"
 
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/4 support/docker/Dockerfile: fix typo in tar configure options

Commit 12e9fc1da5d4 ("support/docker: add tar 1.35") added logic to download and build tar for the host, but mistyped a configure option:

configure: WARNING: unrecognized options: --disable-year2028

Fix that.

---
 support/docker/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/docker/Dockerfile +1 -1
index 12d3fe024c..e7677ac6a9 100644
@@ -80,7 +80,7 @@ RUN curl -sfL https://ftpmirror.gnu.org/tar/tar-${TAR_VERSION}.tar.xz | \
     tar -Jx -C /tmp && \
     cd /tmp/tar-${TAR_VERSION} && \
     FORCE_UNSAFE_CONFIGURE=1 ./configure \
-        --disable-year2028 && \
+        --disable-year2038 && \
     make && \
     make install && \
     rm -rf /tmp/tar-${TAR_VERSION}
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/4] support/docker/Dockerfile: fix typo in tar configure options

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Commit 12e9fc1da5d4 ("support/docker: add tar 1.35") added logic to download and build tar for the host, but mistyped a configure option:

configure: WARNING: unrecognized options: --disable-year2028

Fix that.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH 3/4 support/docker/apt-sources.list: move to 20250218 snapshot

In reply to Peter Korsgaard

With the TARGETPLATFORM fix we need to rebuild the container so move to the latest snapshot to get updated (security) fixes.

---
 support/docker/apt-sources.list | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
support/docker/apt-sources.list +4 -4
index ddbe15eed8..d6fbf85270 100644
@@ -1,4 +1,4 @@
-# Latest just before 20250205151400Z:
-deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20250205T145632Z/ bookworm main
-deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/20250205T145632Z/ bookworm-security main
-deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20250205T145632Z/ bookworm-updates main
+# Latest just before 20250218211000Z:
+deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20250218T144938Z/ bookworm main
+deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/20250218T144938Z/ bookworm-security main
+deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20250218T144938Z/ bookworm-updates main
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

Re: [Buildroot] [PATCH 3/4] support/docker/apt-sources.list: move to 20250218 snapshot

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

With the TARGETPLATFORM fix we need to rebuild the container so move to the latest snapshot to get updated (security) fixes.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH 4/4 .gitlab-ci.yml: use Debian 12-based container with fixed 32bit support

In reply to Peter Korsgaard
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.yml +1 -1
index 7eba876a54..6c7afb7518 100644
@@ -1,7 +1,7 @@
 # Configuration for Gitlab-CI.
 # Builds appear on https://gitlab.com/buildroot.org/buildroot/pipelines
 
-image: $CI_REGISTRY/buildroot.org/buildroot/base:20250205.1514
+image: $CI_REGISTRY/buildroot.org/buildroot/base:20250218.2110
 
 stages:
   - generate-gitlab-ci
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Re: [Buildroot] [PATCH 4/4] .gitlab-ci.yml: use Debian 12-based container with fixed 32bit support

Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw
In reply to Peter Korsgaard
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Fixes ttps://gitlab.com/buildroot.org/buildroot/-/jobs/9153298207 Commit 3bc94471ca8a ("support/docker: prepare for Aarch64 Docker images") reworked the Dockerfile to only add the 32bit support when building for x86-64, but it forgot to add a TARGETPLATFORM argument so the conditionals never triggers.

Quoted 4 lines

Fix it by adding a TARGETPLATFORM argument as explained here:
https://forums.docker.com/t/build-multi-arch-images-with-different-commands-per-architecture-in-docker-file/134795

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot