Skip to contentSkip to conversation

dbus-broker: include only if systemd is DISTO_FEATURE

PATCH In review Armin Kuster 2 participants 12 messages Apr 10, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/10 dbus-broker: include only if systemd is DISTO_FEATURE

---
 meta-oe/recipes-core/dbus/dbus-broker_git.bb | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
meta-oe/recipes-core/dbus/dbus-broker_git.bb +6 -3
index 51dfe8c..b62bccf 100644
@@ -6,7 +6,7 @@ SECTION = "base"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=7b486c2338d225a1405d979ed2c15ce8"
 
-DEPENDS = "dbus glib-2.0 expat systemd"
+DEPENDS = "dbus glib-2.0 expat"
 
 PV = "9+git${SRCPV}"
 SRCREV = "ccd06b284892182af569e69046262331150e3536"
@@ -17,13 +17,16 @@ SRC_URI += "file://0002-Correct-including-directory-for-conf.patch"
 
 S = "${WORKDIR}/git"
 
-inherit meson pkgconfig systemd
+inherit meson pkgconfig systemd distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "systemd"
 
 SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 
 FILES_${PN} += "${systemd_system_unitdir}"
 FILES_${PN} += "${systemd_user_unitdir}"
 
-RDEPENDS_${PN} = "dbus systemd"
+RDEPENDS_${PN} = "dbus"
 
 BBCLASSEXTEND = "native"
+
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/10 imsettings: only include when x11 in DISTRO_FEATURES

---
 meta-xfce/recipes-extended/imsettings/imsettings_1.7.3.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-xfce/recipes-extended/imsettings/imsettings_1.7.3.bb +3 -1
index c00b193..8f622bf 100644
@@ -7,7 +7,9 @@ This package contains the core DBus services and some utilities."
 HOMEPAGE = "http://code.google.com/p/imsettings/"
 SECTION = "Applications/System"
 
-inherit autotools gtk-doc gobject-introspection
+inherit autotools gtk-doc gobject-introspection distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI = "https://bitbucket.org/tagoh/imsettings/downloads/${BPN}-${PV}.tar.bz2 \
            "
Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/10 xfce4-vala: only include when x11 in DISTRO_FEATURES

In reply to Armin Kuster
---
 meta-xfce/recipes-bindings/vala/xfce4-vala_4.10.3.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-xfce/recipes-bindings/vala/xfce4-vala_4.10.3.bb +3 -1
index a25e2e6..28f9cde 100644
@@ -3,7 +3,9 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad"
 DEPENDS = "libxfce4util garcon xfconf libxfce4ui xfce4-panel exo vala xfce4-dev-tools-native"
 
-inherit xfce pkgconfig
+inherit xfce pkgconfig distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI = "http://archive.xfce.org/src/bindings/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2"
 SRC_URI[md5sum] = "0bbb1d6e473e0fe9b335b7b1b49d8a71"
Signature · 1 line
2.7.4
#3 lore raw

PATCH 4/10 libreport: add PACKCONFIG for gtk

In reply to Armin Kuster

needed when no X11 in DISTRO_FEATURES

---
 meta-oe/recipes-extended/libreport/libreport_2.9.2.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/libreport/libreport_2.9.2.bb +4 -1
index 525437b..e963014 100644
@@ -5,7 +5,7 @@ HOMEPAGE = "https://abrt.readthedocs.org/"
 LICENSE = "GPLv2+"
 DEPENDS = "xmlrpc-c xmlrpc-c-native intltool-native \
         json-c libtar libnewt libproxy rpm \
-        augeas satyr systemd gtk+3 \
+        augeas satyr systemd \
 "
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
@@ -26,6 +26,9 @@ REQUIRED_DISTRO_FEATURES = "systemd"
 
 inherit gettext autotools python3native pkgconfig
 
+PACKAGECONFIGS ??= "${@bb.utils.contains('DISTRO_FEATURES','x11','gtk','',d)}"
+PACKAGECONFIG[gtk] = "--with-gtk, --without-gtk, gtk+3,"
+
 RDEPENDS_python3-libreport += "${PN}"
 
 do_patch[prefuncs] += "do_gen_version"
Signature · 1 line
2.7.4
#4 lore raw

Re: [meta-oe][PATCH 04/10] libreport: add PACKCONFIG for gtk

Quoted 21 lines · Armin Kuster

needed when no X11 in DISTRO_FEATURES

---
 meta-oe/recipes-extended/libreport/libreport_2.9.2.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/libreport/libreport_2.9.2.bb +1 -1
index 525437b..e963014 100644
@@ -5,7 +5,7 @@ HOMEPAGE = "https://abrt.readthedocs.org/"
 LICENSE = "GPLv2+"
 DEPENDS = "xmlrpc-c xmlrpc-c-native intltool-native \
         json-c libtar libnewt libproxy rpm \
-        augeas satyr systemd gtk+3 \
+        augeas satyr systemd \
 "
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

meta-oe/recipes-extended/libreport/libreport_2.9.2.bb REQUIRED_DISTRO_FEATURES = "systemd" · line 29

Quoted 4 lines
meta-oe/recipes-extended/libreport/libreport_2.9.2.bb +1 -0
@@ -26,6 +26,9 @@ REQUIRED_DISTRO_FEATURES = "systemd"
 
 inherit gettext autotools python3native pkgconfig
 
+PACKAGECONFIGS ??= "${@bb.utils.contains('DISTRO_FEATURES','x11','gtk','',d)}"

Typo? Should be PACKAGECONFIG.

author
#5 lore raw

Re: [meta-oe][PATCH 04/10] libreport: add PACKCONFIG for gtk

Quoted 20 lines · Anuj Mittal
Quoted 19 lines · Armin Kuster

needed when no X11 in DISTRO_FEATURES

