From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WiQy9-0005US-1J for ptxdist@pengutronix.de; Thu, 08 May 2014 18:14:49 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1WiQyD-0005rH-JX for ptxdist@pengutronix.de; Thu, 08 May 2014 18:14:53 +0200 Date: Thu, 8 May 2014 18:14:53 +0200 From: Michael Olbrich Message-ID: <20140508161453.GA24276@pengutronix.de> References: <1399543549-30881-1-git-send-email-jbe@pengutronix.de> <1399543549-30881-2-git-send-email-jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1399543549-30881-2-git-send-email-jbe@pengutronix.de> Subject: Re: [ptxdist] [PATCH 1/2] Polkit: upgrade package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Thu, May 08, 2014 at 12:05:48PM +0200, Juergen Borleis wrote: > It is a small upgrade, because since revision 0.106 this package depends on > mozjs and mozjs's buildsystem is a horror to cross compile. :-/ > > This small upgrade is required to add support for uPower. > > Signed-off-by: Juergen Borleis > --- > rules/polkit.in | 6 +++--- > rules/polkit.make | 27 ++++++++++++++++++++------- > 2 files changed, 23 insertions(+), 10 deletions(-) > > diff --git a/rules/polkit.in b/rules/polkit.in > index d28de7c..ef3278a 100644 > --- a/rules/polkit.in > +++ b/rules/polkit.in > @@ -4,11 +4,11 @@ config POLKIT > tristate > prompt "policykit-1" > select LIBC_CRYPT > - select HOST_INTLTOOL > - select HOST_GTK_DOC > + select SYSTEMD I'd like to keep systemd optional unless there is a good reason do make it mandatory. > select GLIB > select DBUS_GLIB > - select EGGDBUS > + select LIBC_PTHREAD > + select EXPAT > help > PolicyKit offers an infrastructure for security policies for > dbus applications. > diff --git a/rules/polkit.make b/rules/polkit.make > index b702a1b..cd3ad11 100644 > --- a/rules/polkit.make > +++ b/rules/polkit.make > @@ -1,6 +1,7 @@ > # -*-makefile-*- > # > # Copyright (C) 2010 by Michael Olbrich > +# Copyright (C) 2014 by Juergen Borleis > # > # See CREDITS for details about who has contributed to this project. > # > @@ -16,11 +17,11 @@ PACKAGES-$(PTXCONF_POLKIT) += polkit > # > # Paths and names > # > -POLKIT_VERSION := 0.96 > -POLKIT_MD5 := e0a06da501b04ed3bab986a9df5b5aa2 > +POLKIT_VERSION := 0.105 > +POLKIT_MD5 := 9c29e1b6c214f0bd6f1d4ee303dfaed9 > POLKIT := polkit-$(POLKIT_VERSION) > POLKIT_SUFFIX := tar.gz > -POLKIT_URL := http://hal.freedesktop.org/releases/$(POLKIT).$(POLKIT_SUFFIX) > +POLKIT_URL := http://www.freedesktop.org/software/polkit/releases/$(POLKIT).$(POLKIT_SUFFIX) > POLKIT_SOURCE := $(SRCDIR)/$(POLKIT).$(POLKIT_SUFFIX) > POLKIT_DIR := $(BUILDDIR)/$(POLKIT) > > @@ -34,13 +35,16 @@ POLKIT_DIR := $(BUILDDIR)/$(POLKIT) > POLKIT_AUTOCONF := \ > $(CROSS_AUTOCONF_USR) \ > --enable-shared \ > - --enable-static \ > + --disable-static \ > + $(GLOBAL_LARGE_FILE_OPTION) \ > --disable-ansi \ > --disable-verbose-mode \ > --disable-man-pages \ > --disable-gtk-doc \ > - --disable-examples \ > + --enable-systemd=yes \ > --disable-introspection \ > + --disable-examples \ > + --disable-nls \ > --with-gnu-ld \ > --with-authfw=shadow \ > --with-os-type=ptxdist > @@ -63,8 +67,15 @@ $(STATEDIR)/polkit.targetinstall: > /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf) > @$(call install_copy, polkit, 0, 0, 0644, -, \ > /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service) > + @$(call install_link, polkit, \ > + ../system-services/org.freedesktop.PolicyKit1.service, \ > + /usr/share/dbus-1/services/org.freedesktop.PolicyKit1.service) > > # config > + @$(call install_copy, polkit, 0, 0, 0700, /etc/polkit-1/localauthority) > + @$(call install_copy, polkit, 0, 0, 0700, /var/lib/polkit-1) > + @$(call install_copy, polkit, 0, 0, 0700, /var/lib/polkit-1/localauthority) > + > @$(call install_copy, polkit, 0, 0, 0644, -, \ > /etc/polkit-1/localauthority.conf.d/50-localauthority.conf) > @$(call install_copy, polkit, 0, 0, 0644, -, \ > @@ -72,6 +83,10 @@ $(STATEDIR)/polkit.targetinstall: > @$(call install_copy, polkit, 0, 0, 0644, -, \ > /usr/share/polkit-1/actions/org.freedesktop.policykit.policy) > > +# systemd > + @$(call install_alternative, polkit, 0, 0, 644, \ > + /lib/systemd/system/dbus-org.freedesktop.PolicyKit1.service) This file is missing. Michael > + > # libs > @$(call install_lib, polkit, 0, 0, 0644, libpolkit-agent-1) > @$(call install_lib, polkit, 0, 0, 0644, libpolkit-backend-1) > @@ -79,8 +94,6 @@ $(STATEDIR)/polkit.targetinstall: > > @$(call install_copy, polkit, 0, 0, 0644, -, \ > /usr/lib/polkit-1/extensions/libnullbackend.so) > - @$(call install_copy, polkit, 0, 0, 0644, -, \ > - /usr/lib/polkit-1/extensions/libpkexec-action-lookup.so) > > # binaries > @$(call install_copy, polkit, 0, 0, 0755, -, /usr/bin/pkaction) > -- > 2.0.0.rc0 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de