Skip to contentSkip to conversation

gdk-pixbuf: Add --with-x11 when building lsb image

PATCH Applied Xiaofeng Yan 4 participants 7 messages May 11, 2012 – May 14, 2012

lore
Share & tools
lore
#0 lore raw

cover gdk-pixbuf: Add --with-x11 when building lsb image

From: Xiaofeng Yan <[email protected]>

This is V3 for fixing bug 2284. I made some modification according to Richard's suggestion.

The following was Richard's suggestion:
We should be using the linuxstdbase override and also make it conditional on x11 being in DISTRO_FEATURES.
Split xlib to a single pakcage.

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

Thanks,
Xiaofeng Yan <[email protected]>
---

Xiaofeng Yan (2):
task-core-lsb: Add libgdk-pixbuf-xlib to core-image-lsb
gdk-pixbuf: Add --with-x11 when building lsb image

 meta/recipes-extended/tasks/task-core-lsb.bb       |    7 +++----
 meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb |   11 +++++++++--
 2 files changed, 12 insertions(+), 6 deletions(-)
#1 lore raw

PATCH 1/2 task-core-lsb: Add libgdk-pixbuf-xlib to core-image-lsb

From: Xiaofeng Yan <[email protected]>

LSB Test Suite complains "No library libgdk_pixbuf_xlib-2.0.so.0" \
which are created by gdk-pixbuf_2.24.1.bb.
So add this library to core-image-lsb for passing lsb test.

---
 meta/recipes-extended/tasks/task-core-lsb.bb |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
meta/recipes-extended/tasks/task-core-lsb.bb +3 -4
index 2767196..350bc7d 100644
@@ -3,7 +3,7 @@
 #
 
 DESCRIPTION = "Create Small Image Tasks"
-PR = "r7"
+PR = "r8"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
@@ -169,15 +169,14 @@ RDEPENDS_task-core-lsb-graphic-add = "\
     gdk-pixbuf-loader-ico \
     gdk-pixbuf-loader-bmp \
     gdk-pixbuf-loader-ani \
-    liberation-fonts \
+	gdk-pixbuf-xlib \
+	liberation-fonts \
     gtk+ \
     atk \
     libasound \
     ${@base_contains("DISTRO_FEATURES", "opengl", "libqtopengl4", "", d)} \
 "
 
-#    mesa-dri 
-
 RDEPENDS_task-core-lsb-runtime-add = "\
     ldd \
     pam-plugin-wheel \
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/2 gdk-pixbuf: Add --with-x11 when building lsb image

In reply to Xiaofeng Yan

From: Xiaofeng Yan <[email protected]>

LSB Test Suite complains "No library libgdk_pixbuf_xlib-2.0.so.0" \
because of having "--without-x11" for gdk-pixbuf_2.24.1.bb. Use the linuxstdbase override and also make it conditional on x11 \
being in DISTRO_FEATURES for passing lsb test.
Split libgdk_pixbuf_xlib to a single package.

---
 meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +9 -2
index e31f717..a88700b 100644
@@ -19,7 +19,7 @@ SRC_URI = "http://ftp.acc.umu.se/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-${
 SRC_URI[md5sum] = "72f39b34b20f68148c1609bd27415412"
 SRC_URI[sha256sum] = "da7a3f00db360913716368e19e336402755cafa93769f3cfa28a969303e4bee1"
 
-PR = "r0"
+PR = "r1"
 
 inherit autotools pkgconfig gettext
 
@@ -28,9 +28,16 @@ LIBV = "2.10.0"
 EXTRA_OECONF = "\
   --without-libtiff \
   --with-libpng \
-  --without-x11 \
+  ${X11DEPENDS} \
   --disable-introspection \
 "
+X11DEPENDS = "--without-x11"
+X11DEPENDS_linuxstdbase = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x11', '--without-x11', d)}"
+
+PACKAGES =+ "${PN}-xlib"
+
+FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}"
+RPROVIDES_${PN}-xlib = "${PN}-xlib"
 
 FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
 	${libdir}/lib*.so.*"
Signature · 1 line
1.7.0.4
#3 lore raw
Quoted 27 lines · Xiaofeng Yan

From: Xiaofeng Yan<[email protected]>

LSB Test Suite complains "No library libgdk_pixbuf_xlib-2.0.so.0" \
because of having "--without-x11" for gdk-pixbuf_2.24.1.bb. Use the linuxstdbase override and also make it conditional on x11 \
being in DISTRO_FEATURES for passing lsb test.
Split libgdk_pixbuf_xlib to a single package.

---
  meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb |   11 +++++++++--
  1 files changed, 9 insertions(+), 2 deletions(-)
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +1 -1
index e31f717..a88700b 100644
@@ -19,7 +19,7 @@ SRC_URI = "http://ftp.acc.umu.se/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-${
  SRC_URI[md5sum] = "72f39b34b20f68148c1609bd27415412"
  SRC_URI[sha256sum] = "da7a3f00db360913716368e19e336402755cafa93769f3cfa28a969303e4bee1"
 
-PR = "r0"
+PR = "r1"
 
  inherit autotools pkgconfig gettext
 

meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb LIBV = "2.10.0" · line 36

Quoted 10 lines
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +4 -1
@@ -28,9 +28,16 @@ LIBV = "2.10.0"
  EXTRA_OECONF = "\
    --without-libtiff \
    --with-libpng \
-  --without-x11 \
+  ${X11DEPENDS} \
    --disable-introspection \
  "
+X11DEPENDS = "--without-x11"
+X11DEPENDS_linuxstdbase = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x11', '--without-x11', d)}"
+

I hate to ask this after this has already been merged, but should this really have been more generic or do other packages need to be fixed since we are seeing failures in the non-LSB case of this new -xlib package being depended on.

| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-png-2.24.1-r1.armv5te
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-jpeg-2.24.1-r1.armv5te
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-xpm-2.24.1-r1.armv5te
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-gif-2.24.1-r1.armv5te

Sau!

Quoted 7 lines
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +4 -0
+PACKAGES =+ "${PN}-xlib"
+
+FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}"
+RPROVIDES_${PN}-xlib = "${PN}-xlib"
 
  FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
  	${libdir}/lib*.so.*"
#4 lore raw
Quoted 43 lines · Saul Wold
Quoted 27 lines · Xiaofeng Yan

From: Xiaofeng Yan<[email protected]>

LSB Test Suite complains "No library libgdk_pixbuf_xlib-2.0.so.0" \
because of having "--without-x11" for gdk-pixbuf_2.24.1.bb. Use the linuxstdbase override and also make it conditional on x11 \
being in DISTRO_FEATURES for passing lsb test.
Split libgdk_pixbuf_xlib to a single package.

---
  meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb |   11 +++++++++--
  1 files changed, 9 insertions(+), 2 deletions(-)
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +1 -1
index e31f717..a88700b 100644
@@ -19,7 +19,7 @@ SRC_URI = "http://ftp.acc.umu.se/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-${
  SRC_URI[md5sum] = "72f39b34b20f68148c1609bd27415412"
  SRC_URI[sha256sum] = "da7a3f00db360913716368e19e336402755cafa93769f3cfa28a969303e4bee1"
 
-PR = "r0"
+PR = "r1"
 
  inherit autotools pkgconfig gettext
 

meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb LIBV = "2.10.0" · line 36

Quoted 10 lines
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +4 -1
@@ -28,9 +28,16 @@ LIBV = "2.10.0"
  EXTRA_OECONF = "\
    --without-libtiff \
    --with-libpng \
-  --without-x11 \
+  ${X11DEPENDS} \
    --disable-introspection \
  "
+X11DEPENDS = "--without-x11"
+X11DEPENDS_linuxstdbase = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x11', '--without-x11', d)}"
+

I hate to ask this after this has already been merged, but should this really have been more generic or do other packages need to be fixed since we are seeing failures in the non-LSB case of this new -xlib package being depended on.

Quoted 4 lines
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-png-2.24.1-r1.armv5te
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-jpeg-2.24.1-r1.armv5te
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-xpm-2.24.1-r1.armv5te
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-gif-2.24.1-r1.armv5te

