mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b040f4fbc2
commit
651a82f26b
@@ -1,42 +0,0 @@
|
||||
From 27df521c68e7c8b5b050dab15f40aa15fd03623a Mon Sep 17 00:00:00 2001
|
||||
From: Jussi Kukkonen <jussi.kukkonen@intel.com>
|
||||
Date: Wed, 4 May 2016 14:58:24 +0300
|
||||
Subject: [PATCH] Avoid building docs
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
|
||||
---
|
||||
Makefile.am | 2 +-
|
||||
m4/yelp.m4 | 6 ------
|
||||
2 files changed, 1 insertion(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index b919a3f..3a3851d 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -1,4 +1,4 @@
|
||||
-SUBDIRS = daemon data help lib po src tools tests
|
||||
+SUBDIRS = daemon data lib po src tools tests
|
||||
|
||||
EXTRA_DIST = AUTHORS tap-test COPYING.gpl-2
|
||||
|
||||
diff --git a/m4/yelp.m4 b/m4/yelp.m4
|
||||
index 5db847f..1b6ede4 100644
|
||||
--- a/m4/yelp.m4
|
||||
+++ b/m4/yelp.m4
|
||||
@@ -27,12 +27,6 @@ AC_ARG_WITH([help-dir],
|
||||
HELP_DIR="$with_help_dir"
|
||||
AC_SUBST(HELP_DIR)
|
||||
|
||||
-AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
|
||||
-AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
|
||||
-if test x"$ITSTOOL" = x; then
|
||||
- AC_MSG_ERROR([itstool not found])
|
||||
-fi
|
||||
-
|
||||
AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
|
||||
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
|
||||
if test x"$XMLLINT" = x; then
|
||||
--
|
||||
2.1.4
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
From 765d578145e31ddc9495adfab8037ade33c6a9cc Mon Sep 17 00:00:00 2001
|
||||
From: Jussi Kukkonen <jussi.kukkonen@intel.com>
|
||||
Date: Wed, 4 May 2016 10:59:36 +0300
|
||||
Subject: [PATCH] Disable check for polkit for UI
|
||||
|
||||
The check is not technically required: sysprof just needs
|
||||
to be able to access system perf counters at runtime.
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
|
||||
---
|
||||
configure.ac | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 8559597..ecf93ad 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -131,8 +131,8 @@ AS_IF([test "$enable_gtk" = auto],[
|
||||
AS_IF([test "$have_gtk" = "yes" && test "$have_polkit" = "yes"],[enable_gtk=yes],[enable_gtk=no])
|
||||
])
|
||||
AS_IF([test "$enable_gtk" = "yes"],[
|
||||
- AS_IF([test "$have_gtk" = "yes" && test "$have_polkit" = "yes"],[],[
|
||||
- AC_MSG_ERROR([--enable-gtk requires gtk+-3.0 >= gtk_required_version and polkit-gobject-1])
|
||||
+ AS_IF([test "$have_gtk" = "yes"],[],[
|
||||
+ AC_MSG_ERROR([--enable-gtk requires gtk+-3.0 >= gtk_required_version])
|
||||
])
|
||||
])
|
||||
AM_CONDITIONAL(ENABLE_GTK, test "$enable_gtk" = "yes")
|
||||
--
|
||||
2.8.1
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From c2495a4c042e6a675da69bab20cc3669391e8e2a Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Wed, 23 Aug 2017 18:38:26 +0300
|
||||
Subject: [PATCH 1/2] Do not build anything in help/ as it requires itstool.
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
meson.build | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 4ac3934..8c4369a 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -116,7 +116,6 @@ subdir('tools')
|
||||
subdir('tests')
|
||||
|
||||
subdir('data')
|
||||
-subdir('help')
|
||||
subdir('po')
|
||||
|
||||
meson.add_install_script('build-aux/meson_post_install.sh')
|
||||
--
|
||||
2.14.1
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
From 2b4005d72d3393933a7914be102ea65505c536cc Mon Sep 17 00:00:00 2001
|
||||
From: "Maxin B. John" <maxin.john@intel.com>
|
||||
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 <maxin.john@intel.com>
|
||||
---
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user