[oe-commits] Koen Kooi : gtk+: don' t install the pixbug-csource tool when building -native, it doesn' t work properly

git version control git at git.openembedded.org
Sun Jan 31 20:09:42 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: 741a2834cb11bb498aef4522e1857a35e14c8da6
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=741a2834cb11bb498aef4522e1857a35e14c8da6

Author: Koen Kooi <koen at openembedded.org>
Date:   Sun Jan 31 17:14:17 2010 +0100

gtk+: don't install the pixbug-csource tool when building -native, it doesn't work properly

* the work around involved cleaning up old recipes as well, new-style staging here we come!

---

 recipes/gtk+/gtk+-native_2.18.6.bb |   11 -----------
 recipes/gtk+/gtk+.inc              |   20 ++++----------------
 recipes/gtk+/gtk+_2.14.2.bb        |   10 ----------
 recipes/gtk+/gtk+_2.16.4.bb        |    8 --------
 recipes/gtk+/gtk+_2.16.6.bb        |    8 --------
 recipes/gtk+/gtk+_2.18.0.bb        |    8 --------
 recipes/gtk+/gtk+_2.18.3.bb        |    8 --------
 recipes/gtk+/gtk+_2.18.6.bb        |   14 +++++++++++++-
 8 files changed, 17 insertions(+), 70 deletions(-)

diff --git a/recipes/gtk+/gtk+-native_2.18.6.bb b/recipes/gtk+/gtk+-native_2.18.6.bb
deleted file mode 100644
index 59459e3..0000000
--- a/recipes/gtk+/gtk+-native_2.18.6.bb
+++ /dev/null
@@ -1,11 +0,0 @@
-
-require gtk+_${PV}.bb
-
-inherit native
-
-DEPENDS += "atk-native pango-native cairo-native"
-PROVIDES = "gtk+-native"
-
-EXTRA_OECONF += "--without-libtiff --disable-modules"
-
-
diff --git a/recipes/gtk+/gtk+.inc b/recipes/gtk+/gtk+.inc
index 6104288..e619a6a 100644
--- a/recipes/gtk+/gtk+.inc
+++ b/recipes/gtk+/gtk+.inc
@@ -51,26 +51,14 @@ RRECOMMENDS_${PN} = " ${NEATSTUFF} "
 RRECOMMENDS_${PN}_linux = " ${NEATSTUFF} glibc-gconv-iso8859-1 "
 RRECOMMENDS_${PN}_linux-gnueabi = " ${NEATSTUFF} glibc-gconv-iso8859-1"
 
