Patch "kbuild: Fix build target deb-pkg: ln: failed to create hard link" has been added to the 6.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    kbuild: Fix build target deb-pkg: ln: failed to create hard link

to the 6.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kbuild-fix-build-target-deb-pkg-ln-failed-to-create-.patch
and it can be found in the queue-6.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit fd9ac84fcd1e86539d106533b8f0520d34855bd3
Author: Thayne Harbaugh <thayne@xxxxxxxxxxxxxxxx>
Date:   Sat Jun 15 23:34:54 2024 -0600

    kbuild: Fix build target deb-pkg: ln: failed to create hard link
    
    [ Upstream commit c61566538968ffb040acc411246fd7ad38c7e8c9 ]
    
    The make deb-pkg target calls debian-orig which attempts to either
    hard link the source .tar to the build-output location or copy the
    source .tar to the build-output location.  The test to determine
    whether to ln or cp is incorrectly expanded by Make and consequently
    always attempts to ln the source .tar.  This fix corrects the escaping
    of '$' so that the test is expanded by the shell rather than by Make
    and appropriately selects between ln and cp.
    
    Fixes: b44aa8c96e9e ("kbuild: deb-pkg: make .orig tarball a hard link if possible")
    Signed-off-by: Thayne Harbaugh <thayne@xxxxxxxxxxxxxxxx>
    Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/scripts/Makefile.package b/scripts/Makefile.package
index 38653f3e81088..bf016af8bf8ad 100644
--- a/scripts/Makefile.package
+++ b/scripts/Makefile.package
@@ -103,7 +103,7 @@ debian-orig: private version = $(shell dpkg-parsechangelog -S Version | sed 's/-
 debian-orig: private orig-name = $(source)_$(version).orig.tar$(debian-orig-suffix)
 debian-orig: mkdebian-opts = --need-source
 debian-orig: linux.tar$(debian-orig-suffix) debian
-	$(Q)if [ "$(df  --output=target .. 2>/dev/null)" = "$(df --output=target $< 2>/dev/null)" ]; then \
+	$(Q)if [ "$$(df  --output=target .. 2>/dev/null)" = "$$(df --output=target $< 2>/dev/null)" ]; then \
 		ln -f $< ../$(orig-name); \
 	else \
 		cp $< ../$(orig-name); \




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux