docker: Remove LegacyKeyValueFormat warnings
cover docker: Remove LegacyKeyValueFormat warnings
Update MAINTAINERS entries for manually maintained Dockerfiles.
Remove warnings such:
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 98)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 64)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 97)
See https://docs.docker.com/reference/build-checks/legacy-key-value-format/
Philippe Mathieu-Daudé (7):
MAINTAINERS: Fix docker/dockerfiles/debian-hexagon-cross.docker path
MAINTAINERS: Cover debian-loongarch-cross.docker with LoongArch
section
MAINTAINERS: Cover debian-xtensa-cross.docker with Xtensa section
MAINTAINERS: Cover debian-tricore-cross.docker with TriCore section
MAINTAINERS: Cover python.docker with Python library section
docker: Remove LegacyKeyValueFormat warnings in non-generated files
docker: Remove LegacyKeyValueFormat warnings in generated files
MAINTAINERS | 6 +++++- tests/lcitool/refresh | 12 +++++++----- tests/docker/dockerfiles/alpine.docker | 2 +- tests/docker/dockerfiles/centos9.docker | 2 +- .../dockerfiles/debian-all-test-cross.docker | 10 ++++++---- tests/docker/dockerfiles/debian-amd64-cross.docker | 2 +- tests/docker/dockerfiles/debian-arm64-cross.docker | 2 +- tests/docker/dockerfiles/debian-armhf-cross.docker | 2 +- .../docker/dockerfiles/debian-hexagon-cross.docker | 14 +++++++------- tests/docker/dockerfiles/debian-i686-cross.docker | 2 +- .../dockerfiles/debian-loongarch-cross.docker | 10 +++++----- .../dockerfiles/debian-mips64el-cross.docker | 2 +- .../docker/dockerfiles/debian-mipsel-cross.docker | 2 +- .../docker/dockerfiles/debian-ppc64el-cross.docker | 2 +- .../docker/dockerfiles/debian-riscv64-cross.docker | 2 +- tests/docker/dockerfiles/debian-s390x-cross.docker | 2 +- .../docker/dockerfiles/debian-tricore-cross.docker | 6 +++--- .../docker/dockerfiles/debian-xtensa-cross.docker | 8 ++++---- tests/docker/dockerfiles/debian.docker | 2 +- .../docker/dockerfiles/fedora-rust-nightly.docker | 2 +- tests/docker/dockerfiles/fedora-win64-cross.docker | 2 +- tests/docker/dockerfiles/fedora.docker | 2 +- tests/docker/dockerfiles/opensuse-leap.docker | 2 +- tests/docker/dockerfiles/python.docker | 5 +++-- scripts/coverity-scan/coverity-scan.docker | 12 ++++++------ scripts/git.orderfile | 4 ++++ 26 files changed, 66 insertions(+), 53 deletions(-)
Signature · 1 line
2.53.0
PATCH 1/7 MAINTAINERS: Fix docker/dockerfiles/debian-hexagon-cross.docker path
---
Cc: Brian Cain <[email protected]>
Cc: Pierrick Bouvier <[email protected]>
--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -257,7 +257,7 @@ F: linux-user/hexagon/ F: tests/tcg/hexagon/ F: disas/hexagon.c F: configs/targets/hexagon-linux-user/default.mak -F: docker/dockerfiles/debian-hexagon-cross.docker +F: tests/docker/dockerfiles/debian-hexagon-cross.docker F: gdbstub/gdb-xml/hexagon*.xml T: git https://github.com/quic/qemu.git hex-next
Signature · 1 line
2.53.0
Re: [PATCH 1/7] MAINTAINERS: Fix docker/dockerfiles/debian-hexagon-cross.docker path
Quoted 7 lines · Philippe Mathieu-Daudé
Fixes afbdf0a44ea ("docker: Add Hexagon image")Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Cc: Brian Cain <[email protected]>
Cc: Pierrick Bouvier <[email protected]>
---
Quoted 19 lines
MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)MAINTAINERS +1
-2@@ -257,7 +257,7 @@ F: linux-user/hexagon/ F: tests/tcg/hexagon/ F: disas/hexagon.c F: configs/targets/hexagon-linux-user/default.mak -F: docker/dockerfiles/debian-hexagon-cross.docker +F: tests/docker/dockerfiles/debian-hexagon-cross.docker F: gdbstub/gdb-xml/hexagon*.xml T: git https://github.com/quic/qemu.git hex-next --2.53.0
Re: [PATCH 1/7] MAINTAINERS: Fix docker/dockerfiles/debian-hexagon-cross.docker path
In reply to Philippe Mathieu-DaudéQuoted 9 lines · Philippe Mathieu-Daudé
Fixes afbdf0a44ea ("docker: Add Hexagon image")Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Cc: Brian Cain <[email protected]>
Cc: Pierrick Bouvier <[email protected]>--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
I'm surprised we don't have an automated check (checkpatch?) to entries in MAINTAINERS that don't exist. Should we add one?
cat MAINTAINERS |
grep ^F: |
sed -e 's/F: //' |
while read entry; do ls $entry > /dev/null; done
Regards,
Pierrick
PATCH 2/7 MAINTAINERS: Cover debian-loongarch-cross.docker with LoongArch section
In reply to Philippe Mathieu-Daudé---
Cc: Song Gao <[email protected]>
Cc: Bibo Mao <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -280,6 +280,7 @@ LoongArch TCG CPUs M: Song Gao <[email protected]> S: Maintained F: target/loongarch/ +F: tests/docker/dockerfiles/debian-loongarch-cross.docker F: tests/tcg/loongarch64/ F: tests/functional/loongarch64/meson.build F: tests/functional/loongarch64/test_virt.py
Signature · 1 line
2.53.0
Re: [PATCH 2/7] MAINTAINERS: Cover debian-loongarch-cross.docker with LoongArch section
Quoted 8 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Cc: Song Gao <[email protected]>
Cc: Bibo Mao <[email protected]>--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
PATCH 3/7 MAINTAINERS: Cover debian-xtensa-cross.docker with Xtensa section
In reply to Philippe Mathieu-Daudé---
Cc: Max Filippov <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -445,6 +445,7 @@ W: http://wiki.osll.ru/doku.php?id=etc:users:jcmvbkbc:qemu-target-xtensa S: Maintained F: target/xtensa/ F: hw/xtensa/ +F: tests/docker/dockerfiles/debian-xtensa-cross.docker F: tests/functional/xtensa/meson.build F: tests/tcg/xtensa/ F: tests/tcg/xtensaeb/
Signature · 1 line
2.53.0
Re: [PATCH 3/7] MAINTAINERS: Cover debian-xtensa-cross.docker with Xtensa section
Quoted 7 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Cc: Max Filippov <[email protected]>--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
PATCH 4/7 MAINTAINERS: Cover debian-tricore-cross.docker with TriCore section
In reply to Philippe Mathieu-Daudé--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -458,6 +458,7 @@ S: Orphan F: target/tricore/ F: hw/tricore/ F: include/hw/tricore/ +F: tests/docker/dockerfiles/debian-tricore-cross.docker F: tests/tcg/tricore/ Multiarch Linux User Tests
Signature · 1 line
2.53.0
Re: [PATCH 4/7] MAINTAINERS: Cover debian-tricore-cross.docker with TriCore section
Quoted 5 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
PATCH 5/7 MAINTAINERS: Cover python.docker with Python library section
In reply to Philippe Mathieu-Daudé---
Cc: John Snow <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -3484,6 +3484,7 @@ M: John Snow <[email protected]> M: Cleber Rosa <[email protected]> S: Maintained F: python/ +F: tests/docker/dockerfiles/python.docker T: git https://gitlab.com/jsnow/qemu.git python Python scripts
Signature · 1 line
2.53.0
Re: [PATCH 5/7] MAINTAINERS: Cover python.docker with Python library section
Quoted 7 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Cc: John Snow <[email protected]>--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
PATCH 6/7 docker: Remove LegacyKeyValueFormat warnings in non-generated files
In reply to Philippe Mathieu-DaudéManually update Dockerfiles to not use legacy 'ENV key value' format:
https://docs.docker.com/reference/build-checks/legacy-key-value-format/
This removes warnings when building / using the containers:
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 98)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 64)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 97)
--- .../docker/dockerfiles/debian-hexagon-cross.docker | 14 +++++++------- .../dockerfiles/debian-loongarch-cross.docker | 10 +++++----- .../docker/dockerfiles/debian-tricore-cross.docker | 6 +++--- .../docker/dockerfiles/debian-xtensa-cross.docker | 8 ++++---- tests/docker/dockerfiles/python.docker | 5 +++-- scripts/coverity-scan/coverity-scan.docker | 12 ++++++------ 6 files changed, 28 insertions(+), 27 deletions(-)
tests/docker/dockerfiles/debian-hexagon-cross.docker +7 -7
@@ -39,15 +39,15 @@ RUN apt-get update && \ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc && \ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt -ENV TOOLCHAIN_INSTALL /opt -ENV TOOLCHAIN_RELEASE 12.Dec.2023 -ENV TOOLCHAIN_BASENAME "clang+llvm-${TOOLCHAIN_RELEASE}-cross-hexagon-unknown-linux-musl" -ENV TOOLCHAIN_URL https://codelinaro.jfrog.io/artifactory/codelinaro-toolchain-for-hexagon/${TOOLCHAIN_RELEASE}/${TOOLCHAIN_BASENAME}.tar.xz -ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" +ENV TOOLCHAIN_INSTALL=/opt +ENV TOOLCHAIN_RELEASE=12.Dec.2023 +ENV TOOLCHAIN_BASENAME=clang+llvm-${TOOLCHAIN_RELEASE}-cross-hexagon-unknown-linux-musl +ENV TOOLCHAIN_URL=https://codelinaro.jfrog.io/artifactory/codelinaro-toolchain-for-hexagon/${TOOLCHAIN_RELEASE}/${TOOLCHAIN_BASENAME}.tar.xz +ENV CCACHE_WRAPPERSDIR=/usr/libexec/ccache-wrappers RUN curl -#SL "$TOOLCHAIN_URL" | tar -xJC "$TOOLCHAIN_INSTALL" -ENV PATH $PATH:${TOOLCHAIN_INSTALL}/${TOOLCHAIN_BASENAME}/x86_64-linux-gnu/bin -ENV MAKE /usr/bin/make +ENV PATH=$PATH:${TOOLCHAIN_INSTALL}/${TOOLCHAIN_BASENAME}/x86_64-linux-gnu/bin +ENV MAKE=/usr/bin/make # As a final step configure the user (if env is defined) ARG USER ARG UID
tests/docker/dockerfiles/debian-loongarch-cross.docker +5 -5
@@ -40,12 +40,12 @@ RUN apt-get update && \ RUN curl -#SL https://github.com/loongson/build-tools/releases/download/2023.08.08/CLFS-loongarch64-8.1-x86_64-cross-tools-gcc-glibc.tar.xz \ | tar -xJC /opt -ENV PATH $PATH:/opt/cross-tools/bin -ENV LD_LIBRARY_PATH /opt/cross-tools/lib:/opt/cross-tools/loongarch64-unknown-linux-gnu/lib:$LD_LIBRARY_PATH +ENV PATH=$PATH:/opt/cross-tools/bin +ENV LD_LIBRARY_PATH=/opt/cross-tools/lib:/opt/cross-tools/loongarch64-unknown-linux-gnu/lib:$LD_LIBRARY_PATH -ENV QEMU_CONFIGURE_OPTS --disable-docs --disable-tools -ENV DEF_TARGET_LIST loongarch64-linux-user,loongarch64-softmmu -ENV MAKE /usr/bin/make +ENV QEMU_CONFIGURE_OPTS="--disable-docs --disable-tools" +ENV DEF_TARGET_LIST=loongarch64-linux-user,loongarch64-softmmu +ENV MAKE=/usr/bin/make # As a final step configure the user (if env is defined) ARG USER
tests/docker/dockerfiles/debian-tricore-cross.docker +3 -3
@@ -40,9 +40,9 @@ RUN curl -#SL https://github.com/bkoppelmann/package_940/releases/download/trico | tar -xzC /usr/local/ # This image can only build a very minimal QEMU as well as the tests -ENV DEF_TARGET_LIST tricore-softmmu -ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt -ENV MAKE /usr/bin/make +ENV DEF_TARGET_LIST=tricore-softmmu +ENV QEMU_CONFIGURE_OPTS="--disable-user --disable-tools --disable-fdt" +ENV MAKE=/usr/bin/make # As a final step configure the user (if env is defined) ARG USER ARG UID
tests/docker/dockerfiles/debian-xtensa-cross.docker +4 -4
@@ -19,16 +19,16 @@ RUN apt-get update && \ python3-minimal && \ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt -ENV CPU_LIST dc232b dc233c de233_fpu dsp3400 -ENV TOOLCHAIN_RELEASE 2020.07 +ENV CPU_LIST="dc232b dc233c de233_fpu dsp3400" +ENV TOOLCHAIN_RELEASE=2020.07 RUN for cpu in $CPU_LIST; do \ curl -#SL http://github.com/foss-xtensa/toolchain/releases/download/$TOOLCHAIN_RELEASE/x86_64-$TOOLCHAIN_RELEASE-xtensa-$cpu-elf.tar.gz \ | tar -xzC /opt; \ done -ENV PATH $PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-de233_fpu-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dsp3400-elf/bin -ENV MAKE /usr/bin/make +ENV PATH=$PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-de233_fpu-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dsp3400-elf/bin +ENV MAKE=/usr/bin/make # As a final step configure the user (if env is defined) ARG USER ARG UID
tests/docker/dockerfiles/python.docker +3 -2
@@ -4,7 +4,7 @@ FROM fedora:latest MAINTAINER John Snow <[email protected]> # Please keep this list sorted alphabetically -ENV PACKAGES \ +ENV PACKAGES="\ gcc \ make \ python3 \
@@ -15,7 +15,8 @@ ENV PACKAGES \ python3.11 \ python3.12 \ python3.13 \ - python3.9 + python3.9 \ + " RUN dnf install -y $PACKAGES RUN rpm -q $PACKAGES | sort > /packages.txt
scripts/coverity-scan/coverity-scan.docker +6 -6
@@ -153,12 +153,12 @@ exec "$@"' > /usr/bin/nosync && \ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc -ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" -ENV LANG "en_US.UTF-8" -ENV MAKE "/usr/bin/make" -ENV NINJA "/usr/bin/ninja" -ENV PYTHON "/usr/bin/python3" -ENV QEMU_CONFIGURE_OPTS --meson=internal +ENV CCACHE_WRAPPERSDIR=/usr/libexec/ccache-wrappers +ENV LANG=en_US.UTF-8 +ENV MAKE=/usr/bin/make +ENV NINJA=/usr/bin/ninja +ENV PYTHON=/usr/bin/python3 +ENV QEMU_CONFIGURE_OPTS=--meson=internal RUN dnf install -y curl wget ENV COVERITY_TOOL_BASE=/coverity-tools
Signature · 1 line
2.53.0
Re: [PATCH 6/7] docker: Remove LegacyKeyValueFormat warnings in non-generated files
Quoted 28 lines · Philippe Mathieu-Daudé
Manually update Dockerfiles to not use legacy 'ENV key value' format:
https://docs.docker.com/reference/build-checks/legacy-key-value-format/This removes warnings when building / using the containers:
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 98)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 64)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 97)Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- .../docker/dockerfiles/debian-hexagon-cross.docker | 14 +++++++------- .../dockerfiles/debian-loongarch-cross.docker | 10 +++++----- .../docker/dockerfiles/debian-tricore-cross.docker | 6 +++--- .../docker/dockerfiles/debian-xtensa-cross.docker | 8 ++++---- tests/docker/dockerfiles/python.docker | 5 +++-- scripts/coverity-scan/coverity-scan.docker | 12 ++++++------ 6 files changed, 28 insertions(+), 27 deletions(-)tests/docker/dockerfiles/debian-hexagon-cross.docker +0
-0@@ -39,15 +39,15 @@ RUN apt-get update && \ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc && \ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt
tests/docker/dockerfiles/debian-hexagon-cross.docker RUN apt-get update && \ · line 46
Quoted 10 lines
tests/docker/dockerfiles/debian-hexagon-cross.docker +5
-5-ENV TOOLCHAIN_INSTALL /opt -ENV TOOLCHAIN_RELEASE 12.Dec.2023 -ENV TOOLCHAIN_BASENAME "clang+llvm-${TOOLCHAIN_RELEASE}-cross-hexagon-unknown-linux-musl" -ENV TOOLCHAIN_URL https://codelinaro.jfrog.io/artifactory/codelinaro-toolchain-for-hexagon/${TOOLCHAIN_RELEASE}/${TOOLCHAIN_BASENAME}.tar.xz -ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" +ENV TOOLCHAIN_INSTALL=/opt +ENV TOOLCHAIN_RELEASE=12.Dec.2023 +ENV TOOLCHAIN_BASENAME=clang+llvm-${TOOLCHAIN_RELEASE}-cross-hexagon-unknown-linux-musl +ENV TOOLCHAIN_URL=https://codelinaro.jfrog.io/artifactory/codelinaro-toolchain-for-hexagon/${TOOLCHAIN_RELEASE}/${TOOLCHAIN_BASENAME}.tar.xz +ENV CCACHE_WRAPPERSDIR=/usr/libexec/ccache-wrappers
Quoted 121 lines
tests/docker/dockerfiles/debian-hexagon-cross.docker +2
-2RUN curl -#SL "$TOOLCHAIN_URL" | tar -xJC "$TOOLCHAIN_INSTALL" -ENV PATH $PATH:${TOOLCHAIN_INSTALL}/${TOOLCHAIN_BASENAME}/x86_64-linux-gnu/bin -ENV MAKE /usr/bin/make +ENV PATH=$PATH:${TOOLCHAIN_INSTALL}/${TOOLCHAIN_BASENAME}/x86_64-linux-gnu/bin +ENV MAKE=/usr/bin/make # As a final step configure the user (if env is defined) ARG USER ARG UIDtests/docker/dockerfiles/debian-loongarch-cross.docker +5
-5@@ -40,12 +40,12 @@ RUN apt-get update && \ RUN curl -#SL https://github.com/loongson/build-tools/releases/download/2023.08.08/CLFS-loongarch64-8.1-x86_64-cross-tools-gcc-glibc.tar.xz \ | tar -xJC /opt -ENV PATH $PATH:/opt/cross-tools/bin -ENV LD_LIBRARY_PATH /opt/cross-tools/lib:/opt/cross-tools/loongarch64-unknown-linux-gnu/lib:$LD_LIBRARY_PATH +ENV PATH=$PATH:/opt/cross-tools/bin +ENV LD_LIBRARY_PATH=/opt/cross-tools/lib:/opt/cross-tools/loongarch64-unknown-linux-gnu/lib:$LD_LIBRARY_PATH -ENV QEMU_CONFIGURE_OPTS --disable-docs --disable-tools -ENV DEF_TARGET_LIST loongarch64-linux-user,loongarch64-softmmu -ENV MAKE /usr/bin/make +ENV QEMU_CONFIGURE_OPTS="--disable-docs --disable-tools" +ENV DEF_TARGET_LIST=loongarch64-linux-user,loongarch64-softmmu +ENV MAKE=/usr/bin/make # As a final step configure the user (if env is defined) ARG USERtests/docker/dockerfiles/debian-tricore-cross.docker +3
-3@@ -40,9 +40,9 @@ RUN curl -#SL https://github.com/bkoppelmann/package_940/releases/download/trico | tar -xzC /usr/local/ # This image can only build a very minimal QEMU as well as the tests -ENV DEF_TARGET_LIST tricore-softmmu -ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt -ENV MAKE /usr/bin/make +ENV DEF_TARGET_LIST=tricore-softmmu +ENV QEMU_CONFIGURE_OPTS="--disable-user --disable-tools --disable-fdt" +ENV MAKE=/usr/bin/make # As a final step configure the user (if env is defined) ARG USER ARG UIDtests/docker/dockerfiles/debian-xtensa-cross.docker +4
-4@@ -19,16 +19,16 @@ RUN apt-get update && \ python3-minimal && \ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt -ENV CPU_LIST dc232b dc233c de233_fpu dsp3400 -ENV TOOLCHAIN_RELEASE 2020.07 +ENV CPU_LIST="dc232b dc233c de233_fpu dsp3400" +ENV TOOLCHAIN_RELEASE=2020.07 RUN for cpu in $CPU_LIST; do \ curl -#SL http://github.com/foss-xtensa/toolchain/releases/download/$TOOLCHAIN_RELEASE/x86_64-$TOOLCHAIN_RELEASE-xtensa-$cpu-elf.tar.gz \ | tar -xzC /opt; \ done -ENV PATH $PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-de233_fpu-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dsp3400-elf/bin -ENV MAKE /usr/bin/make +ENV PATH=$PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-de233_fpu-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dsp3400-elf/bin +ENV MAKE=/usr/bin/make # As a final step configure the user (if env is defined) ARG USER ARG UIDtests/docker/dockerfiles/python.docker +3
-2@@ -4,7 +4,7 @@ FROM fedora:latest MAINTAINER John Snow <[email protected]> # Please keep this list sorted alphabetically -ENV PACKAGES \ +ENV PACKAGES="\ gcc \ make \ python3 \@@ -15,7 +15,8 @@ ENV PACKAGES \ python3.11 \ python3.12 \ python3.13 \ - python3.9 + python3.9 \ + " RUN dnf install -y $PACKAGES RUN rpm -q $PACKAGES | sort > /packages.txtscripts/coverity-scan/coverity-scan.docker +6
-7@@ -153,12 +153,12 @@ exec "$@"' > /usr/bin/nosync && \ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc -ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" -ENV LANG "en_US.UTF-8" -ENV MAKE "/usr/bin/make" -ENV NINJA "/usr/bin/ninja" -ENV PYTHON "/usr/bin/python3" -ENV QEMU_CONFIGURE_OPTS --meson=internal +ENV CCACHE_WRAPPERSDIR=/usr/libexec/ccache-wrappers +ENV LANG=en_US.UTF-8 +ENV MAKE=/usr/bin/make +ENV NINJA=/usr/bin/ninja +ENV PYTHON=/usr/bin/python3 +ENV QEMU_CONFIGURE_OPTS=--meson=internal RUN dnf install -y curl wget ENV COVERITY_TOOL_BASE=/coverity-tools --2.53.0
Re: [PATCH 6/7] docker: Remove LegacyKeyValueFormat warnings in non-generated files
In reply to Philippe Mathieu-DaudéQuoted 10 lines · Philippe Mathieu-Daudé
Manually update Dockerfiles to not use legacy 'ENV key value' format:
https://docs.docker.com/reference/build-checks/legacy-key-value-format/This removes warnings when building / using the containers:
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 98)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 64)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 97)Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 9 lines
--- .../docker/dockerfiles/debian-hexagon-cross.docker | 14 +++++++------- .../dockerfiles/debian-loongarch-cross.docker | 10 +++++----- .../docker/dockerfiles/debian-tricore-cross.docker | 6 +++--- .../docker/dockerfiles/debian-xtensa-cross.docker | 8 ++++---- tests/docker/dockerfiles/python.docker | 5 +++-- scripts/coverity-scan/coverity-scan.docker | 12 ++++++------ 6 files changed, 28 insertions(+), 27 deletions(-)
PATCH 7/7 docker: Remove LegacyKeyValueFormat warnings in generated files
In reply to Philippe Mathieu-DaudéDisplay lcitool changes before generated ones.
Update lcitool refresh script to not use legacy 'ENV key value' format:
https://docs.docker.com/reference/build-checks/legacy-key-value-format/
Run "make lcitool-refresh" to update the generated container files.
--- tests/lcitool/refresh | 12 +++++++----- tests/docker/dockerfiles/alpine.docker | 2 +- tests/docker/dockerfiles/centos9.docker | 2 +- .../docker/dockerfiles/debian-all-test-cross.docker | 10 ++++++---- tests/docker/dockerfiles/debian-amd64-cross.docker | 2 +- tests/docker/dockerfiles/debian-arm64-cross.docker | 2 +- tests/docker/dockerfiles/debian-armhf-cross.docker | 2 +- tests/docker/dockerfiles/debian-i686-cross.docker | 2 +- .../docker/dockerfiles/debian-mips64el-cross.docker | 2 +- tests/docker/dockerfiles/debian-mipsel-cross.docker | 2 +- tests/docker/dockerfiles/debian-ppc64el-cross.docker | 2 +- tests/docker/dockerfiles/debian-riscv64-cross.docker | 2 +- tests/docker/dockerfiles/debian-s390x-cross.docker | 2 +- tests/docker/dockerfiles/debian.docker | 2 +- tests/docker/dockerfiles/fedora-rust-nightly.docker | 2 +- tests/docker/dockerfiles/fedora-win64-cross.docker | 2 +- tests/docker/dockerfiles/fedora.docker | 2 +- tests/docker/dockerfiles/opensuse-leap.docker | 2 +- scripts/git.orderfile | 4 ++++ 19 files changed, 33 insertions(+), 25 deletions(-)
tests/lcitool/refresh +7 -5
@@ -77,7 +77,7 @@ def generate_dockerfile(host, target, project="qemu", cross=None, trailer=None, trailer = "\n".join(add_user_mapping) if enable_rust: - trailer += "\nENV ENABLE_RUST 1\n" + trailer += "\nENV ENABLE_RUST=1\n" generate(filename, cmd, trailer)
@@ -169,7 +169,8 @@ debian_all_test_cross_compilers = [ " dpkg-dev\\\n", " gdb-multiarch\\\n", " libclang-rt-dev\n", - "ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \\\n", + "ENV AVAILABLE_COMPILERS=\"\\\n", + " gcc-aarch64-linux-gnu \\\n", " libc6-dev-arm64-cross \\\n", " gcc-arm-linux-gnueabihf \\\n", " libc6-dev-armhf-cross \\\n",
@@ -190,7 +191,8 @@ debian_all_test_cross_compilers = [ " gcc-s390x-linux-gnu \\\n", " libc6-dev-s390x-cross\\\n", " gcc-sh4-linux-gnu \\\n", - " libc6-dev-sh4-cross\n", + " libc6-dev-sh4-cross \\\n", + " \"\n", "RUN if dpkg-architecture -e amd64; then \\\n", " export AVAILABLE_COMPILERS=\"${AVAILABLE_COMPILERS} gcc-hppa-linux-gnu libc6-dev-hppa-cross\"; \\\n", " export AVAILABLE_COMPILERS=\"${AVAILABLE_COMPILERS} gcc-m68k-linux-gnu libc6-dev-m68k-cross\"; \\\n",
@@ -202,8 +204,8 @@ debian_all_test_cross_compilers = [ "apt install -y --no-install-recommends \\\n", "${AVAILABLE_COMPILERS} && \\\n", "dpkg-query --showformat '${Package}_${Version}_${Architecture}' --show > /packages.txt\n", - "ENV QEMU_CONFIGURE_OPTS --disable-docs\n", - "ENV DEF_TARGET_LIST aarch64-linux-user,alpha-linux-user,arm-linux-user,hppa-linux-user,i386-linux-user,m68k-linux-user,mips-linux-user,mips64-linux-user,mips64el-linux-user,mipsel-linux-user,ppc-linux-user,ppc64-linux-user,ppc64le-linux-user,riscv64-linux-user,s390x-linux-user,sh4-linux-user,sparc64-linux-user\n", + "ENV QEMU_CONFIGURE_OPTS=--disable-docs\n", + "ENV DEF_TARGET_LIST=aarch64-linux-user,alpha-linux-user,arm-linux-user,hppa-linux-user,i386-linux-user,m68k-linux-user,mips-linux-user,mips64-linux-user,mips64el-linux-user,mipsel-linux-user,ppc-linux-user,ppc64-linux-user,ppc64le-linux-user,riscv64-linux-user,s390x-linux-user,sh4-linux-user,sparc64-linux-user\n", ] def cross_build(prefix, targets):
tests/docker/dockerfiles/alpine.docker +1 -1
@@ -141,4 +141,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/centos9.docker +1 -1
@@ -145,4 +145,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian-all-test-cross.docker +6 -4
@@ -61,7 +61,8 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \ dpkg-dev\ gdb-multiarch\ libclang-rt-dev -ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ +ENV AVAILABLE_COMPILERS="\ + gcc-aarch64-linux-gnu \ libc6-dev-arm64-cross \ gcc-arm-linux-gnueabihf \ libc6-dev-armhf-cross \
@@ -82,7 +83,8 @@ ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ gcc-s390x-linux-gnu \ libc6-dev-s390x-cross\ gcc-sh4-linux-gnu \ - libc6-dev-sh4-cross + libc6-dev-sh4-cross \ + " RUN if dpkg-architecture -e amd64; then \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-hppa-linux-gnu libc6-dev-hppa-cross"; \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-m68k-linux-gnu libc6-dev-m68k-cross"; \
@@ -94,8 +96,8 @@ DEBIAN_FRONTEND=noninteractive eatmydata \ apt install -y --no-install-recommends \ ${AVAILABLE_COMPILERS} && \ dpkg-query --showformat '${Package}_${Version}_${Architecture}' --show > /packages.txt -ENV QEMU_CONFIGURE_OPTS --disable-docs -ENV DEF_TARGET_LIST aarch64-linux-user,alpha-linux-user,arm-linux-user,hppa-linux-user,i386-linux-user,m68k-linux-user,mips-linux-user,mips64-linux-user,mips64el-linux-user,mipsel-linux-user,ppc-linux-user,ppc64-linux-user,ppc64le-linux-user,riscv64-linux-user,s390x-linux-user,sh4-linux-user,sparc64-linux-user +ENV QEMU_CONFIGURE_OPTS=--disable-docs +ENV DEF_TARGET_LIST=aarch64-linux-user,alpha-linux-user,arm-linux-user,hppa-linux-user,i386-linux-user,m68k-linux-user,mips-linux-user,mips64-linux-user,mips64el-linux-user,mipsel-linux-user,ppc-linux-user,ppc64-linux-user,ppc64le-linux-user,riscv64-linux-user,s390x-linux-user,sh4-linux-user,sparc64-linux-user # As a final step configure the user (if env is defined) ARG USER ARG UID
tests/docker/dockerfiles/debian-amd64-cross.docker +1 -1
@@ -189,4 +189,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian-arm64-cross.docker +1 -1
@@ -188,4 +188,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian-armhf-cross.docker +1 -1
@@ -185,4 +185,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian-i686-cross.docker +1 -1
@@ -185,4 +185,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian-mips64el-cross.docker +1 -1
@@ -184,4 +184,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian-mipsel-cross.docker +1 -1
@@ -184,4 +184,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian-ppc64el-cross.docker +1 -1
@@ -187,4 +187,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian-riscv64-cross.docker +1 -1
@@ -187,4 +187,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian-s390x-cross.docker +1 -1
@@ -186,4 +186,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/debian.docker +1 -1
@@ -176,4 +176,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/fedora-rust-nightly.docker +1 -1
@@ -186,4 +186,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/fedora-win64-cross.docker +1 -1
@@ -120,4 +120,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/fedora.docker +1 -1
@@ -163,4 +163,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
tests/docker/dockerfiles/opensuse-leap.docker +1 -1
@@ -150,4 +150,4 @@ ARG UID RUN if [ "${USER}" ]; then \ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi -ENV ENABLE_RUST 1 +ENV ENABLE_RUST=1
scripts/git.orderfile +4 -0
@@ -39,3 +39,7 @@ qga/*.json # code *.c *.c.inc + +# Generated Dockerfiles +tests/lcitool/refresh +tests/docker/dockerfiles/*
Signature · 1 line
2.53.0
Re: [PATCH 7/7] docker: Remove LegacyKeyValueFormat warnings in generated files
Quoted 22 lines · Philippe Mathieu-Daudé
Display lcitool changes before generated ones.
Update lcitool refresh script to not use legacy 'ENV key value' format:
https://docs.docker.com/reference/build-checks/legacy-key-value-format/Run "make lcitool-refresh" to update the generated container files.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- tests/lcitool/refresh | 12 +++++++----- tests/docker/dockerfiles/alpine.docker | 2 +- tests/docker/dockerfiles/centos9.docker | 2 +- .../docker/dockerfiles/debian-all-test-cross.docker | 10 ++++++---- tests/docker/dockerfiles/debian-amd64-cross.docker | 2 +- tests/docker/dockerfiles/debian-arm64-cross.docker | 2 +- tests/docker/dockerfiles/debian-armhf-cross.docker | 2 +- tests/docker/dockerfiles/debian-i686-cross.docker | 2 +- .../docker/dockerfiles/debian-mips64el-cross.docker | 2 +- tests/docker/dockerfiles/debian-mipsel-cross.docker | 2 +- tests/docker/dockerfiles/debian-ppc64el-cross.docker | 2 +- tests/docker/dockerfiles/debian-riscv64-cross.docker | 2 +-
Quoted 9 lines
tests/docker/dockerfiles/debian-s390x-cross.docker | 2 +- tests/docker/dockerfiles/debian.docker | 2 +- tests/docker/dockerfiles/fedora-rust-nightly.docker | 2 +- tests/docker/dockerfiles/fedora-win64-cross.docker | 2 +- tests/docker/dockerfiles/fedora.docker | 2 +- tests/docker/dockerfiles/opensuse-leap.docker | 2 +- scripts/git.orderfile | 4 ++++ 19 files changed, 33 insertions(+), 25 deletions(-)
Quoted 10 lines · Philippe Mathieu-Daudé
Update
MAINTAINERSentries for manually maintained Dockerfiles.Remove warnings such:
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 98)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 64)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 97)See
https://docs.docker.com/reference/build-checks/legacy-key-value-format/
Queued to testing/next, thanks.
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro