blob: a7fc4d597363e61654c66f8b47c0b7a0e61d16f7 [file] [log] [blame]
Andrew Geisslere231d582020-05-05 08:53:09 -05001From 79fd11f1d8e4827ae8aee03420a5c92038fe4ef5 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Wed, 26 Feb 2020 20:25:06 +0100
4Subject: [PATCH] Install polkit action unconditionally - executable pkexec is
5 not in our sysroot
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Upstream-Status: Inappropriate [OE-specific]
11
12Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com>
13---
14 configure.ac | 17 +----------------
15 1 file changed, 1 insertion(+), 16 deletions(-)
16
17diff --git a/configure.ac b/configure.ac
18index 43503ac..b339ee5 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -24,22 +24,7 @@ dnl======================
22 dnl Find graphical privilege escalation program
23 dnl======================
24 dnl Check for pkexec >= 0.102 for it's ability to run X11 apps.
25-AM_CONDITIONAL([INSTALL_POLKIT_ACTIONS], false)
26-PKEXEC_REQUIRED_VERSION='0.102'
27-AC_MSG_CHECKING([for pkexec >= $PKEXEC_REQUIRED_VERSION])
28-PKEXEC_REQUIRED_INT=`echo "$PKEXEC_REQUIRED_VERSION" | $AWK -F. '{print $1 * 10000 + $2}'`
29-PKEXEC_VERSION_OUTPUT=`pkexec --version 2> /dev/null` ||
30- AC_MSG_RESULT([not found])
31-if test "x$PKEXEC_VERSION_OUTPUT" != 'x'; then
32- PKEXEC_FOUND_VERSION=`echo "$PKEXEC_VERSION_OUTPUT" | head -1 | cut -d' ' -f3`
33- PKEXEC_FOUND_INT=`echo "$PKEXEC_FOUND_VERSION" | $AWK -F. '{print $1 * 10000 + $2}'`
34- AC_MSG_RESULT([$PKEXEC_FOUND_VERSION found])
35- if test "$PKEXEC_FOUND_INT" -ge "$PKEXEC_REQUIRED_INT"; then
36- GKSUPROG='pkexec --disable-internal-agent'
37- AC_SUBST([GKSUPROG])
38- AM_CONDITIONAL([INSTALL_POLKIT_ACTIONS], true)
39- fi
40-fi
41+AM_CONDITIONAL([INSTALL_POLKIT_ACTIONS], true)
42
43 dnl Check for alternative graphical privilege escalation programs.
44 if test "x$GKSUPROG" = 'x'; then
45--
462.21.0
47