* [PATCH] gtk+: don't provide gtk-update-icon-cache-native
@ 2013-03-25 23:47 Andreas Müller
2013-03-26 10:32 ` Burton, Ross
0 siblings, 1 reply; 7+ messages in thread
From: Andreas Müller @ 2013-03-25 23:47 UTC (permalink / raw)
To: openembedded-core
fixes:
| ERROR: Multiple .bb files are due to be built which each provide virtual/gtk-update-icon-cache-native
| (/home/Superandy/data/oe-core/sources/openembedded-core/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
| virtual:native:/home/Superandy/data/oe-core/sources/openembedded-core/meta/recipes-gnome/gtk+/gtk+_2.24.15.bb).
| This usually means one provides something the other doesn't and should.
gtk-update-icon-cache-native_3.4.4 provides a version working with gtk+. This
patch was tested for gnome-icon-theme and hicolor-icon-theme by:
1. building xfce/gtk+ (gtk3-less) image
2. checking for existing icon-theme.cache in rootfs
3. running image / open menus + test applications
4. executing 'gtk-update-icon-cache-2.0 --validate <both icon-themes-dirs>'
5. executing 'gtk-update-icon-cache-2.0 -f <both icon-themes-dirs>' + exact size checking
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
meta/recipes-gnome/gtk+/gtk+.inc | 8 --------
meta/recipes-gnome/gtk+/gtk+_2.24.15.bb | 5 -----
2 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc
index f05838a..84edaf3 100644
--- a/meta/recipes-gnome/gtk+/gtk+.inc
+++ b/meta/recipes-gnome/gtk+/gtk+.inc
@@ -10,8 +10,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
SECTION = "libs"
-PROVIDES_class-native = "virtual/gtk-update-icon-cache-native"
-
X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \
libgcrypt cairo gdk-pixbuf"
@@ -81,12 +79,6 @@ do_install () {
mv ${D}${bindir}/gtk-update-icon-cache ${D}${bindir}/gtk-update-icon-cache-2.0
}
-do_install_append_class-native () {
- # Ideally we'd use alternatives in the sysroot, but they don't work.
- # As we know we don't have a native GTK+ 3 (yet), make a symlink instead.
- ln -s gtk-update-icon-cache-2.0 ${D}${bindir}/gtk-update-icon-cache
-}
-
SYSROOT_PREPROCESS_FUNCS += "gtk_sysroot_preprocess"
gtk_sysroot_preprocess () {
diff --git a/meta/recipes-gnome/gtk+/gtk+_2.24.15.bb b/meta/recipes-gnome/gtk+/gtk+_2.24.15.bb
index 4e045e4..3a76393 100644
--- a/meta/recipes-gnome/gtk+/gtk+_2.24.15.bb
+++ b/meta/recipes-gnome/gtk+/gtk+_2.24.15.bb
@@ -42,11 +42,6 @@ BBCLASSEXTEND = "native"
RRECOMMENDS_${PN}_class-native = ""
DEPENDS_class-native = "glib-2.0-native atk-native pango-native cairo-native gdk-pixbuf-native"
-do_install_append_class-native () {
- create_wrapper ${D}/${bindir}/gtk-update-icon-cache-2.0 \
- GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
-}
-
python populate_packages_prepend () {
gtk_libdir = d.expand('${libdir}/gtk-2.0/${LIBV}')
immodules_root = os.path.join(gtk_libdir, 'immodules')
--
1.7.4.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] gtk+: don't provide gtk-update-icon-cache-native
2013-03-25 23:47 [PATCH] gtk+: don't provide gtk-update-icon-cache-native Andreas Müller
@ 2013-03-26 10:32 ` Burton, Ross
2013-03-26 11:40 ` Andreas Müller
0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2013-03-26 10:32 UTC (permalink / raw)
To: Andreas Müller; +Cc: openembedded-core
On 25 March 2013 23:47, Andreas Müller <schnitzeltony@googlemail.com> wrote:
> fixes:
> | ERROR: Multiple .bb files are due to be built which each provide virtual/gtk-update-icon-cache-native
> | (/home/Superandy/data/oe-core/sources/openembedded-core/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
> | virtual:native:/home/Superandy/data/oe-core/sources/openembedded-core/meta/recipes-gnome/gtk+/gtk+_2.24.15.bb).
> | This usually means one provides something the other doesn't and should.
NACK.
The only way this can happen is if something is depending on
gtk+-native, as everything in oe-core (should) depends on
virtual/gtk-update-icon-cache:
commit f07515096ea39e267cd3ebeea08cffbba1af07e0
Author: Ross Burton <ross.burton@intel.com>
Date: Mon Mar 4 12:52:45 2013 +0000
default-providers: add default virtual provider for gtk-update-icon-cache
Use a virtual provider instead of a hard dependency so that if
gtk+-native is
required in some configuration, this provider can be changed and then
gtk+-native and gtk-update-icon-cache-native won't be both built
and conflict in
the sysroot.
Presumably some application you've got is explicitly depending on
gtk+-native, probably for the icon cache handling. It should drop
that build dependency and use the class instead.
Your fix "works" but will cause file overwrite warnings in sysroot
when you actually do want a gtk+-native, for example if you do want to
build a native gtk+ application or some reason.
Ross
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] gtk+: don't provide gtk-update-icon-cache-native
2013-03-26 10:32 ` Burton, Ross
@ 2013-03-26 11:40 ` Andreas Müller
2013-03-26 11:48 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Andreas Müller @ 2013-03-26 11:40 UTC (permalink / raw)
To: Burton, Ross; +Cc: openembedded-core
On Tue, Mar 26, 2013 at 11:32 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 25 March 2013 23:47, Andreas Müller <schnitzeltony@googlemail.com> wrote:
>> fixes:
>> | ERROR: Multiple .bb files are due to be built which each provide virtual/gtk-update-icon-cache-native
>> | (/home/Superandy/data/oe-core/sources/openembedded-core/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
>> | virtual:native:/home/Superandy/data/oe-core/sources/openembedded-core/meta/recipes-gnome/gtk+/gtk+_2.24.15.bb).
>> | This usually means one provides something the other doesn't and should.
>
> NACK.
>
> The only way this can happen is if something is depending on
> gtk+-native, as everything in oe-core (should) depends on
> virtual/gtk-update-icon-cache:
>
> commit f07515096ea39e267cd3ebeea08cffbba1af07e0
> Author: Ross Burton <ross.burton@intel.com>
> Date: Mon Mar 4 12:52:45 2013 +0000
>
> default-providers: add default virtual provider for gtk-update-icon-cache
>
> Use a virtual provider instead of a hard dependency so that if
> gtk+-native is
> required in some configuration, this provider can be changed and then
> gtk+-native and gtk-update-icon-cache-native won't be both built
> and conflict in
> the sysroot.
>
> Presumably some application you've got is explicitly depending on
> gtk+-native, probably for the icon cache handling. It should drop
> that build dependency and use the class instead.
>
> Your fix "works" but will cause file overwrite warnings in sysroot
> when you actually do want a gtk+-native, for example if you do want to
> build a native gtk+ application or some reason.
>
> Ross
Why do we need two providers which need pinning doing exactly the same?
Andreas
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gtk+: don't provide gtk-update-icon-cache-native
2013-03-26 11:40 ` Andreas Müller
@ 2013-03-26 11:48 ` Richard Purdie
[not found] ` <CALbNGRSvGR75F4-bg123eQhTFaM_ex9Rs=Hyo2-Y6o8m2v9w0Q@mail.gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2013-03-26 11:48 UTC (permalink / raw)
To: Andreas Müller; +Cc: openembedded-core
On Tue, 2013-03-26 at 12:40 +0100, Andreas Müller wrote:
> On Tue, Mar 26, 2013 at 11:32 AM, Burton, Ross <ross.burton@intel.com> wrote:
> > On 25 March 2013 23:47, Andreas Müller <schnitzeltony@googlemail.com> wrote:
> >> fixes:
> >> | ERROR: Multiple .bb files are due to be built which each provide virtual/gtk-update-icon-cache-native
> >> | (/home/Superandy/data/oe-core/sources/openembedded-core/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
> >> | virtual:native:/home/Superandy/data/oe-core/sources/openembedded-core/meta/recipes-gnome/gtk+/gtk+_2.24.15.bb).
> >> | This usually means one provides something the other doesn't and should.
> >
> > NACK.
> >
> > The only way this can happen is if something is depending on
> > gtk+-native, as everything in oe-core (should) depends on
> > virtual/gtk-update-icon-cache:
> >
> > commit f07515096ea39e267cd3ebeea08cffbba1af07e0
> > Author: Ross Burton <ross.burton@intel.com>
> > Date: Mon Mar 4 12:52:45 2013 +0000
> >
> > default-providers: add default virtual provider for gtk-update-icon-cache
> >
> > Use a virtual provider instead of a hard dependency so that if
> > gtk+-native is
> > required in some configuration, this provider can be changed and then
> > gtk+-native and gtk-update-icon-cache-native won't be both built
> > and conflict in
> > the sysroot.
> >
> > Presumably some application you've got is explicitly depending on
> > gtk+-native, probably for the icon cache handling. It should drop
> > that build dependency and use the class instead.
> >
> > Your fix "works" but will cause file overwrite warnings in sysroot
> > when you actually do want a gtk+-native, for example if you do want to
> > build a native gtk+ application or some reason.
> >
> > Ross
> Why do we need two providers which need pinning doing exactly the same?
I'd love to remove gtk+-native.
The icon-cache-native gives about a 5% build speedup as it has a lot
less dependencies than gtk+-native so it is a good thing. We could fix
things to coexist however unless there is a good reason to keep gtk
+-native around, we should switch things over. Things were therefore
left like this to provide gentle pressure to layers that are still using
gtk+-native.
If there are valid cases where gtk+-native is still necessary we can
revisit this but we're not aware of any right now.
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-03-27 11:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-25 23:47 [PATCH] gtk+: don't provide gtk-update-icon-cache-native Andreas Müller
2013-03-26 10:32 ` Burton, Ross
2013-03-26 11:40 ` Andreas Müller
2013-03-26 11:48 ` Richard Purdie
[not found] ` <CALbNGRSvGR75F4-bg123eQhTFaM_ex9Rs=Hyo2-Y6o8m2v9w0Q@mail.gmail.com>
[not found] ` <1364340556.28471.2.camel@ted>
[not found] ` <CALbNGRQE4kGAmeXQ2TqfVqb4rFkQeQJua6COxBEvQNh-FbAKSg@mail.gmail.com>
2013-03-27 8:27 ` Andreas Müller
2013-03-27 10:23 ` Burton, Ross
2013-03-27 10:56 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox