From 2194cf4b7746a8939cff7f075f1ef2c2fb52db97 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 5 Jul 2019 10:59:53 +0200 Subject: [PATCH] bzip2: Install directly under `/bin` and not `/usr/bin` Follow the Linux From Scratch book [instructions][1]. [1]: http://www.linuxfromscratch.org/lfs/view/development/chapter06/bzip2.html --- bzip2.be0 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bzip2.be0 b/bzip2.be0 index 429a3a17f..ff39d99a9 100755 --- a/bzip2.be0 +++ b/bzip2.be0 @@ -70,7 +70,8 @@ mee_install() { mkdir -p ${D}${DATADIR} mv ${D}${PREFIX}/man ${D}${DATADIR} - cp -v bzip2-shared ${D}${BINDIR}/bzip2 + mkdir ${D}/bin + cp -v bzip2-shared ${D}/bin/bzip2 cp -av libbz2.so* ${D}${LIBDIR} @@ -78,10 +79,10 @@ mee_install() { ln -sv libbz2.so.1.0 ${D}${LIBDIR}/libbz2.so.1 - rm -v ${D}${BINDIR}/{bunzip2,bzcat} + rm -v ${D}${BINDIR}/{bunzip2,bzcat,bzip2} - ln -sv bzip2 ${D}${BINDIR}/bunzip2 - ln -sv bzip2 ${D}${BINDIR}/bzcat + ln -sv bzip2 ${D}/bin/bunzip2 + ln -sv bzip2 ${D}/bin/bzcat } ## by default this may be 'make install DESTDIR="${D}"'