summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-09-16 13:07:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-18 11:16:42 +0100
commit556336dc2e7de53a8a5ccedc5f9ff5d90591bd4c (patch)
tree36092cad802a6008f9cf61253f77edaac1146d55
parent84f746b70731a034d6dbfc2dac3c7950218f91e4 (diff)
downloadpoky-556336dc2e7de53a8a5ccedc5f9ff5d90591bd4c.tar.gz
bzip2: improve symlink creation
This recipe inherits relative_symlinks as otherwise ${bindir}/bunzip2 is an absolute link to ${bindir}/bzip2. However, we drop the Makfile.am into the tree so instead of working around the problem, we can just fix the Makefile rules directly. (From OE-Core rev: d1c6240938e3b884690433c05dd65d5ae840abdb) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/bzip2/bzip2/Makefile.am12
-rw-r--r--meta/recipes-extended/bzip2/bzip2_1.0.8.bb2
2 files changed, 7 insertions, 7 deletions
diff --git a/meta/recipes-extended/bzip2/bzip2/Makefile.am b/meta/recipes-extended/bzip2/bzip2/Makefile.am
index d12d3a45e4..c0aed80ce6 100644
--- a/meta/recipes-extended/bzip2/bzip2/Makefile.am
+++ b/meta/recipes-extended/bzip2/bzip2/Makefile.am
@@ -60,12 +60,12 @@ install-ptest:
60 ln -s $(bindir)/bzip2 $(DESTDIR)/bzip2 60 ln -s $(bindir)/bzip2 $(DESTDIR)/bzip2
61 61
62install-exec-hook: 62install-exec-hook:
63 ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bunzip2$(EXEEXT) 63 ln -s bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bunzip2$(EXEEXT)
64 ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bzcat$(EXEEXT) 64 ln -s bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bzcat$(EXEEXT)
65 ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzegrep$(EXEEXT) 65 ln -s bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzegrep$(EXEEXT)
66 ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzfgrep$(EXEEXT) 66 ln -s bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzfgrep$(EXEEXT)
67 ln -s $(bindir)/bzmore$(EXEEXT) $(DESTDIR)$(bindir)/bzless$(EXEEXT) 67 ln -s bzmore$(EXEEXT) $(DESTDIR)$(bindir)/bzless$(EXEEXT)
68 ln -s $(bindir)/bzdiff$(EXEEXT) $(DESTDIR)$(bindir)/bzcmp$(EXEEXT) 68 ln -s bzdiff$(EXEEXT) $(DESTDIR)$(bindir)/bzcmp$(EXEEXT)
69 69
70install-data-hook: 70install-data-hook:
71 echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzegrep.1 71 echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzegrep.1
diff --git a/meta/recipes-extended/bzip2/bzip2_1.0.8.bb b/meta/recipes-extended/bzip2/bzip2_1.0.8.bb
index 5b10821ccb..9cecf6a331 100644
--- a/meta/recipes-extended/bzip2/bzip2_1.0.8.bb
+++ b/meta/recipes-extended/bzip2/bzip2_1.0.8.bb
@@ -38,7 +38,7 @@ PACKAGES =+ "libbz2"
38 38
39CFLAGS += "-fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64" 39CFLAGS += "-fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64"
40 40
41inherit autotools update-alternatives ptest relative_symlinks 41inherit autotools update-alternatives ptest
42 42
43ALTERNATIVE_PRIORITY = "100" 43ALTERNATIVE_PRIORITY = "100"
44ALTERNATIVE:${PN} = "bunzip2 bzcat bzip2" 44ALTERNATIVE:${PN} = "bunzip2 bzcat bzip2"