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:09:05 +0000 |
commit | a04b6115b10145a1669a14bf3146cc38b728e679 (patch) | |
tree | 4ba0caede36be53fcd02fd79dd3d0bf948325e02 /meta | |
parent | 660304f1bde59cd6bf799211a75586c3a4a92797 (diff) | |
download | poky-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.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}/*" | |||
45 | BBCLASSEXTEND = "native" | 45 | BBCLASSEXTEND = "native" |
46 | 46 | ||
47 | pkg_postinst_${PN}_linuxstdbase () { | 47 | pkg_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 | } |