Skip to contentSkip to conversation

sysprof: fix floating dependency on polkit

PATCH Superseded Maxin B. John 2 participants 5 messages Jul 22, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 sysprof: fix floating dependency on polkit

Fix the floating dependency on polkit by providing a PACKAGECONFIG option. Then, package the newly created files appropriately.

[YOCTO #9987]

---
 ...igure-Add-option-to-enable-disable-polkit.patch | 41 ++++++++++++++++++++++
 meta/recipes-kernel/sysprof/sysprof_git.bb         |  7 +++-
 2 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch
meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch new file +41 -0
new file mode 100644
index 0000000..158d997
@@ -0,0 +1,41 @@
+From 2b4005d72d3393933a7914be102ea65505c536cc Mon Sep 17 00:00:00 2001
+From: "Maxin B. John" <[email protected]>
+Date: Thu, 21 Jul 2016 11:53:31 +0300
+Subject: [PATCH] configure: Add option to enable/disable polkit
+
+Changes the configure behaviour from autodetecting the polkit by default
+to having an option to disable it explicitly
+
+Upstream-Status: Pending
+
+Signed-off-by: Maxin B. John <[email protected]>
+---
+ configure.ac | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 2246d5a..3d3fe0f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -104,10 +104,18 @@ PKG_CHECK_MODULES(GTK,
+                   [gtk+-3.0 >= gtk_required_version],
+                   [have_gtk=yes],
+                   [have_gtk=no])
++AC_ARG_ENABLE([polkit],
++                   AS_HELP_STRING([--disable-polkit], [Do not use Polkit]),
++                   [enable_polkit="$enableval"], [enable_polkit="yes"])
++
++AS_IF([test "x$enable_polkit" = "xyes"], [
+ PKG_CHECK_MODULES(POLKIT,
+                   [polkit-gobject-1],
+                   [have_polkit=yes],
+                   [have_polkit=no])
++                                         ])
++AM_CONDITIONAL([HAVE_POLKIT], [test "x$enable_polkit" = "xyes"])
++
+ PKG_CHECK_MODULES(SYSTEMD,
+                   [libsystemd >= systemd_required_version],
+                   [have_systemd=yes],
+-- 
+2.4.0
+
meta/recipes-kernel/sysprof/sysprof_git.bb +6 -1
index 2b0fbec..a29d126 100644
@@ -3,7 +3,7 @@ LICENSE = "GPLv3+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
                     file://src/sp-application.c;endline=17;md5=40e55577ef122c88fe20052acda64875"
 
-inherit gnomebase gettext
+inherit gnomebase gettext systemd
 
 DEPENDS = "glib-2.0"
 
@@ -13,6 +13,7 @@ PV = "3.20.0+git${SRCPV}"
 
 SRC_URI = "git://git.gnome.org/sysprof \
            file://define-NT_GNU_BUILD_ID.patch \
+           file://0001-configure-Add-option-to-enable-disable-polkit.patch \
            file://0001-Disable-check-for-polkit-for-UI.patch \
            file://0001-Avoid-building-docs.patch \
            file://0001-callgraph-Use-U64_TO_POINTER.patch \
@@ -27,9 +28,13 @@ EXTRA_OECONF = "--enable-compile-warnings"
 
 PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk', '', d)}"
 PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
+PACKAGECONFIG[polkit] = "--enable-polkit,--disable-polkit,polkit dbus"
 
 FILES_${PN} += "${datadir}/icons/ ${libdir}/libsysprof*"
+FILES_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'polkit', '${datadir}/dbus-1/', '', d)}"
 FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig"
 
+SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'sysprof2.service', '', d)}"
+
 # We do not yet work for aarch64.
 COMPATIBLE_HOST = "^(?!aarch64).*"
Signature · 1 line
2.4.0
#1 lore raw

PATCH 2/3 bluez5: upgrade to 5.41

5.40 -> 5.41

---
 meta/recipes-connectivity/bluez5/{bluez5_5.40.bb => bluez5_5.41.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-connectivity/bluez5/{bluez5_5.40.bb => bluez5_5.41.bb} (89%)
meta/recipes-connectivity/bluez5/bluez5_5.41.bb renamed from meta/recipes-connectivity/bluez5/bluez5_5.40.bb +2 -2
similarity index 89%
rename from meta/recipes-connectivity/bluez5/bluez5_5.40.bb
rename to meta/recipes-connectivity/bluez5/bluez5_5.41.bb
index 1350095..522aab7 100644
@@ -2,8 +2,8 @@ require bluez5.inc
 
 REQUIRED_DISTRO_FEATURES = "bluez5"
 
-SRC_URI[md5sum] = "eb24c0d9eaeb1fb69833f322ec669e8b"
-SRC_URI[sha256sum] = "dada8b812055afcad4546d9966f9a763e4723169e89706e2b240c7b7e998dc27"
+SRC_URI[md5sum] = "318341b2188698130adb73236ee69244"
+SRC_URI[sha256sum] = "df7dc4462494dad4e60a2943240d584f6e760235dca64f5f10eba46dbab7f5f0"
 
 # noinst programs in Makefile.tools that are conditional on READLINE
 # support
Signature · 1 line
2.4.0
#2 lore raw

PATCH 3/3 harfbuzz: upgrade to 1.3.0

In reply to Maxin B. John

1.2.7 -> 1.3.0

---
 .../harfbuzz/{harfbuzz_1.2.7.bb => harfbuzz_1.3.0.bb}                 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/harfbuzz/{harfbuzz_1.2.7.bb => harfbuzz_1.3.0.bb} (88%)
meta/recipes-graphics/harfbuzz/harfbuzz_1.3.0.bb renamed from meta/recipes-graphics/harfbuzz/harfbuzz_1.2.7.bb +2 -2
similarity index 88%
rename from meta/recipes-graphics/harfbuzz/harfbuzz_1.2.7.bb
rename to meta/recipes-graphics/harfbuzz/harfbuzz_1.3.0.bb
index d3f81c3b..e99a0a9 100644
@@ -12,8 +12,8 @@ DEPENDS = "glib-2.0 cairo fontconfig freetype"
 
 SRC_URI = "http://www.freedesktop.org/software/harfbuzz/release/${BP}.tar.bz2"
 
-SRC_URI[md5sum] = "3ac286c9f9756aa92257c278b2815d34"
-SRC_URI[sha256sum] = "bba0600ae08b84384e6d2d7175bea10b5fc246c4583dc841498d01894d479026"
+SRC_URI[md5sum] = "a82d49ff67197bc3c96ea34b98880c52"
+SRC_URI[sha256sum] = "b04be31633efee2cae1d62d46434587302554fa837224845a62565ec68a0334d"
 
 inherit autotools pkgconfig lib_package
 
Signature · 1 line
2.4.0
#3 lore raw
In reply to Maxin B. John
Quoted 3 lines · Maxin B. John

+FILES_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'polkit', '${datadir}/dbus-1/', '', d)}"

No need to do conditionals in FILES as it's fine for files to not exist.

Ross

#4 lore raw

Hi Ross,

Quoted 7 lines · Ross
Quoted 3 lines · Maxin B. John
  +FILES_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'polkit', '${datadir}/dbus-1/', '', d)}"

No need to do conditionals in FILES as it's fine for files to not exist.

Thanks, Sending v2 soon.

Quoted 1 line

Ross

Best Regards,
Maxin