Skip to contentSkip to conversation

build: fix tarball creation

PATCH Applied Leah Neukirchen 2 participants 2 messages Aug 28, 2023 – Sep 1, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: fix tarball creation

The fix in 41b77edac did not work, bsdtar still complains about "hardlink pointing to itself".

Simplify the code instead: since the staging directory contains exactly the files we want, just package it as a whole.

---
 Makefile.in | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
Makefile.in +1 -4
index 09bbd5c..3cad22a 100644
@@ -179,8 +179,6 @@ GENERATED_SRCS:= $(SPEC)
 TARBALL=$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar
 TARBALL.gz=$(TARBALL).gz
 SRCS:= $(dist)
-PSRCS:=$(foreach s, $(SRCS), $(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(s))
-PGSRCS:=$(foreach s, $(GENERATED_SRCS), $(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(s))
 
 MAN_PAGES:=$(KEXEC_MANPAGE) $(VMCORE_DMESG_MANPAGE)
 BINARIES_i386:=$(KEXEC_TEST)
@@ -223,8 +221,7 @@ $(TARBALL): $(SRCS) $(GENERATED_SRCS)
 	$(MKDIR) $(PACKAGE_NAME)-$(PACKAGE_VERSION)
 	$(TAR) -c $(SRCS) $(GENERATED_SRCS) | \
 	        $(TAR) -C $(PACKAGE_NAME)-$(PACKAGE_VERSION) -x
-	$(TAR) -cf $@ $(PSRCS)
-	$(TAR) -rf $@ $(PGSRCS)
+	$(TAR) -cf $@ $(PACKAGE_NAME)-$(PACKAGE_VERSION)
 	$(RM) -rf $(PACKAGE_NAME)-$(PACKAGE_VERSION)
 
 $(TARBALL.gz): $(TARBALL)
Signature · 7 lines
2.42.0


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Applied
#1 lore raw
Quoted 7 lines · Leah Neukirchen

The fix in 41b77edac did not work, bsdtar still complains about "hardlink pointing to itself".

Simplify the code instead: since the staging directory contains exactly the files we want, just package it as a whole.

Thanks, applied.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec