Openembedded Devel Discussions
 help / color / mirror / Atom feed
* Possible gtk+-native de-breakage
@ 2010-03-06 19:39 Graeme Gregory
  2010-03-07 12:40 ` Martin Jansa
  2010-03-09 20:49 ` Phil Blundell
  0 siblings, 2 replies; 3+ messages in thread
From: Graeme Gregory @ 2010-03-06 19:39 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

Hi, I knocked this up while doing some enterprise java installs this after
noon and Im too brain fried to deal with it and wont have time in next few
days.

So can people checkout the attached patch/improve it.

Graeme


[-- Attachment #2: gtk-pixbuf.patch --]
[-- Type: text/plain, Size: 3092 bytes --]

diff --git a/recipes/gtk+/gdk-pixbuf-csource-native_2.12.11.bb b/recipes/gtk+/gdk-pixbuf-csource-native_2.12.11.bb
deleted file mode 100644
index 22d30bf..0000000
--- a/recipes/gtk+/gdk-pixbuf-csource-native_2.12.11.bb
+++ /dev/null
@@ -1,33 +0,0 @@
-require gtk+_${PV}.bb
-inherit native
-DEPENDS = "jpeg-native libpng-native gettext-native glib-2.0-native libx11-native"
-S = "${WORKDIR}/gtk+-${PV}"
-FILESPATH = "${FILE_DIRNAME}/gdk-pixbuf-csource:${FILE_DIRNAME}/gtk+-${PV}:${FILE_DIRNAME}/files"
-SRC_URI += "file://reduce-dependencies.patch;patch=1"
-
-#clear recommends for uclibc builds
-RRECOMMENDS = " "
-RRECOMMENDS_${PN}_linux = "  "
-RRECOMMENDS_${PN}_linux-gnueabi = " "
-
-EXTRA_OECONF = "\
-  --with-gdktarget=x11 \
-  --without-libtiff \
-  --with-libjpeg \
-  --with-libpng \
-  --disable-cups \
-"
-
-do_compile() {
-	cd gdk-pixbuf && oe_runmake
-}
-
-do_stage() {
-	cd gdk-pixbuf && oe_runmake install
-	find ${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \;
-}
-
-do_install() {
-	:
-}
-
diff --git a/recipes/gtk+/gtk+.inc b/recipes/gtk+/gtk+.inc
index e6a0684..8e822b5 100644
--- a/recipes/gtk+/gtk+.inc
+++ b/recipes/gtk+/gtk+.inc
@@ -5,7 +5,7 @@ SECTION = "libs"
 LICENSE = "LGPL"
 PRIORITY = "optional"
 DEPENDS = "glib-2.0 tiff pango atk jpeg libpng libxext libxcursor gtk-doc libgcrypt cups \
-	   libxrandr libxdamage libxrender libxcomposite cairo jasper"
+	   libxrandr libxdamage libxrender libxcomposite cairo jasper gtk+-native"
 PROVIDES = "gdk-pixbuf"
 
 MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
@@ -51,6 +51,7 @@ FILES_${PN}-dbg += " \
 NEATSTUFF = " ttf-dejavu-sans gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm "
 
 RRECOMMENDS_${PN} = " ${NEATSTUFF} "
+RRECOMMENDS_${PN}_libc-uclibc = " ${NEATSTUFF} "
 RRECOMMENDS_${PN}_linux = " ${NEATSTUFF} glibc-gconv-iso8859-1 "
 RRECOMMENDS_${PN}_linux-gnueabi = " ${NEATSTUFF} glibc-gconv-iso8859-1"
 
diff --git a/recipes/gtk+/gtk+_2.18.6.bb b/recipes/gtk+/gtk+_2.18.6.bb
index 9321b43..8546591 100644
--- a/recipes/gtk+/gtk+_2.18.6.bb
+++ b/recipes/gtk+/gtk+_2.18.6.bb
@@ -8,20 +8,14 @@ PR = "${INC_PR}.3"
 BBCLASSEXTEND = "native"
 
 DEPENDS_virtclass-native = "libpng-native atk-native pango-native cairo-native libxrender-native"
+PROVIDES_virtclass-native = "gdk-pixbuf-csource-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 --without-libjpeg --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!"
-}
+EXTRA_OECONF_append_virtclass-native = " --without-libtiff --without-libjpeg"
 
 PACKAGES_DYNAMIC = "gtk-module-* gdk-pixbuf-loader-* gtk-immodule-* gtk-printbackend-*"
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Possible gtk+-native de-breakage
  2010-03-06 19:39 Possible gtk+-native de-breakage Graeme Gregory
@ 2010-03-07 12:40 ` Martin Jansa
  2010-03-09 20:49 ` Phil Blundell
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Jansa @ 2010-03-07 12:40 UTC (permalink / raw)
  To: openembedded-devel

On Sat, Mar 06, 2010 at 07:39:07PM +0000, Graeme Gregory wrote:
> Hi, I knocked this up while doing some enterprise java installs this after
> noon and Im too brain fried to deal with it and wont have time in next few
> days.
> 
> So can people checkout the attached patch/improve it.

I can confirm, that this patch solves
http://bugs.openembedded.org/show_bug.cgi?id=5405
as well as gtk+ demos build.

As RP said, maybe we should keep gdk-pixbuf-csource-native for those who
don't need whole gtk+, but for those like me who builds whole
gtk+-native because other apps it's better with
gdk-pixbuf-csource-native provider set to gtk+-native (to build it just
once).

Regards,

-- 
uin:136542059                jid:Martin.Jansa@gmail.com
Jansa Martin                 sip:jamasip@voip.wengo.fr 
JaMa                         



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Possible gtk+-native de-breakage
  2010-03-06 19:39 Possible gtk+-native de-breakage Graeme Gregory
  2010-03-07 12:40 ` Martin Jansa
@ 2010-03-09 20:49 ` Phil Blundell
  1 sibling, 0 replies; 3+ messages in thread
From: Phil Blundell @ 2010-03-09 20:49 UTC (permalink / raw)
  To: openembedded-devel

On Sat, 2010-03-06 at 19:39 +0000, Graeme Gregory wrote:
> Hi, I knocked this up while doing some enterprise java installs this after
> noon and Im too brain fried to deal with it and wont have time in next few
> days.
> 
> So can people checkout the attached patch/improve it.

Thanks.  I checked this patch in, apart from the deletion of the
existing gdk-pixbuf-csource-native and that RRECOMMENDS_
${PN}_libc-uclibc line that we discussed on irc.  If that really is
necessary then I would like to understand why before adding it.

p.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-09 20:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-06 19:39 Possible gtk+-native de-breakage Graeme Gregory
2010-03-07 12:40 ` Martin Jansa
2010-03-09 20:49 ` Phil Blundell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox