summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2018-01-04 15:12:35 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-05 12:02:37 +0000
commit651a82f26b6143af49ecf3e54671159fe15efe99 (patch)
treedd1cb827a3ccd8b9224648830a760703e43dc1f0 /meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch
parentb040f4fbc2de43572ec70c1d38076267bb17f076 (diff)
downloadpoky-651a82f26b6143af49ecf3e54671159fe15efe99.tar.gz
sysprof: convert to meson build
Drop autotools-specific patches. Rename polkit packageconfig option to sysprofd as 'polkit' does not at all match what is happening. Remove --enable-compiler-warnings, as the equivalent in meson could not be found. (From OE-Core rev: 2c2684c8338bf4bb9f08951a3fdd0ee194a88db4) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch')
-rw-r--r--meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch b/meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch
deleted file mode 100644
index 158d9975f2..0000000000
--- a/meta/recipes-kernel/sysprof/files/0001-configure-Add-option-to-enable-disable-polkit.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1From 2b4005d72d3393933a7914be102ea65505c536cc Mon Sep 17 00:00:00 2001
2From: "Maxin B. John" <maxin.john@intel.com>
3Date: Thu, 21 Jul 2016 11:53:31 +0300
4Subject: [PATCH] configure: Add option to enable/disable polkit
5
6Changes the configure behaviour from autodetecting the polkit by default
7to having an option to disable it explicitly
8
9Upstream-Status: Pending
10
11Signed-off-by: Maxin B. John <maxin.john@intel.com>
12---
13 configure.ac | 8 ++++++++
14 1 file changed, 8 insertions(+)
15
16diff --git a/configure.ac b/configure.ac
17index 2246d5a..3d3fe0f 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -104,10 +104,18 @@ PKG_CHECK_MODULES(GTK,
21 [gtk+-3.0 >= gtk_required_version],
22 [have_gtk=yes],
23 [have_gtk=no])
24+AC_ARG_ENABLE([polkit],
25+ AS_HELP_STRING([--disable-polkit], [Do not use Polkit]),
26+ [enable_polkit="$enableval"], [enable_polkit="yes"])
27+
28+AS_IF([test "x$enable_polkit" = "xyes"], [
29 PKG_CHECK_MODULES(POLKIT,
30 [polkit-gobject-1],
31 [have_polkit=yes],
32 [have_polkit=no])
33+ ])
34+AM_CONDITIONAL([HAVE_POLKIT], [test "x$enable_polkit" = "xyes"])
35+
36 PKG_CHECK_MODULES(SYSTEMD,
37 [libsystemd >= systemd_required_version],
38 [have_systemd=yes],
39--
402.4.0
41