Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] Update policykit, lock distros to older versions
@ 2011-03-02 22:00 Tom Rini
  2011-03-02 22:00 ` [PATCH 1/3] kaeilos-2009-preferred-versions.inc: Lock policykit Tom Rini
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tom Rini @ 2011-03-02 22:00 UTC (permalink / raw)
  To: openembedded-devel

Hey all,

policykit before 0.97 doesn't really support building without
pam support (which is why the DEPENDS isn't conditional).  This first
locks kaeilos and angstrom-2008 to 0.96 (as 0.98 of policykit requires
glib-2 2.25.12 or newer) and then introduces 0.100 as the new default
and keys auth based on the pam features.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/3] kaeilos-2009-preferred-versions.inc: Lock policykit
  2011-03-02 22:00 [PATCH 0/3] Update policykit, lock distros to older versions Tom Rini
@ 2011-03-02 22:00 ` Tom Rini
  2011-03-04 11:10   ` Marco Cavallini
  2011-03-02 22:00 ` [PATCH 2/3] angstrom-2008-preferred-versions.inc: " Tom Rini
  2011-03-02 22:00 ` [PATCH 3/3] policykit / policykit-gnome: Add 0.100 Tom Rini
  2 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2011-03-02 22:00 UTC (permalink / raw)
  To: openembedded-devel

glib-2.0 is locked to a version that will not work with policykit
newer than 0.97.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
---
 .../include/kaeilos-2009-preferred-versions.inc    |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/conf/distro/include/kaeilos-2009-preferred-versions.inc b/conf/distro/include/kaeilos-2009-preferred-versions.inc
index 0125724..e1656cf 100644
--- a/conf/distro/include/kaeilos-2009-preferred-versions.inc
+++ b/conf/distro/include/kaeilos-2009-preferred-versions.inc
@@ -52,6 +52,8 @@ PREFERRED_VERSION_pango-native     = "1.24.4"
 #PREFERRED_VERSION_pixman	= "0.13.2"
 PREFERRED_VERSION_pkgconfig	= "0.23"
 PREFERRED_VERSION_pkgconfig-native = "0.23"
+PREFERRED_VERSION_policykit     = "0.96"
+PREFERRED_VERSION_policykit-gnome = "0.96"
 PREFERRED_VERSION_pulseaudio 	= "0.9.15"
 PREFERRED_VERSION_python-pycairo = "1.8.0"
 
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] angstrom-2008-preferred-versions.inc: Lock policykit
  2011-03-02 22:00 [PATCH 0/3] Update policykit, lock distros to older versions Tom Rini
  2011-03-02 22:00 ` [PATCH 1/3] kaeilos-2009-preferred-versions.inc: Lock policykit Tom Rini
@ 2011-03-02 22:00 ` Tom Rini
  2011-03-02 22:23   ` Koen Kooi
  2011-03-02 22:00 ` [PATCH 3/3] policykit / policykit-gnome: Add 0.100 Tom Rini
  2 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2011-03-02 22:00 UTC (permalink / raw)
  To: openembedded-devel

glib-2.0 is locked to a version that will not work with policykit
newer than 0.97.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
---
 .../include/angstrom-2008-preferred-versions.inc   |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/conf/distro/include/angstrom-2008-preferred-versions.inc b/conf/distro/include/angstrom-2008-preferred-versions.inc
index feaa2a7..d79f64b 100644
--- a/conf/distro/include/angstrom-2008-preferred-versions.inc
+++ b/conf/distro/include/angstrom-2008-preferred-versions.inc
@@ -46,6 +46,8 @@ PREFERRED_VERSION_pango-native     = "1.24.4"
 #PREFERRED_VERSION_pixman	= "0.13.2"
 PREFERRED_VERSION_pkgconfig	= "0.23"
 PREFERRED_VERSION_pkgconfig-native = "0.23"
+PREFERRED_VERSION_policykit     = "0.96"
+PREFERRED_VERSION_policykit-gnome = "0.96"
 PREFERRED_VERSION_pulseaudio 	= "0.9.15"
 PREFERRED_VERSION_python-pycairo = "1.8.0"
 PREFERRED_VERSION_qt4-tools-native = "${ANGSTROM_QT_VERSION}"
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] policykit / policykit-gnome: Add 0.100
  2011-03-02 22:00 [PATCH 0/3] Update policykit, lock distros to older versions Tom Rini
  2011-03-02 22:00 ` [PATCH 1/3] kaeilos-2009-preferred-versions.inc: Lock policykit Tom Rini
  2011-03-02 22:00 ` [PATCH 2/3] angstrom-2008-preferred-versions.inc: " Tom Rini
@ 2011-03-02 22:00 ` Tom Rini
  2 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2011-03-02 22:00 UTC (permalink / raw)
  To: openembedded-devel

