Revert "kheaders: substituting --sort in archive creation"
Subsystems (3)
PATCH 2/2 doc: Add tar requirement to changes.rst
In reply to Masahiro Yamadatar is used to build the kernel with CONFIG_IKHEADERS.
GNU tar 1.28 or later is required.
---
Documentation/process/changes.rst | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/process/changes.rst +7 -0
@@ -60,6 +60,7 @@ openssl & libcrypto 1.0.0 openssl version bc 1.06.95 bc --version Sphinx\ [#f1]_ 1.7 sphinx-build --version cpio any cpio --version +GNU tar 1.28 tar --version gtags (optional) 6.6.5 gtags --version ====================== =============== ========================================
@@ -175,6 +176,12 @@ You will need openssl to build kernels 3.7 and higher if module signing is enabled. You will also need openssl development packages to build kernels 4.3 and higher. +Tar +--- + +GNU tar is needed if you want to enable access to the kernel headers via sysfs +(CONFIG_IKHEADERS). + gtags / GNU GLOBAL (optional) -----------------------------
Signature · 1 line
2.39.2
PATCH 1/2 Revert "kheaders: substituting --sort in archive creation"
This reverts commit 700dea5a0bea9f64eba89fae7cb2540326fdfdc1.
The reason for that commit was --sort=ORDER introduced in tar 1.28 (2014). More than 3 years have passed since then.
Requiring GNU tar 1.28 should be fine now because we require GCC 5.1 (2015).
---
kernel/gen_kheaders.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
kernel/gen_kheaders.sh +3 -6
@@ -83,12 +83,9 @@ find $cpio_dir -type f -print0 | xargs -0 -P8 -n1 perl -pi -e 'BEGIN {undef $/;}; s/\/\*((?!SPDX).)*?\*\///smg;' # Create archive and try to normalize metadata for reproducibility. -# For compatibility with older versions of tar, files are fed to tar -# pre-sorted, as --sort=name might not be available. -find $cpio_dir -printf "./%P\n" | LC_ALL=C sort | \ - tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \ - --owner=0 --group=0 --numeric-owner --no-recursion \ - -I $XZ -cf $tarfile -C $cpio_dir/ -T - > /dev/null +tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \ + --owner=0 --group=0 --sort=name --numeric-owner \ + -I $XZ -cf $tarfile -C $cpio_dir/ . > /dev/null echo $headers_md5 > kernel/kheaders.md5 echo "$this_file_md5" >> kernel/kheaders.md5
Signature · 1 line
2.39.2
Quoted 10 lines · Masahiro Yamada
This reverts commit
700dea5a0bea9f64eba89fae7cb2540326fdfdc1.The reason for that commit was --sort=ORDER introduced in tar 1.28 (2014). More than 3 years have passed since then.
Requiring GNU tar 1.28 should be fine now because we require GCC 5.1 (2015).
Signed-off-by Masahiro Yamada <[email protected]>---
Quoted 26 lines
kernel/gen_kheaders.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)kernel/gen_kheaders.sh +3
-6@@ -83,12 +83,9 @@ find $cpio_dir -type f -print0 | xargs -0 -P8 -n1 perl -pi -e 'BEGIN {undef $/;}; s/\/\*((?!SPDX).)*?\*\///smg;' # Create archive and try to normalize metadata for reproducibility. -# For compatibility with older versions of tar, files are fed to tar -# pre-sorted, as --sort=name might not be available. -find $cpio_dir -printf "./%P\n" | LC_ALL=C sort | \ - tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \ - --owner=0 --group=0 --numeric-owner --no-recursion \ - -I $XZ -cf $tarfile -C $cpio_dir/ -T - > /dev/null +tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \ + --owner=0 --group=0 --sort=name --numeric-owner \ + -I $XZ -cf $tarfile -C $cpio_dir/ . > /dev/null echo $headers_md5 > kernel/kheaders.md5 echo "$this_file_md5" >> kernel/kheaders.md5Signature · 1 line
2.39.2
Signature · 5 lines
Nicolas Schier epost|xmpp: [email protected] irc://oftc.net/nsc ↳ gpg: 18ed 52db e34f 860e e9fb c82b 7d97 0932 55a0 ce7f -- frykten for herren er opphav til kunnskap --
Re: [PATCH 2/2] doc: Add tar requirement to changes.rst
In reply to Masahiro YamadaQuoted 23 lines · Masahiro Yamada
tar is used to build the kernel with
CONFIG_IKHEADERS.GNU tar 1.28 or later is required.
Signed-off-by Masahiro Yamada <[email protected]>---
Documentation/process/changes.rst | 7 +++++++ 1 file changed, 7 insertions(+)Documentation/process/changes.rst +1
-0@@ -60,6 +60,7 @@ openssl & libcrypto 1.0.0 openssl version bc 1.06.95 bc --version Sphinx\ [#f1]_ 1.7 sphinx-build --version cpio any cpio --version +GNU tar 1.28 tar --version gtags (optional) 6.6.5 gtags --version ====================== =============== ========================================
Documentation/process/changes.rst You will need openssl to build kernels 3.7 and higher if module signing is · line 183
Quoted 8 lines
Documentation/process/changes.rst +5
-0@@ -175,6 +176,12 @@ You will need openssl to build kernels 3.7 and higher if module signing is enabled. You will also need openssl development packages to build kernels 4.3 and higher. +Tar +--- + +GNU tar is needed if you want to enable access to the kernel headers via sysfs +(CONFIG_IKHEADERS).
CONFIG_IKHEADERS does also require 'xz' (cp. kernel/gen_kheaders.sh), should it be mentioned in changes.rst as well?
Quoted 6 lines
Documentation/process/changes.rst +1
-0+ gtags / GNU GLOBAL (optional) -----------------------------Signature · 1 line
2.39.2
Signature · 5 lines
Nicolas Schier epost|xmpp: [email protected] irc://oftc.net/nsc ↳ gpg: 18ed 52db e34f 860e e9fb c82b 7d97 0932 55a0 ce7f -- frykten for herren er opphav til kunnskap --
Re: [PATCH 2/2] doc: Add tar requirement to changes.rst
Quoted 28 lines · Nicolas Schier
Quoted 26 lines · Masahiro Yamada
tar is used to build the kernel with
CONFIG_IKHEADERS.GNU tar 1.28 or later is required.
Signed-off-by Masahiro Yamada <[email protected]>---
Documentation/process/changes.rst | 7 +++++++ 1 file changed, 7 insertions(+)Documentation/process/changes.rst +1
-0@@ -60,6 +60,7 @@ openssl & libcrypto 1.0.0 openssl version bc 1.06.95 bc --version Sphinx\ [#f1]_ 1.7 sphinx-build --version cpio any cpio --version +GNU tar 1.28 tar --version gtags (optional) 6.6.5 gtags --version ====================== =============== ========================================@@ -175,6 +176,12 @@ You will need openssl to build kernels 3.7 and higher if module signing is enabled. You will also need openssl development packages to build kernels 4.3 and higher.
Quoted 8 lines
Documentation/process/changes.rst You will need openssl to build kernels 3.7 and higher if module signing is · line 183
Quoted 5 lines
Documentation/process/changes.rst +5
-0+Tar +--- + +GNU tar is needed if you want to enable access to the kernel headers via sysfs +(CONFIG_IKHEADERS).
CONFIG_IKHEADERSdoes also require 'xz' (cp.kernel/gen_kheaders.sh), should it be mentioned inchanges.rstas well?
It is true, bue 'xz' is required in other situations too.
For example,CONFIG_KERNEL_XZCONFIG_MODULE_COMPRESS_XZCONFIG_INITRAMFS_COMPRESSION_XZ
If we document the requirement for 'xz',
we need to document the requirement for
'gzip', 'zstd', 'lzma', etc. for the same reason.
So, I want to go only with 'tar' in this series.
Quoted 16 lines
Reviewed-by Nicolas Schier <[email protected]>Quoted 6 lines
Documentation/process/changes.rst +1
-1+ gtags / GNU GLOBAL (optional) ----------------------------- --2.39.2
--
Nicolas Schierepost|xmpp: [email protected] irc://oftc.net/nsc
↳ gpg: 18ed 52db e34f 860e e9fb c82b 7d97 0932 55a0 ce7f
-- frykten for herren er opphav til kunnskap --
Signature · 2 lines
Best Regards Masahiro Yamada
Re: [PATCH 2/2] doc: Add tar requirement to changes.rst
Quoted 48 lines · Masahiro Yamada
Quoted 28 lines · Nicolas Schier
Quoted 26 lines · Masahiro Yamada
tar is used to build the kernel with
CONFIG_IKHEADERS.GNU tar 1.28 or later is required.
Signed-off-by Masahiro Yamada <[email protected]>---
Documentation/process/changes.rst | 7 +++++++ 1 file changed, 7 insertions(+)Documentation/process/changes.rst +1
-0@@ -60,6 +60,7 @@ openssl & libcrypto 1.0.0 openssl version bc 1.06.95 bc --version Sphinx\ [#f1]_ 1.7 sphinx-build --version cpio any cpio --version +GNU tar 1.28 tar --version gtags (optional) 6.6.5 gtags --version ====================== =============== ========================================@@ -175,6 +176,12 @@ You will need openssl to build kernels 3.7 and higher if module signing is enabled. You will also need openssl development packages to build kernels 4.3 and higher.Quoted 8 lines
Documentation/process/changes.rst You will need openssl to build kernels 3.7 and higher if module signing is · line 183
Quoted 5 lines
Documentation/process/changes.rst +5
-0+Tar +--- + +GNU tar is needed if you want to enable access to the kernel headers via sysfs +(CONFIG_IKHEADERS).
CONFIG_IKHEADERSdoes also require 'xz' (cp.kernel/gen_kheaders.sh), should it be mentioned inchanges.rstas well?It is true, bue 'xz' is required in other situations too.
For example,
CONFIG_KERNEL_XZCONFIG_MODULE_COMPRESS_XZCONFIG_INITRAMFS_COMPRESSION_XZ
Quoted 5 lines
If we document the requirement for 'xz',
we need to document the requirement for
'gzip', 'zstd', 'lzma', etc. for the same reason.So, I want to go only with 'tar' in this series.
yes, sounds reasonable.
Kind regards,
Nicolas