summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-10-31 14:00:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-01 11:09:05 +0000
commita04b6115b10145a1669a14bf3146cc38b728e679 (patch)
tree4ba0caede36be53fcd02fd79dd3d0bf948325e02 /meta
parent660304f1bde59cd6bf799211a75586c3a4a92797 (diff)
downloadpoky-a04b6115b10145a1669a14bf3146cc38b728e679.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/jpeg/jpeg_8d.bb10
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}/*"
45BBCLASSEXTEND = "native" 45BBCLASSEXTEND = "native"
46 46
47pkg_postinst_${PN}_linuxstdbase () { 47pkg_postinst_${PN}_linuxstdbase () {
48 if [ "$D" = "" ]; then 48 if [ ! -e $D${libdir}/libjpeg.so.62 ]; then
49 if [ ! -e ${libdir}/libjpeg.so.62 ]; then 49 JPEG=`find $D${libdir} -type f -name libjpeg.so.\*.\*.\*`
50 JPEG=`find ${libdir} -type f -name libjpeg.so.\*.\*.\*` 50 ln -sf `basename $JPEG` $D${libdir}/libjpeg.so.62
51 ln -sf `basename $JPEG` ${libdir}/libjpeg.so.62
52 fi
53 else
54 exit 1
55 fi 51 fi
56} 52}