diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-28 11:53:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-01 07:43:32 +0100 |
commit | 5bfcd13c074a69cfb1cf9108cbccee472bad4409 (patch) | |
tree | dd7184e90b27bd4f5c36e390a1bcddaf3252e2cf /meta/recipes-gnome | |
parent | 5b629a962d05aa1ae9d017058d078476d3675850 (diff) | |
download | poky-5bfcd13c074a69cfb1cf9108cbccee472bad4409.tar.gz |
classes/meta: Add DISTRO_FEATURES check for gtk+/gtk3+
If you currently do a DISTRO_FEATURES_remove = "x11" with OE-Core, you
see failures due to dependency problems. The work in resolving this was
partially completed a while back. This adds in the markup mainly for
gtk/gtk3+ recipes and means "bitbake world" will work successfully.
Rather than code the gtk/gtk+ specific distro features into each recipe,
a shared variable is used.
(From OE-Core rev: ef967c70182eeccb59c7511d838a7ecb0b2315c1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome')
-rw-r--r-- | meta/recipes-gnome/epiphany/epiphany_3.16.3.bb | 5 | ||||
-rw-r--r-- | meta/recipes-gnome/gnome-desktop/gnome-desktop3_3.16.2.bb | 3 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+.inc | 2 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+3.inc | 3 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk-engines/gtk-engines_2.20.2.bb | 3 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk-theme-torturer/gtk-theme-torturer_git.bb | 3 | ||||
-rw-r--r-- | meta/recipes-gnome/libglade/libglade_2.6.4.bb | 3 | ||||
-rw-r--r-- | meta/recipes-gnome/libwnck/libwnck3_3.14.0.bb | 5 |
8 files changed, 23 insertions, 4 deletions
diff --git a/meta/recipes-gnome/epiphany/epiphany_3.16.3.bb b/meta/recipes-gnome/epiphany/epiphany_3.16.3.bb index 506fb25dd6..c3745c0ed1 100644 --- a/meta/recipes-gnome/epiphany/epiphany_3.16.3.bb +++ b/meta/recipes-gnome/epiphany/epiphany_3.16.3.bb | |||
@@ -5,7 +5,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | |||
5 | DEPENDS = "libsoup-2.4 webkitgtk gtk+3 iso-codes ca-certificates avahi libnotify gcr libwnck3 \ | 5 | DEPENDS = "libsoup-2.4 webkitgtk gtk+3 iso-codes ca-certificates avahi libnotify gcr libwnck3 \ |
6 | gsettings-desktop-schemas gnome-desktop3" | 6 | gsettings-desktop-schemas gnome-desktop3" |
7 | 7 | ||
8 | inherit gnomebase gsettings | 8 | inherit gnomebase gsettings distro_features_check |
9 | # libwnck3 is x11 only | ||
10 | REQUIRED_DISTRO_FEATURES = "x11" | ||
11 | |||
9 | SRC_URI += "file://0001-yelp.m4-drop-the-check-for-itstool.patch" | 12 | SRC_URI += "file://0001-yelp.m4-drop-the-check-for-itstool.patch" |
10 | SRC_URI[archive.md5sum] = "3296af4532b8019775f4b40d21a341ae" | 13 | SRC_URI[archive.md5sum] = "3296af4532b8019775f4b40d21a341ae" |
11 | SRC_URI[archive.sha256sum] = "d527f1770779ec22d955aeb13b148a846a26144e433ff0480c981af80e2390b1" | 14 | SRC_URI[archive.sha256sum] = "d527f1770779ec22d955aeb13b148a846a26144e433ff0480c981af80e2390b1" |
diff --git a/meta/recipes-gnome/gnome-desktop/gnome-desktop3_3.16.2.bb b/meta/recipes-gnome/gnome-desktop/gnome-desktop3_3.16.2.bb index 1f2f06c847..aa11fa28d9 100644 --- a/meta/recipes-gnome/gnome-desktop/gnome-desktop3_3.16.2.bb +++ b/meta/recipes-gnome/gnome-desktop/gnome-desktop3_3.16.2.bb | |||
@@ -12,6 +12,9 @@ SRC_URI[archive.sha256sum] = "3a8f196b46eb9dbd3ba2afb8fb5fef6a8825539d449a021813 | |||
12 | 12 | ||
13 | DEPENDS += "gsettings-desktop-schemas gconf libxrandr virtual/libx11 gtk+3 glib-2.0 gnome-doc-utils gnome-common startup-notification iso-codes" | 13 | DEPENDS += "gsettings-desktop-schemas gconf libxrandr virtual/libx11 gtk+3 glib-2.0 gnome-doc-utils gnome-common startup-notification iso-codes" |
14 | 14 | ||
15 | inherit distro_features_check | ||
16 | REQUIRED_DISTRO_FEATURES = "x11" | ||
17 | |||
15 | EXTRA_OECONF = "--disable-desktop-docs" | 18 | EXTRA_OECONF = "--disable-desktop-docs" |
16 | 19 | ||
17 | PACKAGES =+ "libgnome-desktop3" | 20 | PACKAGES =+ "libgnome-desktop3" |
diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc index be5273d620..a197b9d96f 100644 --- a/meta/recipes-gnome/gtk+/gtk+.inc +++ b/meta/recipes-gnome/gtk+/gtk+.inc | |||
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" | |||
11 | SECTION = "libs" | 11 | SECTION = "libs" |
12 | 12 | ||
13 | inherit distro_features_check | 13 | inherit distro_features_check |
14 | ANY_OF_DISTRO_FEATURES = "directfb x11" | 14 | ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}" |
15 | 15 | ||
16 | X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite" | 16 | X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite" |
17 | DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \ | 17 | DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \ |
diff --git a/meta/recipes-gnome/gtk+/gtk+3.inc b/meta/recipes-gnome/gtk+/gtk+3.inc index f29f0d3031..558cdd7340 100644 --- a/meta/recipes-gnome/gtk+/gtk+3.inc +++ b/meta/recipes-gnome/gtk+/gtk+3.inc | |||
@@ -10,7 +10,8 @@ DEPENDS = "glib-2.0 cairo pango atk jpeg libpng gdk-pixbuf \ | |||
10 | 10 | ||
11 | LICENSE = "LGPLv2 & LGPLv2+ & LGPLv2.1+" | 11 | LICENSE = "LGPLv2 & LGPLv2+ & LGPLv2.1+" |
12 | 12 | ||
13 | inherit autotools pkgconfig gtk-doc update-alternatives gtk-immodules-cache gsettings | 13 | inherit autotools pkgconfig gtk-doc update-alternatives gtk-immodules-cache gsettings distro_features_check |
14 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" | ||
14 | 15 | ||
15 | # This should be in autotools.bbclass, but until something elses uses it putting | 16 | # This should be in autotools.bbclass, but until something elses uses it putting |
16 | # it here avoids rebuilding everything. | 17 | # it here avoids rebuilding everything. |
diff --git a/meta/recipes-gnome/gtk-engines/gtk-engines_2.20.2.bb b/meta/recipes-gnome/gtk-engines/gtk-engines_2.20.2.bb index c30454cab5..95d5e554d6 100644 --- a/meta/recipes-gnome/gtk-engines/gtk-engines_2.20.2.bb +++ b/meta/recipes-gnome/gtk-engines/gtk-engines_2.20.2.bb | |||
@@ -34,6 +34,9 @@ RDEPENDS_${PN}-dev = "" | |||
34 | inherit gnomebase | 34 | inherit gnomebase |
35 | GNOME_COMPRESS_TYPE="bz2" | 35 | GNOME_COMPRESS_TYPE="bz2" |
36 | 36 | ||
37 | inherit distro_features_check | ||
38 | ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}" | ||
39 | |||
37 | python populate_packages_prepend() { | 40 | python populate_packages_prepend() { |
38 | engines_root = os.path.join(d.getVar('libdir', True), "gtk-2.0/2.10.0/engines") | 41 | engines_root = os.path.join(d.getVar('libdir', True), "gtk-2.0/2.10.0/engines") |
39 | themes_root = os.path.join(d.getVar('datadir', True), "themes") | 42 | themes_root = os.path.join(d.getVar('datadir', True), "themes") |
diff --git a/meta/recipes-gnome/gtk-theme-torturer/gtk-theme-torturer_git.bb b/meta/recipes-gnome/gtk-theme-torturer/gtk-theme-torturer_git.bb index 889fd89417..b67806def9 100644 --- a/meta/recipes-gnome/gtk-theme-torturer/gtk-theme-torturer_git.bb +++ b/meta/recipes-gnome/gtk-theme-torturer/gtk-theme-torturer_git.bb | |||
@@ -13,6 +13,9 @@ S = "${WORKDIR}/git/gtk-theme-torturer" | |||
13 | 13 | ||
14 | CFLAGS += "-Wl,-rpath-link,${STAGING_LIBDIR}" | 14 | CFLAGS += "-Wl,-rpath-link,${STAGING_LIBDIR}" |
15 | 15 | ||
16 | inherit distro_features_check | ||
17 | ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}" | ||
18 | |||
16 | do_install() { | 19 | do_install() { |
17 | install -d ${D}${bindir} | 20 | install -d ${D}${bindir} |
18 | install -m 0755 torturer ${D}${bindir} | 21 | install -m 0755 torturer ${D}${bindir} |
diff --git a/meta/recipes-gnome/libglade/libglade_2.6.4.bb b/meta/recipes-gnome/libglade/libglade_2.6.4.bb index 15267cad87..553e19c601 100644 --- a/meta/recipes-gnome/libglade/libglade_2.6.4.bb +++ b/meta/recipes-gnome/libglade/libglade_2.6.4.bb | |||
@@ -11,7 +11,8 @@ SECTION = "libs" | |||
11 | PR = "r5" | 11 | PR = "r5" |
12 | DEPENDS = "zlib gdk-pixbuf gtk+" | 12 | DEPENDS = "zlib gdk-pixbuf gtk+" |
13 | 13 | ||
14 | inherit autotools pkgconfig gnomebase gtk-doc | 14 | inherit autotools pkgconfig gnomebase gtk-doc distro_features_check |
15 | ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}" | ||
15 | GNOME_COMPRESS_TYPE="bz2" | 16 | GNOME_COMPRESS_TYPE="bz2" |
16 | 17 | ||
17 | SRC_URI += "file://glade-cruft.patch file://no-xml2.patch file://python_environment.patch" | 18 | SRC_URI += "file://glade-cruft.patch file://no-xml2.patch file://python_environment.patch" |
diff --git a/meta/recipes-gnome/libwnck/libwnck3_3.14.0.bb b/meta/recipes-gnome/libwnck/libwnck3_3.14.0.bb index d0f5175e5d..3ee1ae98a4 100644 --- a/meta/recipes-gnome/libwnck/libwnck3_3.14.0.bb +++ b/meta/recipes-gnome/libwnck/libwnck3_3.14.0.bb | |||
@@ -13,3 +13,8 @@ PACKAGECONFIG[startup-notification] = "--enable-startup-notification,--disable-s | |||
13 | inherit gnomebase | 13 | inherit gnomebase |
14 | SRC_URI[archive.md5sum] = "4538672e0d775fadedf10abeb8020047" | 14 | SRC_URI[archive.md5sum] = "4538672e0d775fadedf10abeb8020047" |
15 | SRC_URI[archive.sha256sum] = "f5080076346609b4c36394b879f3a86b92ced3b90a37cb54c8e9a14f00e7921c" | 15 | SRC_URI[archive.sha256sum] = "f5080076346609b4c36394b879f3a86b92ced3b90a37cb54c8e9a14f00e7921c" |
16 | |||
17 | inherit distro_features_check | ||
18 | # libxres means x11 only | ||
19 | REQUIRED_DISTRO_FEATURES = "x11" | ||
20 | |||