summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/jpeg
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-10-31 06:00:13 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-01 11:09:05 (GMT)
commita04b6115b10145a1669a14bf3146cc38b728e679 (patch)
tree4ba0caede36be53fcd02fd79dd3d0bf948325e02 /meta/recipes-core/jpeg
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/recipes-core/jpeg')
-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 eba5bf4..ad4fa51 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}