This is a bug in package.bbclass:

From 2006:
http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/classes/package.bbclass?id=2af3b213e554d34d7f17e41cd9f5abfe842f6a08
http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/classes/package.bbclass?id=77597031696448e691831ddca735c8fd096788f5

So 6 years ago I put a bandaid on this. That code is simply nuts and I think its time to remove/rework it. We could change it to use ${PN} I guess which would be more likely to work and I can't see it breaking too much...

Cheers,

Richard

#5 lore raw
In reply to Saul Wold
Quoted 43 lines · Saul Wold
Quoted 27 lines · Xiaofeng Yan

From: Xiaofeng Yan<[email protected]>

LSB Test Suite complains "No library libgdk_pixbuf_xlib-2.0.so.0" \
because of having "--without-x11" for gdk-pixbuf_2.24.1.bb. Use the linuxstdbase override and also make it conditional on x11 \
being in DISTRO_FEATURES for passing lsb test.
Split libgdk_pixbuf_xlib to a single package.

---
   meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb |   11 +++++++++--
   1 files changed, 9 insertions(+), 2 deletions(-)
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +1 -1
index e31f717..a88700b 100644
@@ -19,7 +19,7 @@ SRC_URI = "http://ftp.acc.umu.se/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-${
   SRC_URI[md5sum] = "72f39b34b20f68148c1609bd27415412"
   SRC_URI[sha256sum] = "da7a3f00db360913716368e19e336402755cafa93769f3cfa28a969303e4bee1"
 
-PR = "r0"
+PR = "r1"
 
   inherit autotools pkgconfig gettext
 

meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb LIBV = "2.10.0" · line 36

Quoted 10 lines
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +4 -1
@@ -28,9 +28,16 @@ LIBV = "2.10.0"
   EXTRA_OECONF = "\
     --without-libtiff \
     --with-libpng \
-  --without-x11 \
+  ${X11DEPENDS} \
     --disable-introspection \
   "
+X11DEPENDS = "--without-x11"
+X11DEPENDS_linuxstdbase = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x11', '--without-x11', d)}"
+

I hate to ask this after this has already been merged, but should this really have been more generic or do other packages need to be fixed since we are seeing failures in the non-LSB case of this new -xlib package being depended on.

Quoted 4 lines
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-png-2.24.1-r1.armv5te
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-jpeg-2.24.1-r1.armv5te
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-xpm-2.24.1-r1.armv5te
| 	gdk-pixbuf-xlib is needed by gdk-pixbuf-loader-gif-2.24.1-r1.armv5te

BTW I agree, there is nothing linuxstdbase specific about this check. We have a distro policy w/ x11, then we should enabled this in gdk-pixbuf. (The rest of the bug it looks like Richard has already worked on.)

--Mark

Quoted 14 lines

Sau!

meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb LIBV = "2.10.0" · line 43

Quoted 7 lines
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +4 -0
+PACKAGES =+ "${PN}-xlib"
+
+FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}"
+RPROVIDES_${PN}-xlib = "${PN}-xlib"
 
   FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
   	${libdir}/lib*.so.*"

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Applied
#6 lore raw
In reply to Xiaofeng Yan
Quoted 28 lines · Xiaofeng Yan

From: Xiaofeng Yan<[email protected]>

This is V3 for fixing bug 2284. I made some modification according to Richard's suggestion.

The following was Richard's suggestion:
We should be using the linuxstdbase override and also make it conditional on x11 being in DISTRO_FEATURES.
Split xlib to a single pakcage.

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

Thanks,
Xiaofeng Yan<[email protected]>
---

Xiaofeng Yan (2):
task-core-lsb: Add libgdk-pixbuf-xlib to core-image-lsb
gdk-pixbuf: Add --with-x11 when building lsb image

  meta/recipes-extended/tasks/task-core-lsb.bb       |    7 +++----
  meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb |   11 +++++++++--
  2 files changed, 12 insertions(+), 6 deletions(-)
Quoted 5 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Merged into OE-Core

Thanks
Sau!