I saw following error when I tried to build devkit with dnf5 on Fedora 44:
echo filesystem kernel-headers glibc glibc-devel cups-libs cups-devel libX11
libX11-devel libxcb xorg-x11-proto-devel alsa-lib alsa-lib-devel libXext
libXext-devel libXtst libXtst-devel libXrender libXrender-devel libXrandr
libXrandr-devel freetype freetype-devel libXt libXt-devel libSM libSM-devel
libICE libICE-devel libXi libXi-devel libXau libXau-devel libgcc zlib
zlib-devel libffi libffi-devel fontconfig fontconfig-devel systemtap-sdt-devel
| \
xargs dnf download --disablerepo='*' --repofrompath
base,https://yum.oracle.com/repo/OracleLinux/OL6/4/base/x86_64 --enablerepo
base --resolve --archlist x86_64,noarch,i386,i686 --forcearch x86_64
--installroot
/usr/src/jdk/build/devkit/x86_64-linux-gnu/x86_64-linux-gnu/dnf-dummy-install-root
--releasever 6 --destdir
/usr/src/jdk/build/devkit/download/rpms/x86_64-linux-gnu-OL-6
Unknown argument "--archlist" for command "download". Add "--help" for more
information about the arguments.
We should use multiple `--arch` rather than `--archlist`. `--arch` also works
on older dnf.
---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK
Interim AI Policy](https://openjdk.org/legal/ai).
-------------
Commit messages:
- 8385988: Linux devkits does not work with dnf5
Changes: https://git.openjdk.org/jdk/pull/31394/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31394&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8385988
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/31394.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/31394/head:pull/31394
PR: https://git.openjdk.org/jdk/pull/31394