mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 00:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
84f746b707
commit
556336dc2e
@@ -60,12 +60,12 @@ install-ptest:
|
||||
ln -s $(bindir)/bzip2 $(DESTDIR)/bzip2
|
||||
|
||||
install-exec-hook:
|
||||
ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bunzip2$(EXEEXT)
|
||||
ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bzcat$(EXEEXT)
|
||||
ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzegrep$(EXEEXT)
|
||||
ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzfgrep$(EXEEXT)
|
||||
ln -s $(bindir)/bzmore$(EXEEXT) $(DESTDIR)$(bindir)/bzless$(EXEEXT)
|
||||
ln -s $(bindir)/bzdiff$(EXEEXT) $(DESTDIR)$(bindir)/bzcmp$(EXEEXT)
|
||||
ln -s bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bunzip2$(EXEEXT)
|
||||
ln -s bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bzcat$(EXEEXT)
|
||||
ln -s bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzegrep$(EXEEXT)
|
||||
ln -s bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzfgrep$(EXEEXT)
|
||||
ln -s bzmore$(EXEEXT) $(DESTDIR)$(bindir)/bzless$(EXEEXT)
|
||||
ln -s bzdiff$(EXEEXT) $(DESTDIR)$(bindir)/bzcmp$(EXEEXT)
|
||||
|
||||
install-data-hook:
|
||||
echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzegrep.1
|
||||
|
||||
@@ -38,7 +38,7 @@ PACKAGES =+ "libbz2"
|
||||
|
||||
CFLAGS += "-fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64"
|
||||
|
||||
inherit autotools update-alternatives ptest relative_symlinks
|
||||
inherit autotools update-alternatives ptest
|
||||
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
ALTERNATIVE:${PN} = "bunzip2 bzcat bzip2"
|
||||
|
||||
Reference in New Issue
Block a user