Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xfce4-session xfce4-session: handle a Polkit disab...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5830059412ee
branches:  trunk
changeset: 430756:5830059412ee
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Sun May 03 20:48:57 2020 +0000

description:
xfce4-session: handle a Polkit disabling edge case

Allow Polkit support to be disabled even if Polkit is found in the
build environment (an atypical use case, indeed, but one I just tripped
over).

diffstat:

 x11/xfce4-session/distinfo                |   4 ++--
 x11/xfce4-session/options.mk              |   6 +++++-
 x11/xfce4-session/patches/patch-configure |  20 +++++++++++++++-----
 3 files changed, 22 insertions(+), 8 deletions(-)

diffs (73 lines):

diff -r 4b9edcccd9cf -r 5830059412ee x11/xfce4-session/distinfo
--- a/x11/xfce4-session/distinfo        Sun May 03 20:41:34 2020 +0000
+++ b/x11/xfce4-session/distinfo        Sun May 03 20:48:57 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.30 2020/04/05 22:41:43 gutteridge Exp $
+$NetBSD: distinfo,v 1.31 2020/05/03 20:48:57 gutteridge Exp $
 
 SHA1 (xfce4-session-4.14.2.tar.bz2) = 2af701ae3e7e8990a2b6e58748277913fbe9011d
 RMD160 (xfce4-session-4.14.2.tar.bz2) = 6f687c6f43fc3eadd35aacd35466e6a8e09118d2
@@ -6,7 +6,7 @@
 Size (xfce4-session-4.14.2.tar.bz2) = 841878 bytes
 SHA1 (patch-ac) = acbb27c79b5b6f37ff106c6cbbc87d00ecfe19f5
 SHA1 (patch-config.h.in) = 30e2ae1ea70a99a83f11523e940081b661add69b
-SHA1 (patch-configure) = ef67202879c09f5c02700eac8dd451580c612db6
+SHA1 (patch-configure) = 8f46c9acfaf63930ebd771f173cdd86765b91585
 SHA1 (patch-libxfsm_xfsm-shutdown-common.h) = da51714e0924a0ab28f7da1b161659763dff81d2
 SHA1 (patch-scripts_Makefile.in) = 042c3d9c632a57f9acfc8dab43aa6bca8ec69097
 SHA1 (patch-settings_xfce4-session.xml) = 7e990e73d8dab022f3ebd2d4daa24ebc8dcf95a1
diff -r 4b9edcccd9cf -r 5830059412ee x11/xfce4-session/options.mk
--- a/x11/xfce4-session/options.mk      Sun May 03 20:41:34 2020 +0000
+++ b/x11/xfce4-session/options.mk      Sun May 03 20:48:57 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.3 2018/06/04 10:51:56 youri Exp $
+# $NetBSD: options.mk,v 1.4 2020/05/03 20:48:57 gutteridge Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.xfce4-session
 PKG_SUPPORTED_OPTIONS= polkit
@@ -11,4 +11,8 @@
 .if !empty(PKG_OPTIONS:Mpolkit)
 .include "../../security/mate-polkit/buildlink3.mk"
 PLIST.polkit=  yes
+.else
+# For the edge case when Polkit is installed on the system, but isn't
+# intended to be enabled, we must explicitly disable it.
+CONFIGURE_ARGS+=       --disable-polkit
 .endif
diff -r 4b9edcccd9cf -r 5830059412ee x11/xfce4-session/patches/patch-configure
--- a/x11/xfce4-session/patches/patch-configure Sun May 03 20:41:34 2020 +0000
+++ b/x11/xfce4-session/patches/patch-configure Sun May 03 20:48:57 2020 +0000
@@ -1,10 +1,20 @@
-$NetBSD: patch-configure,v 1.5 2019/08/17 19:26:19 gutteridge Exp $
+$NetBSD: patch-configure,v 1.6 2020/05/03 20:48:57 gutteridge Exp $
 
-Add NetBSD backend detection.
+Add NetBSD backend detection. Allow Polkit to be disabled in the build
+while still being present in the underlying system.
 
---- configure.orig     2019-08-11 20:13:50.000000000 +0000
+--- configure.orig     2020-03-28 23:36:34.000000000 +0000
 +++ configure
-@@ -17802,6 +17802,8 @@ if test x$with_backend = x; then
+@@ -17536,7 +17536,7 @@ $as_echo_n "checking for optional packag
+ $as_echo "disabled" >&6; }
+   fi
+ 
+-   if test x"$POLKIT_FOUND" = x"yes"; then
++if test "${disable_polkit+set}" != set && test x"$POLKIT_FOUND" = x"yes"; then
+   HAVE_POLKIT_TRUE=
+   HAVE_POLKIT_FALSE='#'
+ else
+@@ -17798,6 +17798,8 @@ if test x$with_backend = x; then
      with_backend=freebsd ;; #(
    *-*dragonfly*) :
      with_backend=freebsd ;; #(
@@ -13,7 +23,7 @@
    *-openbsd*) :
      with_backend=openbsd ;; #(
    *) :
-@@ -17831,6 +17833,11 @@ if test x$with_backend = xopenbsd; then
+@@ -17827,6 +17829,11 @@ if test x$with_backend = xopenbsd; then
  $as_echo "#define BACKEND_TYPE_OPENBSD 1" >>confdefs.h
  
  fi



Home | Main Index | Thread Index | Old Index