]> code.ossystems Code Review - openembedded-core.git/commitdiff
bash: fix warning about bashbug reference /usr/bin when installed in /bin
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 20 Jul 2012 17:12:09 +0000 (14:12 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2012 13:39:43 +0000 (14:39 +0100)
Change the installation process so we have bashbug in ${bindir} and
bash at ${base_bindir}.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-extended/bash/bash.inc
meta/recipes-extended/bash/bash_4.2.bb

index ff9b0ce9990a62a11883eed0b1273f4bcd3c1e55..3684191d03273c7af0df8e73a8586feacb6dfdde 100644 (file)
@@ -11,9 +11,6 @@ inherit autotools gettext update-alternatives
 
 PARALLEL_MAKE = ""
 
-bindir = "/bin"
-sbindir = "/sbin"
-
 EXTRA_OECONF = "--enable-job-control"
 export CC_FOR_BUILD = "${BUILD_CC}"
 
@@ -30,6 +27,14 @@ do_configure_prepend () {
        fi
 }
 
+do_install_append () {
+       # Move /usr/bin/bash to /bin/bash, if need
+       if [ "${base_bindir}" != "${bindir}" ]; then
+               mkdir -p ${D}${base_bindir}
+               mv ${D}${bindir}/bash ${D}${base_bindir}
+       fi
+}
+
 pkg_postinst_${PN} () {
        touch $D${sysconfdir}/shells
        grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells
index e96709a59c1686d79d38a6ca4b856f2648c6623c..50f2ff64b8fbf8174460465594b3c134e3f08183 100644 (file)
@@ -1,6 +1,6 @@
 require bash.inc
 
-PR = "r2"
+PR = "r4"
 
 SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \
            ${GNU_MIRROR}/bash/bash-4.2-patches/bash42-001;apply=yes;striplevel=0;name=patch001 \