---
 meta-oe/recipes-extended/libreport/libreport_2.9.2.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/libreport/libreport_2.9.2.bb +1 -1
index 525437b..e963014 100644
@@ -5,7 +5,7 @@ HOMEPAGE = "https://abrt.readthedocs.org/"
 LICENSE = "GPLv2+"
 DEPENDS = "xmlrpc-c xmlrpc-c-native intltool-native \
         json-c libtar libnewt libproxy rpm \
-        augeas satyr systemd gtk+3 \
+        augeas satyr systemd \
 "
 
Quoted 7 lines

meta-oe/recipes-extended/libreport/libreport_2.9.2.bb REQUIRED_DISTRO_FEATURES = "systemd" · line 29

Quoted 6 lines
meta-oe/recipes-extended/libreport/libreport_2.9.2.bb +1 -0
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
@@ -26,6 +26,9 @@ REQUIRED_DISTRO_FEATURES = "systemd"
 
 inherit gettext autotools python3native pkgconfig
 
+PACKAGECONFIGS ??= "${@bb.utils.contains('DISTRO_FEATURES','x11','gtk','',d)}"

Typo? Should be PACKAGECONFIG.

I would not be surprised. V2 shortly.

thanks for the feedback and review.
Armin

#6 lore raw

PATCH 5/10 xarchiver: only include when x11 in DISTRO_FEATURES

In reply to Armin Kuster
---
 meta-xfce/recipes-apps/xarchiver/xarchiver_git.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-xfce/recipes-apps/xarchiver/xarchiver_git.bb +3 -1
index e275af0..a27c8f5 100644
@@ -12,7 +12,9 @@ SRCREV = "5a26dd8ceab0af71b30c83286d7c7398a858c814"
 PV = "0.5.3"
 S = "${WORKDIR}/git"
 
-inherit xfce-git gettext pkgconfig autotools gtk-icon-cache
+inherit xfce-git gettext pkgconfig autotools gtk-icon-cache distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 # install tap files for thunar-archive-plugin in ${libdir}/thunar-archive-plugin
 EXTRA_OECONF += "--libexecdir=${libdir}"
Signature · 1 line
2.7.4
#7 lore raw

PATCH 6/10 gnome-system-monitor: only include when x11 in DISTRO_FEATURES

In reply to Armin Kuster
---
 .../recipes-gnome/gnome-system-monitor/gnome-system-monitor_3.26.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-gnome/recipes-gnome/gnome-system-monitor/gnome-system-monitor_3.26.0.bb +3 -1
index 61af92b..9b6ce17 100644
@@ -12,7 +12,9 @@ DEPENDS = " \
     libwnck3 \
 "
 
-inherit gnomebase
+inherit gnomebase distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI[archive.md5sum] = "fcd59867c07f8c4853b1e28d60cbc037"
 SRC_URI[archive.sha256sum] = "f848a8c2ca5e164cf09d3a205dd49e4e4bf4b60d43b0969c10443eb519d0e6b3"
Signature · 1 line
2.7.4
#8 lore raw

PATCH 7/10 packagegroup-xfce-extended: only include when x11 in DISTRO_FEATURES

In reply to Armin Kuster
---
 meta-xfce/recipes-xfce/packagegroups/packagegroup-xfce-extended.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-xfce/recipes-xfce/packagegroups/packagegroup-xfce-extended.bb +3 -1
index cc231b4..b73c9ee 100644
@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
 PR = "r10"
 
-inherit packagegroup
+inherit packagegroup distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 # mandatory
 RDEPENDS_${PN} = " \
Signature · 1 line
2.7.4
#9 lore raw

PATCH 8/10 menulibre: only include when x11 in DISTRO_FEATURES

In reply to Armin Kuster
---
 meta-xfce/recipes-apps/menulibre/menulibre_2.1.5.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-xfce/recipes-apps/menulibre/menulibre_2.1.5.bb +3 -1
index cc7b291..d1f3471 100644
@@ -9,7 +9,9 @@ DEPENDS = " \
     intltool-native \
 "
 
-inherit distutils3 gtk-icon-cache
+inherit distutils3 gtk-icon-cache distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI = "https://launchpad.net/menulibre/2.1/${PV}/+download/${PN}-${PV}.tar.gz"
 SRC_URI[md5sum] = "efc7edb49bb0e5fea49e158b40573334"
Signature · 1 line
2.7.4
#10 lore raw

PATCH 9/10 python-blivet: only include when x11 in DISTRO_FEATURES

In reply to Armin Kuster
---
 meta-python/recipes-extended/python-blivet/python3-blivetgui_2.1.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-extended/python-blivet/python3-blivetgui_2.1.5.bb +1 -1
index ac507ca..28c2565 100644
@@ -13,7 +13,7 @@ SRC_URI = "git://github.com/rhinstaller/blivet-gui;branch=master \
 "
 
 inherit distro_features_check
-REQUIRED_DISTRO_FEATURES = "systemd"
+REQUIRED_DISTRO_FEATURES = "x11 systemd"
 
 inherit setuptools3 python3native
 
Signature · 1 line
2.7.4
#11 lore raw

PATCH 10/10 usermode: also only include when x11 in DISTRO_FEATURES

In reply to Armin Kuster
---
 meta-gnome/recipes-support/usermode/usermode_1.111.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-support/usermode/usermode_1.111.bb +1 -1
index 0f88040..3aea2e6 100644
@@ -27,4 +27,4 @@ inherit distro_features_check autotools gettext pkgconfig
 
 EXTRA_OEMAKE += "INSTALL='install -p'"
 
-REQUIRED_DISTRO_FEATURES = "pam"
+REQUIRED_DISTRO_FEATURES = "x11 pam"
Signature · 1 line
2.7.4