]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Nov 2024 12:12:22 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Nov 2024 12:12:22 +0000 (13:12 +0100)
added patches:
kbuild-use-uname-for-linux_compile_host-detection.patch

queue-5.4/kbuild-use-uname-for-linux_compile_host-detection.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/kbuild-use-uname-for-linux_compile_host-detection.patch b/queue-5.4/kbuild-use-uname-for-linux_compile_host-detection.patch
new file mode 100644 (file)
index 0000000..981b65e
--- /dev/null
@@ -0,0 +1,37 @@
+From 1e66d50ad3a1dbf0169b14d502be59a4b1213149 Mon Sep 17 00:00:00 2001
+From: Chris Down <chris@chrisdown.name>
+Date: Tue, 20 Oct 2020 10:34:59 +0100
+Subject: kbuild: Use uname for LINUX_COMPILE_HOST detection
+
+From: Chris Down <chris@chrisdown.name>
+
+commit 1e66d50ad3a1dbf0169b14d502be59a4b1213149 upstream.
+
+`hostname` may not be present on some systems as it's not mandated by
+POSIX/SUSv4. This isn't just a theoretical problem: on Arch Linux,
+`hostname` is provided by `inetutils`, which isn't part of the base
+distribution.
+
+    ./scripts/mkcompile_h: line 38: hostname: command not found
+
+Use `uname -n` instead, which is more likely to be available (and
+mandated by standards).
+
+Signed-off-by: Chris Down <chris@chrisdown.name>
+Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ scripts/mkcompile_h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/scripts/mkcompile_h
++++ b/scripts/mkcompile_h
+@@ -45,7 +45,7 @@ else
+       LINUX_COMPILE_BY=$KBUILD_BUILD_USER
+ fi
+ if test -z "$KBUILD_BUILD_HOST"; then
+-      LINUX_COMPILE_HOST=`hostname`
++      LINUX_COMPILE_HOST=`uname -n`
+ else
+       LINUX_COMPILE_HOST=$KBUILD_BUILD_HOST
+ fi
index 91d0e0000a41831fe9fbd0e62a89f9d77d79439b..7979fbedace2c28f61c0c8829747f1bdb4cdb4eb 100644 (file)
@@ -8,3 +8,4 @@ ocfs2-fix-ubsan-warning-in-ocfs2_verify_volume.patch
 nilfs2-fix-null-ptr-deref-in-block_dirty_buffer-tracepoint.patch
 revert-mmc-dw_mmc-fix-idmac-operation-with-pages-bigger-than-4k.patch
 media-dvbdev-fix-the-logic-when-dvb_dynamic_minors-is-not-set.patch
+kbuild-use-uname-for-linux_compile_host-detection.patch