From 41eda2f5a256f495b788e1ced22e6d19c007e34e Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Thu, 31 Oct 2013 14:00:13 +0800 Subject: jpeg: enable postinst to run at rootfs time successfully Signed-off-by: Saul Wold --- meta/recipes-core/jpeg/jpeg_8d.bb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/meta/recipes-core/jpeg/jpeg_8d.bb b/meta/recipes-core/jpeg/jpeg_8d.bb index eba5bf46d2..ad4fa514cd 100644 --- a/meta/recipes-core/jpeg/jpeg_8d.bb +++ b/meta/recipes-core/jpeg/jpeg_8d.bb @@ -45,12 +45,8 @@ FILES_jpeg-tools = "${bindir}/*" BBCLASSEXTEND = "native" pkg_postinst_${PN}_linuxstdbase () { - if [ "$D" = "" ]; then - if [ ! -e ${libdir}/libjpeg.so.62 ]; then - JPEG=`find ${libdir} -type f -name libjpeg.so.\*.\*.\*` - ln -sf `basename $JPEG` ${libdir}/libjpeg.so.62 - fi - else - exit 1 + if [ ! -e $D${libdir}/libjpeg.so.62 ]; then + JPEG=`find $D${libdir} -type f -name libjpeg.so.\*.\*.\*` + ln -sf `basename $JPEG` $D${libdir}/libjpeg.so.62 fi } -- cgit v1.2.3