scripts: sort ver_linux and list in changes.rst
Subsystems (2)
PATCH 1/1 scripts: sort ver_linux and list in changes.rst
It is a pain in the ass to compare the software versions on the running system (scripts/ver_linux) with the minimal required versions (changes.rst).
Sort both lists alphabetically
Add missing tools in ver_linux
(bash, bc, bindgen, bindutils, btrfs, clang, e2fsck, awk, tar, gtags,
iptables, kmod, mcelog, mkimage, openssl, pahole, python, Rust, sphinx, squashfs-tools, udev)
Fix minor issues (add grub2)
--- Documentation/process/changes.rst | 50 +++++++++++++-------------- scripts/ver_linux | 56 +++++++++++++++++++++---------- 2 files changed, 63 insertions(+), 43 deletions(-)
Documentation/process/changes.rst +25 -25
@@ -29,40 +29,40 @@ you probably needn't concern yourself with pcmciautils. ====================== =============== ======================================== Program Minimal version Command to check the version ====================== =============== ======================================== -GNU C 8.1 gcc --version -Clang/LLVM (optional) 15.0.0 clang --version -Rust (optional) 1.78.0 rustc --version -bindgen (optional) 0.65.1 bindgen --version -GNU make 4.0 make --version bash 4.2 bash --version +bc 1.06.95 bc --version +bindgen (optional) 0.65.1 bindgen --version binutils 2.30 ld -v -flex 2.5.35 flex --version bison 2.0 bison --version -pahole 1.22 pahole --version -util-linux 2.10o mount --version -kmod 13 depmod -V +btrfs-progs 0.18 btrfs --version +Clang/LLVM (optional) 15.0.0 clang --version e2fsprogs 1.41.4 e2fsck -V +flex 2.5.35 flex --version +GNU AWK (optional) 5.1.0 gawk --version +GNU C 8.1 gcc --version +GNU make 4.0 make --version +GNU tar 1.28 tar --version +grub 0.93 grub --version || grub-install --version +gtags (optional) 6.6.5 gtags --version +iptables 1.4.2 iptables -V jfsutils 1.1.3 fsck.jfs -V -xfsprogs 2.6.0 xfs_db -V -squashfs-tools 4.0 mksquashfs -version -btrfs-progs 0.18 btrfs --version +kmod 13 depmod -V +mcelog 0.6 mcelog --version +mkimage (optional) 2017.01 mkimage --version +nfs-utils 1.0.5 showmount --version +openssl & libcrypto 1.0.0 openssl version +pahole 1.22 pahole --version pcmciautils 004 pccardctl -V -quota-tools 3.09 quota -V PPP 2.4.0 pppd --version -nfs-utils 1.0.5 showmount --version procps 3.2.0 ps --version -udev 081 udevd --version -grub 0.93 grub --version || grub-install --version -mcelog 0.6 mcelog --version -iptables 1.4.2 iptables -V -openssl & libcrypto 1.0.0 openssl version -bc 1.06.95 bc --version -Sphinx\ [#f1]_ 3.4.3 sphinx-build --version -GNU tar 1.28 tar --version -gtags (optional) 6.6.5 gtags --version -mkimage (optional) 2017.01 mkimage --version Python 3.9.x python3 --version -GNU AWK (optional) 5.1.0 gawk --version +quota-tools 3.09 quota -V +Rust (optional) 1.78.0 rustc --version +Sphinx\ [#f1]_ 3.4.3 sphinx-build --version +squashfs-tools 4.0 mksquashfs -version +udev 081 udevadm --version +util-linux 2.10o mount --version +xfsprogs 2.6.0 xfs_db -V ====================== =============== ======================================== .. [#f1] Sphinx is needed only to build the Kernel documentation
scripts/ver_linux +38 -18
75 lines not on this page · raw message
Signature · 1 line
2.53.0
Jonathan Corbet
maintainerQuoted 4 lines · Hans Anda
It is a pain in the ass to compare the software versions on the running system (
scripts/ver_linux) with the minimal required versions (changes.rst).Sort both lists alphabetically
So ... I suspect that the intent, in changes.rst anyway, was to list the compilers first and group other stuff roughly by category. But I agree it's kind of a mess; if it's really by category, they should be explicit.
If nobody screams, I am inclined to apply this change. But ...
Quoted 5 lines
Add missing tools in
ver_linux
(bash, bc, bindgen, bindutils, btrfs, clang, e2fsck, awk, tar, gtags,
iptables, kmod, mcelog, mkimage, openssl, pahole, python, Rust, sphinx, squashfs-tools, udev)
Fix minor issues (add grub2)
...these are a separate change and should be in their own patch.
Thanks,
jon
Quoted 11 lines · Jonathan Corbet
Quoted 4 lines · Hans Anda
It is a pain in the ass to compare the software versions on the running system (
scripts/ver_linux) with the minimal required versions (changes.rst).Sort both lists alphabetically
So ... I suspect that the intent, in
changes.rstanyway, was to list the compilers first and group other stuff roughly by category. But I agree it's kind of a mess; if it's really by category, they should be explicit.
Well, actually not. i considered categories but decided to sort alphabetically. Because it is simpler and spared the decisions which tool fits in which category.
Quoted 10 lines
If nobody screams, I am inclined to apply this change. But ...
Quoted 5 lines
Add missing tools in
ver_linux
(bash, bc, bindgen, bindutils, btrfs, clang, e2fsck, awk, tar, gtags, iptables, kmod, mcelog, mkimage, openssl, pahole, python, Rust, sphinx, squashfs-tools, udev)
Fix minor issues (add grub2)...these are a separate change and should be in their own patch.
i will make a Patch series with the files split.
Thanks for the feedback
Hans
v2 cover scripts: workflow: sort ver_linux
In reply to Hans AndaIt is a pain in the ass to compare the software versions on the running system (scripts/ver_linux) with the minimal required versions (changes.rst).
[v1] -> [v2]
split v1 into a patch serieschanges.rst:
add reference to ver_linuxver_linux:
fix path to changes.rst
PATCH v2 1/2 workflow: process/changes.rst: sort list
sort table of required software versions alphabetically add reference to scripts/ver_linux
--- Documentation/process/changes.rst | 53 ++++++++++++++++--------------- 1 file changed, 27 insertions(+), 26 deletions(-)
Documentation/process/changes.rst +27 -26
@@ -24,45 +24,46 @@ running, the suggested command should tell you. Again, keep in mind that this list assumes you are already functionally running a Linux kernel. Also, not all tools are necessary on all systems; obviously, if you don't have any PC Card hardware, for example, -you probably needn't concern yourself with pcmciautils. +you probably needn't concern yourself with pcmciautils. For a list of the +programs on your system including their version execute ./scripts/ver_linux ====================== =============== ======================================== Program Minimal version Command to check the version ====================== =============== ======================================== -GNU C 8.1 gcc --version -Clang/LLVM (optional) 15.0.0 clang --version -Rust (optional) 1.78.0 rustc --version -bindgen (optional) 0.65.1 bindgen --version -GNU make 4.0 make --version bash 4.2 bash --version +bc 1.06.95 bc --version +bindgen (optional) 0.65.1 bindgen --version binutils 2.30 ld -v -flex 2.5.35 flex --version bison 2.0 bison --version -pahole 1.22 pahole --version -util-linux 2.10o mount --version -kmod 13 depmod -V +btrfs-progs 0.18 btrfs --version +Clang/LLVM (optional) 15.0.0 clang --version e2fsprogs 1.41.4 e2fsck -V +flex 2.5.35 flex --version +GNU AWK (optional) 5.1.0 gawk --version +GNU C 8.1 gcc --version +GNU make 4.0 make --version +GNU tar 1.28 tar --version +grub 0.93 grub --version || grub-install --version +gtags (optional) 6.6.5 gtags --version +iptables 1.4.2 iptables -V jfsutils 1.1.3 fsck.jfs -V -xfsprogs 2.6.0 xfs_db -V -squashfs-tools 4.0 mksquashfs -version -btrfs-progs 0.18 btrfs --version +kmod 13 depmod -V +mcelog 0.6 mcelog --version +mkimage (optional) 2017.01 mkimage --version +nfs-utils 1.0.5 showmount --version +openssl & libcrypto 1.0.0 openssl version +pahole 1.22 pahole --version pcmciautils 004 pccardctl -V -quota-tools 3.09 quota -V PPP 2.4.0 pppd --version -nfs-utils 1.0.5 showmount --version procps 3.2.0 ps --version -udev 081 udevd --version -grub 0.93 grub --version || grub-install --version -mcelog 0.6 mcelog --version -iptables 1.4.2 iptables -V -openssl & libcrypto 1.0.0 openssl version -bc 1.06.95 bc --version -Sphinx\ [#f1]_ 3.4.3 sphinx-build --version -GNU tar 1.28 tar --version -gtags (optional) 6.6.5 gtags --version -mkimage (optional) 2017.01 mkimage --version Python 3.9.x python3 --version -GNU AWK (optional) 5.1.0 gawk --version +quota-tools 3.09 quota -V +Rust (optional) 1.78.0 rustc --version +Sphinx\ [#f1]_ 3.4.3 sphinx-build --version +squashfs-tools 4.0 mksquashfs -version +udev 081 udevadm --version +util-linux 2.10o mount --version +xfsprogs 2.6.0 xfs_db -V ====================== =============== ======================================== .. [#f1] Sphinx is needed only to build the Kernel documentation
Signature · 1 line
2.53.0
PATCH v2 2/2 scripts: ver_linux: expand and sort
In reply to Hans AndaAdd missing tools in ver_linux
(bash, bc, bindgen, bindutils, btrfs, clang, e2fsck, grub2, awk, tar, gtags, iptables, kmod, mcelog, mkimage, openssl, pahole, python, Rust, sphinx, squashfs-tools, udev)
sort output alphabetically
fix path to changes.rst
--- scripts/ver_linux | 58 +++++++++++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 19 deletions(-)
scripts/ver_linux +39 -19
@@ -7,7 +7,7 @@ BEGIN { usage = "If some fields are empty or look unusual you may have an old version.\n" - usage = usage "Compare to the current minimal requirements in Documentation/Changes.\n" + usage = usage "Compare to the current minimal requirements in Documentation/process/Changes.rst\n" print usage system("uname -a")
@@ -17,37 +17,57 @@ BEGIN { libc = "libc[.]so[.][0-9]+$" libcpp = "(libg|stdc)[+]+[.]so([.][0-9]+)+$" - printversion("GNU C", version("gcc -dumpversion")) - printversion("GNU Make", version("make --version")) + printversion("bash", version("bash --version")) + printversion("bc", version("bc --version")) + printversion("bindgen", version("bindgen --version")) printversion("Binutils", version("ld -v")) - printversion("Util-linux", version("mount --version")) - printversion("Mount", version("mount --version")) - printversion("Module-init-tools", version("depmod -V")) - printversion("E2fsprogs", version("tune2fs")) - printversion("Jfsutils", version("fsck.jfs -V")) - printversion("Xfsprogs", version("xfs_db -V")) - printversion("Pcmciautils", version("pccardctl -V")) - printversion("Pcmcia-cs", version("cardmgr -V")) - printversion("Quota-tools", version("quota -V")) - printversion("PPP", version("pppd --version")) - printversion("Isdn4k-utils", version("isdnctrl")) - printversion("Nfs-utils", version("showmount --version")) printversion("Bison", version("bison --version")) + printversion("btrfs-progs", version("btrfs --version")) + printversion("Clang", version("clang --version")) + printversion("Console-tools", version("loadkeys -V")) + printversion("Dynamic linker (ldd)", version("ldd --version")) + printversion("E2fsprogs", version("e2fsck -V")) printversion("Flex", version("flex --version")) + printversion("GNU AWK", version("gawk -version")) + printversion("GNU C", version("gcc -dumpversion")) + printversion("GNU make", version("make --version")) + printversion("GNU tar", version("tar --version")) + printversion("GRUB", version("grub-install --version")) + printversion("GRUB2", version("grub2-install --version")) + printversion("gtags", version("gtags --version")) + printversion("iptables", version("iptables -V")) + printversion("Isdn4k-utils", version("isdnctrl")) + printversion("Jfsutils", version("fsck.jfs -V")) + printversion("Kbd", version("loadkeys -V")) + printversion("kmod", version("kmod -V")) while ("ldconfig -p 2>/dev/null" | getline > 0) if ($NF ~ libc || $NF ~ libcpp) if (!seen[ver = version("readlink " $NF)]++) printversion("Linux C" ($NF ~ libcpp? "++" : "") " Library", ver) - printversion("Dynamic linker (ldd)", version("ldd --version")) - printversion("Procps", version("ps --version")) + printversion("mcelog", version("mcelog --version")) + printversion("mkimage", version("mkimage --version")) + printversion("Module-init-tools", version("depmod -V")) + printversion("Mount", version("mount --version")) printversion("Net-tools", version("ifconfig --version")) - printversion("Kbd", version("loadkeys -V")) - printversion("Console-tools", version("loadkeys -V")) + printversion("Nfs-utils", version("showmount --version")) + printversion("openssl", version("openssl version")) + printversion("pahole", version("pahole --version")) + printversion("Pcmcia-cs", version("cardmgr -V")) + printversion("Pcmciautils", version("pccardctl -V")) + printversion("PPP", version("pppd --version")) + printversion("Procps", version("ps --version")) + printversion("Python", version("python3 -V")) + printversion("Quota-tools", version("quota -V")) + printversion("Rust", version("rustc --version")) printversion("Sh-utils", version("expr --v")) + printversion("Sphinx", version("sphinx-build --version")) + printversion("squashfs-tools", version("mksquashfs -version")) printversion("Udev", version("udevadm --version")) + printversion("Util-linux", version("mount --version")) printversion("Wireless-tools", version("iwconfig --version")) + printversion("Xfsprogs", version("xfs_db -V")) while ("sort /proc/modules" | getline > 0) { mods = mods sep $1
Signature · 1 line
2.53.0