jpeg: enable postinst to run at rootfs time successfully

(From OE-Core rev: 41eda2f5a256f495b788e1ced22e6d19c007e34e)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chen Qi 2013-10-31 14:00:13 +08:00 committed by Richard Purdie
parent 660304f1bd
commit a04b6115b1
1 changed files with 3 additions and 7 deletions

View File

@ -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
}