Skip to contentSkip to conversation

jpeg: add link libjpeg.so.62 for LSB library test

PATCH Applied Kang Kai 2 participants 3 messages Apr 15, 2011 – Apr 18, 2011

lore
Share & tools
lore

Kang Kai

author
#0 lore raw

cover jpeg: add link libjpeg.so.62 for LSB library test

From: Kang Kai <[email protected]>

LSB test just test whether libjpeg.so.62 exists, and no more use of it. So just make link to pass library check.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: kankang/libjpeg
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kankang/libjpeg

Thanks,
Kang Kai <[email protected]>
---

Kang Kai (1):
jpeg: add link libjpeg.so.62 for LSB library test

 meta/recipes-core/jpeg/jpeg_8b.bb |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
author
#1 lore raw

PATCH 1/1 jpeg: add link libjpeg.so.62 for LSB library test

From: Kang Kai <[email protected]>

LSB test just test whether libjpeg.so.62 exists, and no more use of it. So just make link to pass library check.

---
 meta/recipes-core/jpeg/jpeg_8b.bb |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
meta/recipes-core/jpeg/jpeg_8b.bb +12 -1
index 8e2c24d..78fabf1 100644
@@ -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
+}
Signature · 1 line
1.7.1
Applied
#2 lore raw
In reply to Kang Kai
Quoted 19 lines · Kang Kai

From: Kang Kai<[email protected]>

LSB test just test whether libjpeg.so.62 exists, and no more use of it. So just make link to pass library check.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: kankang/libjpeg
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kankang/libjpeg

Thanks,
Kang Kai<[email protected]>
---

Kang Kai (1):
jpeg: add link libjpeg.so.62 for LSB library test

Quoted 8 lines
  meta/recipes-core/jpeg/jpeg_8b.bb |   13 ++++++++++++-
  1 files changed, 12 insertions(+), 1 deletions(-)

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Merged into Master

Thanks
Sau!