jpeg: add link libjpeg.so.62 for LSB library test
LSB test just test whether libjpeg.so.62 exists, and no more use of it. So just make link to pass library check. (From OE-Core rev: 1229f5dbd48362c7717ac31b631aefce2dccbdc1) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c51061112d
commit
9fb4c745c3
|
@ -14,7 +14,7 @@ PRIORITY = "required"
|
|||
DEPENDS = "libtool-cross"
|
||||
DEPENDS_virtclass-native = "libtool-native"
|
||||
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
|
||||
file://debian-libjpeg7_7-1.diff;patch=1"
|
||||
|
@ -45,3 +45,14 @@ DESCRIPTION_jpeg-tools = "The jpeg-tools package includes the client programs fo
|
|||
FILES_jpeg-tools = "${bindir}/*"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
pkg_postinst_${PN}_poky-lsb () {
|
||||
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
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue