diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-10-31 14:00:13 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-01 11:08:30 +0000 |
commit | 41eda2f5a256f495b788e1ced22e6d19c007e34e (patch) | |
tree | b84963d330e2bd1e42e7dcba18d8e6068cfffb27 | |
parent | db00fa405c025c61844df2e9589fe635fc5df0e2 (diff) | |
download | openembedded-core-41eda2f5a256f495b788e1ced22e6d19c007e34e.tar.gz openembedded-core-41eda2f5a256f495b788e1ced22e6d19c007e34e.tar.bz2 openembedded-core-41eda2f5a256f495b788e1ced22e6d19c007e34e.zip |
jpeg: enable postinst to run at rootfs time successfully
Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r-- | meta/recipes-core/jpeg/jpeg_8d.bb | 10 |
1 files 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 } |