From: Greg Kroah-Hartman Date: Tue, 19 Nov 2024 12:12:22 +0000 (+0100) Subject: 5.4-stable patches X-Git-Tag: v6.12.1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eba39f8f9badd422363a247ffcb2f9420331e240;p=thirdparty%2Fkernel%2Fstable-queue.git 5.4-stable patches added patches: kbuild-use-uname-for-linux_compile_host-detection.patch --- 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 index 00000000000..981b65e6fd0 --- /dev/null +++ b/queue-5.4/kbuild-use-uname-for-linux_compile_host-detection.patch @@ -0,0 +1,37 @@ +From 1e66d50ad3a1dbf0169b14d502be59a4b1213149 Mon Sep 17 00:00:00 2001 +From: Chris Down +Date: Tue, 20 Oct 2020 10:34:59 +0100 +Subject: kbuild: Use uname for LINUX_COMPILE_HOST detection + +From: Chris Down + +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 +Signed-off-by: Masahiro Yamada +Signed-off-by: Greg Kroah-Hartman +--- + 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 diff --git a/queue-5.4/series b/queue-5.4/series index 91d0e0000a4..7979fbedace 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -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