[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] gnu: Enable polkit for connman
From: |
Mathieu OTHACEHE |
Subject: |
[PATCH] gnu: Enable polkit for connman |
Date: |
Sun, 1 Jan 2017 18:30:02 +0100 |
Connman was compiled without polkit support due to this error message during
configure phase :
pkg-config cannot find polkit.pc
It is a meaningless error produced by the following lines in
connman/configure.ac :
POLKIT_DATADIR="`$PKG_CONFIG --variable=actiondir polkit`"
POLKIT_DATADIR=""
if (test -z "${POLKIT_DATADIR}"); then
POLKIT_DATADIR="${datadir}/polkit-1/actions"
fi
When compiled with --enable-polkit, everything seems to work fine and connman
can be used from an unprivileged account.
---
gnu/packages/connman.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/connman.scm b/gnu/packages/connman.scm
index 6b061db58..ff6e71571 100644
--- a/gnu/packages/connman.scm
+++ b/gnu/packages/connman.scm
@@ -28,6 +28,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages linux)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages polkit)
#:use-module (gnu packages python)
#:use-module (gnu packages readline)
#:use-module (gnu packages samba)
@@ -50,7 +51,7 @@
(arguments
`(#:configure-flags
(list "--enable-nmcompat"
- ;; "--enable-polkit"
+ "--enable-polkit"
"--enable-openconnect"
"--enable-openvpn"
"--enable-vpnc"
@@ -71,7 +72,7 @@
("glib" ,glib)
("gnutls" ,gnutls)
("iptables" ,iptables)
- ;; ("polkit" ,polkit) ; pkg-config cannot find polkit.pc
+ ("polkit" ,polkit)
("readline" ,readline)
;; These inputs are needed for connman to include the interface to
;; these technologies so IF they are installed they can be used.
--
2.11.0
- [PATCH] gnu: Enable polkit for connman,
Mathieu OTHACEHE <=