-do_stage () {
-	oe_libinstall -so -C gtk libgtk-x11-2.0 ${STAGING_LIBDIR}
-	oe_libinstall -so -C gdk libgdk-x11-2.0 ${STAGING_LIBDIR}
-	oe_libinstall -so -C contrib/gdk-pixbuf-xlib libgdk_pixbuf_xlib-2.0 ${STAGING_LIBDIR}
-	oe_libinstall -so -C gdk-pixbuf libgdk_pixbuf-2.0 ${STAGING_LIBDIR}
-	if test -d modules/other/gail/libgail-util ; then
-		oe_libinstall -so -C modules/other/gail/libgail-util libgailutil ${STAGING_LIBDIR}
-	fi
-
-	autotools_stage_includes
-
-	mkdir -p ${STAGING_LIBDIR}/gtk-2.0/include
-	install -m 0644 gdk/gdkconfig.h ${STAGING_LIBDIR}/gtk-2.0/include/gdkconfig.h
+do_install_append () {
+	mkdir -p ${D}${libdir}/gtk-2.0/include
+	install -m 0644 gdk/gdkconfig.h ${D}${libdir}/gtk-2.0/include/gdkconfig.h
 	# Copy over all headers, since the maemo stuff needs access to the private api. *sigh*
-	cp gtk/*.h ${STAGING_INCDIR}/gtk-2.0/gtk/
+	cp gtk/*.h ${D}${includedir}/gtk-2.0/gtk/
 
 	install -m 0644 m4macros/gtk-2.0.m4 ${STAGING_DATADIR}/aclocal/
-}
 
-do_install_append () {
 	install -d ${D}${sysconfdir}/gtk-2.0
 	rm -f ${D}${libdir}/gtk-2.0/*/*.la ${D}${libdir}/gtk-2.0/${LIBV}/*/*.la
 }
diff --git a/recipes/gtk+/gtk+_2.14.2.bb b/recipes/gtk+/gtk+_2.14.2.bb
index a6ba9ce..bd23eea 100644
--- a/recipes/gtk+/gtk+_2.14.2.bb
+++ b/recipes/gtk+/gtk+_2.14.2.bb
@@ -29,16 +29,6 @@ python populate_packages_prepend () {
                 bb.data.setVar('PKG_${PN}', 'libgtk-2.0', d)
 }
 
-
-do_stage_append() {
- 
- 	# this tool is required by gnome-keyring 2.26.0 to get built
- 	# it is written in Python and use only Python xml
- 	install -d ${STAGING_BINDIR_NATIVE}
- 	install -m 0755 ${S}/gtk/gtk-builder-convert ${STAGING_BINDIR_NATIVE}
- 
-}
-
 # gail is part of gtk+ since gtk+-2.13.0 (targetting >=GNOME 2.23):
 PROVIDES = "virtual/gail"
 RPROVIDES_${PN} = "libgailutil18"
diff --git a/recipes/gtk+/gtk+_2.16.4.bb b/recipes/gtk+/gtk+_2.16.4.bb
index 34d4491..470bd06 100644
--- a/recipes/gtk+/gtk+_2.16.4.bb
+++ b/recipes/gtk+/gtk+_2.16.4.bb
@@ -42,11 +42,3 @@ RCONFLICTS_${PN}-dbg = "libgailutil-dbg"
 RREPLACES_${PN}-dbg = "libgailutil-dbg"
 # FIXME: replace locales as well
 
-do_stage_append() {
-
-	# this tool is required by gnome-keyring 2.26.0 to get built
-	# it is written in Python and use only Python xml
-	install -d ${STAGING_BINDIR_NATIVE}
-	install -m 0755 ${S}/gtk/gtk-builder-convert ${STAGING_BINDIR_NATIVE}
-
-}
diff --git a/recipes/gtk+/gtk+_2.16.6.bb b/recipes/gtk+/gtk+_2.16.6.bb
index 34d4491..470bd06 100644
--- a/recipes/gtk+/gtk+_2.16.6.bb
+++ b/recipes/gtk+/gtk+_2.16.6.bb
@@ -42,11 +42,3 @@ RCONFLICTS_${PN}-dbg = "libgailutil-dbg"
 RREPLACES_${PN}-dbg = "libgailutil-dbg"
 # FIXME: replace locales as well
 
-do_stage_append() {
-
-	# this tool is required by gnome-keyring 2.26.0 to get built
-	# it is written in Python and use only Python xml
-	install -d ${STAGING_BINDIR_NATIVE}
-	install -m 0755 ${S}/gtk/gtk-builder-convert ${STAGING_BINDIR_NATIVE}
-
-}
diff --git a/recipes/gtk+/gtk+_2.18.0.bb b/recipes/gtk+/gtk+_2.18.0.bb
index 34d4491..470bd06 100644
--- a/recipes/gtk+/gtk+_2.18.0.bb
+++ b/recipes/gtk+/gtk+_2.18.0.bb
@@ -42,11 +42,3 @@ RCONFLICTS_${PN}-dbg = "libgailutil-dbg"
 RREPLACES_${PN}-dbg = "libgailutil-dbg"
 # FIXME: replace locales as well
 
-do_stage_append() {
-
-	# this tool is required by gnome-keyring 2.26.0 to get built
-	# it is written in Python and use only Python xml
-	install -d ${STAGING_BINDIR_NATIVE}
-	install -m 0755 ${S}/gtk/gtk-builder-convert ${STAGING_BINDIR_NATIVE}
-
-}
diff --git a/recipes/gtk+/gtk+_2.18.3.bb b/recipes/gtk+/gtk+_2.18.3.bb
index 65d0b86..ec3690d 100644
--- a/recipes/gtk+/gtk+_2.18.3.bb
+++ b/recipes/gtk+/gtk+_2.18.3.bb
@@ -46,11 +46,3 @@ RCONFLICTS_${PN}-dbg = "libgailutil-dbg"
 RREPLACES_${PN}-dbg = "libgailutil-dbg"
 # FIXME: replace locales as well
 
-do_stage_append() {
-
-	# this tool is required by gnome-keyring 2.26.0 to get built
-	# it is written in Python and use only Python xml
-	install -d ${STAGING_BINDIR_NATIVE}
-	install -m 0755 ${S}/gtk/gtk-builder-convert ${STAGING_BINDIR_NATIVE}
-
-}
diff --git a/recipes/gtk+/gtk+_2.18.6.bb b/recipes/gtk+/gtk+_2.18.6.bb
index 6476f4c..674a88a 100644
--- a/recipes/gtk+/gtk+_2.18.6.bb
+++ b/recipes/gtk+/gtk+_2.18.6.bb
@@ -1,12 +1,24 @@
 require gtk+.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
+
+BBCLASSEXTEND = "native"
+
+DEPENDS_virtclass-native = "atk-native pango-native cairo-native"
 
 # Enable xkb selectively
 XKBTOGGLE = " --disable-xkb"
 XKBTOGGLE_angstrom = ""
 
 EXTRA_OECONF = "--with-libtiff ${XKBTOGGLE} --disable-glibtest gio_can_sniff=yes"
+EXTRA_OECONF_append_virtclass-native = " --without-libtiff --disable-modules"
+
+do_install_virtclass-native () {
+	autotools_do_install
+	find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \;
+	rm ${D}${bindir}/gdk-pixbuf-csource
+	echo "going native!"
+}
 
 PACKAGES_DYNAMIC = "gtk-module-* gdk-pixbuf-loader-* gtk-immodule-* gtk-printbackend-*"
 





More information about the Openembedded-commits mailing list