This version supports shadow or pam auth so we key that off of the
pam DISTRO_FEATURE.  This version is default now that distros
which wouldn't be able to build this due to dependencies lock down
to 0.96.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
---
 recipes/policykit/policykit-gnome_0.100.bb |   20 +++++++++
 recipes/policykit/policykit_0.100.bb       |   64 ++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+), 0 deletions(-)
 create mode 100644 recipes/policykit/policykit-gnome_0.100.bb
 create mode 100644 recipes/policykit/policykit_0.100.bb

diff --git a/recipes/policykit/policykit-gnome_0.100.bb b/recipes/policykit/policykit-gnome_0.100.bb
new file mode 100644
index 0000000..dfbb10c
--- /dev/null
+++ b/recipes/policykit/policykit-gnome_0.100.bb
@@ -0,0 +1,20 @@
+HOMEPAGE = "http://www.packagekit.org/"
+DEPENDS = "policykit libgnome"
+PR = "r0"
+
+inherit autotools pkgconfig gnome
+
+SRC_URI = "http://hal.freedesktop.org/releases/polkit-gnome-${PV}.tar.bz2"
+SRC_URI[md5sum] = "0554fe631e923ed560d65b60661cbbe1"
+SRC_URI[sha256sum] = "d52bbcf6cdb7b0be499e6b220653dccaf0fed860806bdfd8112ef1fd1c26653d"
+
+EXTRA_OECONF = " --disable-man-pages \
+                 --disable-examples \
+                 --disable-gtk-doc \
+"
+
+S = "${WORKDIR}/polkit-gnome-${PV}"
+
+FILES_${PN} += " ${datadir}/dbus-1 \
+                 ${datadir}/PolicyKit \
+               "
diff --git a/recipes/policykit/policykit_0.100.bb b/recipes/policykit/policykit_0.100.bb
new file mode 100644
index 0000000..98cdb9b
--- /dev/null
+++ b/recipes/policykit/policykit_0.100.bb
@@ -0,0 +1,64 @@
+HOMEPAGE = "http://www.packagekit.org/"
+DEPENDS = "expat dbus-glib intltool-native ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
+LICENSE = "LGPLv2+"
+PR = "r0"
+
+SRC_URI = "http://hal.freedesktop.org/releases/polkit-${PV}.tar.gz"
+SRC_URI[md5sum] = "9f957bf046ff5a32b0fa0ffe1e35c09c"
+SRC_URI[sha256sum] = "afe63bec81b7f49e884ea4f2671ec76db121d84d05f36e75cde9b4ca4c828186"
+
+AUTHFW = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', 'shadow', d)}"
+EXTRA_OECONF = "--with-authfw=${AUTHFW} \
+                --with-os-type=${DISTRO} \
+                --disable-man-pages \
+                --disable-gtk-doc \
+                --enable-introspection=no \
+"
+
+S = "${WORKDIR}/polkit-${PV}"
+
+inherit autotools pkgconfig
+
+do_install_append () {
+	install -d ${D}${localstatedir}/run/PolicyKit
+	${@base_contains('DISTRO_FEATURES', 'pam', 'sed -i -e s:system:common:g ${D}${sysconfdir}/pam.d/*', '', d)}
+}
+
+FILES_${PN} += " ${datadir}/dbus-1 \
+                 ${datadir}/PolicyKit ${datadir}/polkit-1\
+                 ${localstatedir}/run/PolicyKit \
+                 ${libdir}/polkit-1/extensions/*.so \
+"
+
+FILES_${PN}-dev += " ${libdir}/polkit-1/extensions/*a"
+
+pkg_postinst_${PN} () {
+    # can't do this offline
+    if [ "x$D" != "x" ]; then
+        exit 1
+    fi
+    grep "^polkituser:" /etc/group > /dev/null || addgroup polkituser
+    grep "^polkituser:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/run/polkit polkituser --ingroup polkituser -g polkituser 
+
+	# Fix owners
+	for i in /etc/polkit-1/localauthority /var/lib/polkit-1 ; do
+		mkdir -p $i
+		chown root $i
+		chmod 700 $i
+	done
+
+	for i in /usr/libexec/polkit-agent-helper-1 /usr/bin/pkexec ; do
+		chown root $i
+		chmod 4755 $i
+	done
+
+	DBUSPID=`pidof dbus-daemon`
+    if [ "x$DBUSPID" != "x" ]; then
+        /etc/init.d/dbus-1 force-reload
+    fi
+}
+
+pkg_postrm_${PN} () {
+    deluser polkituser || true
+    delgroup polkituser || true
+}
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/3] angstrom-2008-preferred-versions.inc: Lock policykit
  2011-03-02 22:00 ` [PATCH 2/3] angstrom-2008-preferred-versions.inc: " Tom Rini
@ 2011-03-02 22:23   ` Koen Kooi
  0 siblings, 0 replies; 6+ messages in thread
