From patchwork Sat Apr 16 06:56:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [58/58] jpeg: add link libjpeg.so.62 for LSB library test Date: Sat, 16 Apr 2011 06:56:07 -0000 From: Saul Wold X-Patchwork-Id: 2399 Message-Id: <578042d2eedb26dea6e9f15d4677d1c2c90adfa9.1302936483.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org Cc: Scott Rifenbark , Paul Eggleton , Jingdong Lu , Kang Kai , Xiaofeng Yan From: Kang Kai LSB test just test whether libjpeg.so.62 exists, and no more use of it. So just make link to pass library check. Signed-off-by: Kang Kai Signed-off-by: Saul Wold --- meta/recipes-core/jpeg/jpeg_8b.bb | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/meta/recipes-core/jpeg/jpeg_8b.bb b/meta/recipes-core/jpeg/jpeg_8b.bb index 8e2c24d..78fabf1 100644 --- a/meta/recipes-core/jpeg/jpeg_8b.bb +++ b/meta/recipes-core/jpeg/jpeg_8b.bb @@ -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 +}