From: Koen Kooi @ 2011-03-02 22:23 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02-03-11 23:00, Tom Rini wrote:
> glib-2.0 is locked to a version that will not work with policykit
> newer than 0.97.
> 
> Signed-off-by: Tom Rini <tom_rini@mentor.com>

Acked-by: Koen Kooi <koen@openembedded.org>

But keep the following in mind:
http://lists.linuxtogo.org/pipermail/angstrom-distro-devel/2011-March/004372.html

> ---
>  .../include/angstrom-2008-preferred-versions.inc   |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/conf/distro/include/angstrom-2008-preferred-versions.inc b/conf/distro/include/angstrom-2008-preferred-versions.inc
> index feaa2a7..d79f64b 100644
> --- a/conf/distro/include/angstrom-2008-preferred-versions.inc
> +++ b/conf/distro/include/angstrom-2008-preferred-versions.inc
> @@ -46,6 +46,8 @@ PREFERRED_VERSION_pango-native     = "1.24.4"
>  #PREFERRED_VERSION_pixman	= "0.13.2"
>  PREFERRED_VERSION_pkgconfig	= "0.23"
>  PREFERRED_VERSION_pkgconfig-native = "0.23"
> +PREFERRED_VERSION_policykit     = "0.96"
> +PREFERRED_VERSION_policykit-gnome = "0.96"
>  PREFERRED_VERSION_pulseaudio 	= "0.9.15"
>  PREFERRED_VERSION_python-pycairo = "1.8.0"
>  PREFERRED_VERSION_qt4-tools-native = "${ANGSTROM_QT_VERSION}"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFNbsN0MkyGM64RGpERAhTkAKCB43gqB9SAlei3qLpM/Gowpqa1fwCeLjlA
3g74JEGqz8MFmGoE31munGU=
=XV0P
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/3] kaeilos-2009-preferred-versions.inc: Lock policykit
  2011-03-02 22:00 ` [PATCH 1/3] kaeilos-2009-preferred-versions.inc: Lock policykit Tom Rini
@ 2011-03-04 11:10   ` Marco Cavallini
  0 siblings, 0 replies; 6+ messages in thread
From: Marco Cavallini @ 2011-03-04 11:10 UTC (permalink / raw)
  To: openembedded-devel

Tom Rini ha scritto, Il 02/03/2011 23:00:
> glib-2.0 is locked to a version that will not work with policykit
> newer than 0.97.
> 
> Signed-off-by: Tom Rini <tom_rini@mentor.com>
> ---
>  .../include/kaeilos-2009-preferred-versions.inc    |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/conf/distro/include/kaeilos-2009-preferred-versions.inc b/conf/distro/include/kaeilos-2009-preferred-versions.inc
> index 0125724..e1656cf 100644
> --- a/conf/distro/include/kaeilos-2009-preferred-versions.inc
> +++ b/conf/distro/include/kaeilos-2009-preferred-versions.inc
> @@ -52,6 +52,8 @@ PREFERRED_VERSION_pango-native     = "1.24.4"
>  #PREFERRED_VERSION_pixman	= "0.13.2"
>  PREFERRED_VERSION_pkgconfig	= "0.23"
>  PREFERRED_VERSION_pkgconfig-native = "0.23"
> +PREFERRED_VERSION_policykit     = "0.96"
> +PREFERRED_VERSION_policykit-gnome = "0.96"
>  PREFERRED_VERSION_pulseaudio 	= "0.9.15"
>  PREFERRED_VERSION_python-pycairo = "1.8.0"
>  

Acked-by: Marco Cavallini <m.cavallini@koansoftware.com>


Thank you

Cordiali Saluti / Kindest Regards / mit freundlichen Grüssen
--
Marco Cavallini | KOAN sas | Bergamo - Italia
 embedded and real-time software engineering
   Atmel third party certified consultant
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
      http://www.KoanSoftware.com
        http://www.KaeilOS.com



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-04 11:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 22:00 [PATCH 0/3] Update policykit, lock distros to older versions Tom Rini
2011-03-02 22:00 ` [PATCH 1/3] kaeilos-2009-preferred-versions.inc: Lock policykit Tom Rini
2011-03-04 11:10   ` Marco Cavallini
2011-03-02 22:00 ` [PATCH 2/3] angstrom-2008-preferred-versions.inc: " Tom Rini
2011-03-02 22:23   ` Koen Kooi
2011-03-02 22:00 ` [PATCH 3/3] policykit / policykit-gnome: Add 0.100 Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox