Skip to contentSkip to conversation

updates and fixes

PATCH New Andreas Müller 1 participant 21 messages Jun 19, 2013

lore
Share & tools
lore
#0 lore raw

cover updates and fixes

V1->V2:
* polkit/networkmanager+datetime(new) rule into own recipe [13-15]: This is more flexible so distro/image can decide to use it or not
* [12+19+20]: new

The following changes since commit f7fc06cc5143b66b47c83965e0e430809c17ab57:

nostromo: make SRC_URI work for multilib builds. (2013-06-18 23:40:06 +0100)

are available in the git repository at:
git://gitorious.org/schnitzeltony-oe-meta/meta-openembedded.git updates-and-fixes2

Andreas Müller (20):
midori: update to 0.5.2
tumbler: add curl to dependencies to make build deterministic
tumbler: update to 0.1.29
poppler: update to 0.22.4
xfce4-xkb-plugin: update to 0.7.0 tarball
atkmm: add glibmm to DEPENDS
p11-kit: initial add 0.19.1
gcr: initial add 3.8.2
mozjs: initial add 17.0.0
polkit: update to 0.111
networkmanager: rework dependencies/configure-option and use PACKAGECONFIG
networkmanager: replace absolute paths
polkit-group-rule.inc: add a common template for polkit-rules/user-groups
polkit-group-rule-network: initial add
polkit-group-rule-datetime: initial add
lxdm: remove consolekit dependencies in systemd environment and fix build
xfce4-power-manager: rework polkit/consolekit selection and implement polkit/systemd shutdown
xarchiver: update to 0.5.3 for various bugfixes
xfwm4: don't turn into unusablity after setting system time backwards
xfce4-genmon-plugin: Allow timer period to be set at 250ms resolution

 .../midori/{midori_0.5.0.bb => midori_0.5.2.bb}    |    4 +-
 meta-gnome/recipes-gnome/gcr/gcr_3.8.2.bb          |   20 +
 .../networkmanager/networkmanager_0.9.8.0.bb       |   20 +-
 ...-not-include-RequiredDefines.h-for-depend.patch |   35 +
 meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb     |   35 +
 .../files/50-org.freedesktop.NetworkManager.rules  |    8 +
 .../files/50-org.freedesktop.timedate1.rules       |    8 +
 ...ession-Set-error-if-we-cannot-find-a-sess.patch |   70 --
 ...ession-Actually-return-TRUE-if-a-session-.patch |   46 --
 .../polkit-0.104/obsolete_automake_macros.patch    |   23 -
 .../polkit/polkit-group-rule-datetime.bb           |   14 +
 .../polkit/polkit-group-rule-network.bb            |   14 +
 .../recipes-extended/polkit/polkit-group-rule.inc  |    9 +
 .../{polkit-0.104 => polkit}/polkit-1_pam.patch    |    0
 .../polkit/{polkit_0.104.bb => polkit_0.111.bb}    |   51 +-
 meta-oe/recipes-gnome/atk/atkmm_2.22.7.bb          |    2 +-
 ...heck-only-for-ck-connector-in-case-consol.patch |   48 ++
 meta-oe/recipes-graphics/lxdm/lxdm_git.bb          |    6 +-
 meta-oe/recipes-support/p11-kit/p11-kit_0.19.1.bb  |   18 +
 ...sh.cc-add-cast-to-fix-build-for-enable-fi.patch |   42 --
 .../{poppler_0.22.3.bb => poppler_0.22.4.bb}       |    7 +-
 .../{xarchiver_0.5.2.bb => xarchiver_git.bb}       |   16 +-
 ...-period-to-be-set-at-250ms-resolution.-Pa.patch |   36 +
 .../genmon/xfce4-genmon-plugin_3.4.0.bb            |    2 +
 ...xkb-plugin_git.bb => xfce4-xkb-plugin_0.7.0.bb} |   13 +-
 .../{tumbler_0.1.27.bb => tumbler_0.1.29.bb}       |    6 +-
 ...shutdown-reboot-functionality-for-systemd.patch |  677 ++++++++++++++++++++
 .../xfce4-power-manager_1.2.0.bb                   |    9 +-
 ...-display-events-when-time-is-set-backward.patch |   33 +
 meta-xfce/recipes-xfce/xfwm4/xfwm4_4.10.1.bb       |    1 +
 30 files changed, 1038 insertions(+), 235 deletions(-)
 rename meta-gnome/recipes-connectivity/midori/{midori_0.5.0.bb => midori_0.5.2.bb} (89%)
 create mode 100644 meta-gnome/recipes-gnome/gcr/gcr_3.8.2.bb
 create mode 100644 meta-oe/recipes-extended/mozjs/mozjs/0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch
 create mode 100644 meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
 create mode 100644 meta-oe/recipes-extended/polkit/files/50-org.freedesktop.NetworkManager.rules
 create mode 100644 meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules
 delete mode 100644 meta-oe/recipes-extended/polkit/polkit-0.104/0001-PolkitUnixSession-Set-error-if-we-cannot-find-a-sess.patch
 delete mode 100644 meta-oe/recipes-extended/polkit/polkit-0.104/0002-PolkitUnixSession-Actually-return-TRUE-if-a-session-.patch
 delete mode 100644 meta-oe/recipes-extended/polkit/polkit-0.104/obsolete_automake_macros.patch
 create mode 100644 meta-oe/recipes-extended/polkit/polkit-group-rule-datetime.bb
 create mode 100644 meta-oe/recipes-extended/polkit/polkit-group-rule-network.bb
 create mode 100644 meta-oe/recipes-extended/polkit/polkit-group-rule.inc
 rename meta-oe/recipes-extended/polkit/{polkit-0.104 => polkit}/polkit-1_pam.patch (100%)
 rename meta-oe/recipes-extended/polkit/{polkit_0.104.bb => polkit_0.111.bb} (50%)
 create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0002-configure-check-only-for-ck-connector-in-case-consol.patch
 create mode 100644 meta-oe/recipes-support/p11-kit/p11-kit_0.19.1.bb
 delete mode 100644 meta-oe/recipes-support/poppler/poppler/0001-splash-Splash.cc-add-cast-to-fix-build-for-enable-fi.patch
 rename meta-oe/recipes-support/poppler/{poppler_0.22.3.bb => poppler_0.22.4.bb} (80%)
 rename meta-xfce/recipes-apps/xarchiver/{xarchiver_0.5.2.bb => xarchiver_git.bb} (60%)
 create mode 100644 meta-xfce/recipes-panel-plugins/genmon/files/0001-Allow-timer-period-to-be-set-at-250ms-resolution.-Pa.patch
 rename meta-xfce/recipes-panel-plugins/xkb/{xfce4-xkb-plugin_git.bb => xfce4-xkb-plugin_0.7.0.bb} (63%)
 rename meta-xfce/recipes-xfce/tumbler/{tumbler_0.1.27.bb => tumbler_0.1.29.bb} (84%)
 create mode 100644 meta-xfce/recipes-xfce/xfce4-power-manager/files/0001-Add-shutdown-reboot-functionality-for-systemd.patch
 create mode 100644 meta-xfce/recipes-xfce/xfwm4/files/0001-don-t-block-display-events-when-time-is-set-backward.patch
Signature · 1 line
1.7.4.4
#1 lore raw

PATCH 1/20 midori: update to 0.5.2

---
 .../midori/{midori_0.5.0.bb => midori_0.5.2.bb}    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
 rename meta-gnome/recipes-connectivity/midori/{midori_0.5.0.bb => midori_0.5.2.bb} (89%)
meta-gnome/recipes-connectivity/midori/midori_0.5.2.bb renamed from meta-gnome/recipes-connectivity/midori/midori_0.5.0.bb +2 -2
similarity index 89%
rename from meta-gnome/recipes-connectivity/midori/midori_0.5.0.bb
rename to meta-gnome/recipes-connectivity/midori/midori_0.5.2.bb
index f046375..f4f6221 100644
@@ -6,8 +6,8 @@ DEPENDS = "webkit-gtk libsoup-2.4 openssl python-native python-docutils-native l
 
 SRC_URI = "http://archive.xfce.org/src/apps/midori/0.5/midori-${PV}.tar.bz2;name=midori \
 "
-SRC_URI[midori.md5sum] = "ad11685633e23f8173e2cd947d945cce"
-SRC_URI[midori.sha256sum] = "d280c19bb135f2b644a67d9f34d1ec1c148ceb14b5de11ce6c23f64c15be5df0"
+SRC_URI[midori.md5sum] = "e2c1e0b617397ec9f9eef4fdb47b3565"
+SRC_URI[midori.sha256sum] = "a9c5cb4606e8e4967a2b980caa9ada25623c50d927a302b6bf73eeac5815c97c"
 
 inherit gtk-icon-cache pkgconfig vala pythonnative
 
Signature · 1 line
1.7.4.4
#2 lore raw

PATCH 2/20 tumbler: add curl to dependencies to make build deterministic

In reply to Andreas Müller
---
 meta-xfce/recipes-xfce/tumbler/tumbler_0.1.27.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta-xfce/recipes-xfce/tumbler/tumbler_0.1.27.bb +1 -1
index 93a95d5..402762c 100644
@@ -2,7 +2,7 @@ DESCRIPTION="Thumbnail service implementing the thumbnail management D-Bus speci
 SECTION = "x11/libs"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-DEPENDS = "dbus-glib freetype gdk-pixbuf poppler"
+DEPENDS = "dbus-glib freetype gdk-pixbuf poppler curl"
 
 inherit xfce
 
Signature · 1 line
1.7.4.4
#3 lore raw

PATCH 3/20 tumbler: update to 0.1.29

In reply to Andreas Müller
---
 .../{tumbler_0.1.27.bb => tumbler_0.1.29.bb}       |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
 rename meta-xfce/recipes-xfce/tumbler/{tumbler_0.1.27.bb => tumbler_0.1.29.bb} (89%)
meta-xfce/recipes-xfce/tumbler/tumbler_0.1.29.bb renamed from meta-xfce/recipes-xfce/tumbler/tumbler_0.1.27.bb +2 -2
similarity index 89%
rename from meta-xfce/recipes-xfce/tumbler/tumbler_0.1.27.bb
rename to meta-xfce/recipes-xfce/tumbler/tumbler_0.1.29.bb
index 402762c..fd28e84 100644
@@ -6,8 +6,8 @@ DEPENDS = "dbus-glib freetype gdk-pixbuf poppler curl"
 
 inherit xfce
 
-SRC_URI[md5sum] = "3fa90528c3e7e77d8ace4bffcf0a2748"
-SRC_URI[sha256sum] = "4c60b3b92877257fcc54d18acbbe4ad73c84a7ff7608a430ad5a05b452923869"
+SRC_URI[md5sum] = "f844215c5e3918eae58abdd85f146780"
+SRC_URI[sha256sum] = "c3bac4ee609e22be6c7f01a4fdf6086bc6b57940d82f99570a2d9d547a32fc93"
 
 INSANE_SKIP_${PN} = "dev-so"
 
Signature · 1 line
1.7.4.4
#4 lore raw

PATCH 4/20 poppler: update to 0.22.4

In reply to Andreas Müller
---
 ...sh.cc-add-cast-to-fix-build-for-enable-fi.patch |   42 --------------------
 .../{poppler_0.22.3.bb => poppler_0.22.4.bb}       |    7 +--
 2 files changed, 2 insertions(+), 47 deletions(-)
 delete mode 100644 meta-oe/recipes-support/poppler/poppler/0001-splash-Splash.cc-add-cast-to-fix-build-for-enable-fi.patch
 rename meta-oe/recipes-support/poppler/{poppler_0.22.3.bb => poppler_0.22.4.bb} (80%)
meta-oe/recipes-support/poppler/poppler/0001-splash-Splash.cc-add-cast-to-fix-build-for-enable-fi.patch deleted +0 -42
deleted file mode 100644
index 291c7ee..0000000
@@ -1,42 +0,0 @@
-From 8bd7428c28750f682fe3cc1a35291e5696c17638 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
-Date: Sun, 12 May 2013 18:00:06 +0200
-Subject: [PATCH] splash/Splash.cc: add cast to fix build for
- --enable-fixedpoint
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-| Splash.cc:1497:30: error: conversion from 'SplashCoord {aka FixedPoint}' to 'Guchar {aka unsigned char}' is ambiguous
-| Splash.cc:1497:30: note: candidates are:
-| In file included from SplashMath.h:27:0,
-|                  from Splash.cc:44:
-| ../goo/FixedPoint.h:45:3: note: FixedPoint::operator int()
-| ../goo/FixedPoint.h:43:3: note: FixedPoint::operator double()
-| ../goo/FixedPoint.h:41:3: note: FixedPoint::operator float()
-
-Upstream-Status: Submitted [1]
-
-[1] http://lists.freedesktop.org/archives/poppler/2013-May/010247.html
-
-Signed-off-by: Andreas Müller <[email protected]>
----
- splash/Splash.cc |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/splash/Splash.cc b/splash/Splash.cc
-index cd0ec72..6630370 100644
---- a/splash/Splash.cc
-+++ b/splash/Splash.cc
-@@ -1494,7 +1494,7 @@ inline void Splash::drawAALine(SplashPipe *pipe, int x0, int x1, int y) {
- #endif
- 
-     if (t != 0) {
--      pipe->shape = aaGamma[t];
-+      pipe->shape = (int)aaGamma[t];
-       (this->*pipe->run)(pipe);
-       updateModX(x);
-       updateModY(y);
--- 
-1.7.4.4
-
meta-oe/recipes-support/poppler/poppler_0.22.4.bb renamed from meta-oe/recipes-support/poppler/poppler_0.22.3.bb +2 -5
similarity index 80%
rename from meta-oe/recipes-support/poppler/poppler_0.22.3.bb
rename to meta-oe/recipes-support/poppler/poppler_0.22.4.bb
index c8ff8a4..f1f4561 100644
@@ -2,14 +2,11 @@ DESCRIPTION = "Poppler is a PDF rendering library based on the xpdf-3.0 code bas
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
-PR = "r2"
-
 SRC_URI = " \
     http://poppler.freedesktop.org/${PN}-${PV}.tar.gz \
-    file://0001-splash-Splash.cc-add-cast-to-fix-build-for-enable-fi.patch \
 "
-SRC_URI[md5sum] = "be915388eaad6865cee5a156c8119ec1"
-SRC_URI[sha256sum] = "916a931cbef951366014f13d5f4a574657ccc064ac41051df96dd58e22934431"
+SRC_URI[md5sum] = "49d55921ce795778c7231fe9f2fe923b"
+SRC_URI[sha256sum] = "4f438f34e63265e2da8427f3423f940ff41c26088922a9f5d976f795c1dce13b"
 
 DEPENDS = "fontconfig jpeg zlib gtk+ cairo tiff lcms"
 
Signature · 1 line
1.7.4.4
#5 lore raw

PATCH 5/20 xfce4-xkb-plugin: update to 0.7.0 tarball

In reply to Andreas Müller
---
 ...xkb-plugin_git.bb => xfce4-xkb-plugin_0.7.0.bb} |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)
 rename meta-xfce/recipes-panel-plugins/xkb/{xfce4-xkb-plugin_git.bb => xfce4-xkb-plugin_0.7.0.bb} (63%)
meta-xfce/recipes-panel-plugins/xkb/xfce4-xkb-plugin_0.7.0.bb renamed from meta-xfce/recipes-panel-plugins/xkb/xfce4-xkb-plugin_git.bb +3 -10
similarity index 63%
rename from meta-xfce/recipes-panel-plugins/xkb/xfce4-xkb-plugin_git.bb
rename to meta-xfce/recipes-panel-plugins/xkb/xfce4-xkb-plugin_0.7.0.bb
index a1f1a2f..d27e4cd 100644
@@ -6,17 +6,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=496f09f084b0f7e6f02f769a84490c6b"
 
 inherit xfce-panel-plugin
 
-DEPENDS += "libxklavier libwnck librsvg garcon"
-
-PV = "0.5.4.3+gitr${SRCPV}"
+SRC_URI[md5sum] = "7fbc3d8c84d6662d819dd1803f0fee34"
+SRC_URI[sha256sum] = "28367c309863581ae4de529b35bdedf5a1c918096a9a2e6e771554cba7bf5a6a"
 
-SRC_URI = "git://git.xfce.org/panel-plugins/xfce4-xkb-plugin;protocol=git;branch=master"
-SRCREV = "b98b82d8522842e38a6355f9144f8348a6ab2aeb"
-S = "${WORKDIR}/git"
-
-do_configure_prepend() {
-    NOCONFIGURE=yes ./autogen.sh
-}
+DEPENDS += "libxklavier libwnck librsvg garcon"
 
 FILES_${PN} += "${datadir}/xfce4/xkb"
 
Signature · 1 line
1.7.4.4
#6 lore raw

PATCH 6/20 atkmm: add glibmm to DEPENDS

In reply to Andreas Müller

error was:

| configure:15671: error: Package requirements (atk >= 1.12 glibmm-2.4 >= 2.36) were not met:
|
| No package 'glibmm-2.4' found
---
 meta-oe/recipes-gnome/atk/atkmm_2.22.7.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta-oe/recipes-gnome/atk/atkmm_2.22.7.bb +1 -1
index 35ba589..12522f2 100644
@@ -5,7 +5,7 @@ LICENSE = "LGPLv2.1 & GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1 \
                     file://COPYING.tools;md5=751419260aa954499f7abaabaa882bbe"
 
-DEPENDS = "atk"
+DEPENDS = "atk glibmm"
 
 inherit gnome autotools pkgconfig
 
Signature · 1 line
1.7.4.4
#7 lore raw

PATCH 7/20 p11-kit: initial add 0.19.1

In reply to Andreas Müller
---
 meta-oe/recipes-support/p11-kit/p11-kit_0.19.1.bb |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-support/p11-kit/p11-kit_0.19.1.bb
meta-oe/recipes-support/p11-kit/p11-kit_0.19.1.bb new file +18 -0
new file mode 100644
index 0000000..c5b6129
@@ -0,0 +1,18 @@
+DESCRIPTION = "Provides a way to load and enumerate PKCS#11 modules"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=02933887f609807fbb57aa4237d14a50"
+
+inherit autotools gettext pkgconfig
+
+DEPENDS = "libtasn1 libffi"
+
+SRC_URI = "http://p11-glue.freedesktop.org/releases/${PN}-${PV}.tar.gz"
+SRC_URI[md5sum] = "d96046ab6ac00d005342caf416ed76ab"
+SRC_URI[sha256sum] = "94fbed372c11d0a404762aad966e54eb4f44c1d5b871a1b79a1a3b4cf36ed256"
+
+FILES_${PN}-dev += " \
+    ${libdir}/p11-kit-proxy.so \
+    ${libdir}/pkcs11/p11-kit-trust.so \
+"
+FILES_${PN}-dev += "${libdir}/pkcs11/*.la"
+FILES_${PN}-dbg += "${libdir}/pkcs11/.debug"
Signature · 1 line
1.7.4.4
#8 lore raw

PATCH 8/20 gcr: initial add 3.8.2

In reply to Andreas Müller
---
 meta-gnome/recipes-gnome/gcr/gcr_3.8.2.bb |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 meta-gnome/recipes-gnome/gcr/gcr_3.8.2.bb
meta-gnome/recipes-gnome/gcr/gcr_3.8.2.bb new file +20 -0
new file mode 100644
index 0000000..65309da
@@ -0,0 +1,20 @@
+DESCRIPTION = "A library for bits of crypto UI and parsing etc"
+HOMEPAGE = "http://www.gnome.org/"
+BUGTRACKER = "https://bugzilla.gnome.org/"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
+
+DEPENDS = "gtk+3 p11-kit"
+
+inherit autotools gnome gtk-doc
+
+GNOME_COMPRESS_TYPE="xz"
+
+SRC_URI[archive.md5sum] = "f5e66afcab19897a0de0590735329fb1"
+SRC_URI[archive.sha256sum] = "a1e615ce2cfd375f383bbdd289935a8e3e16901c3c6f032780847055e8bec2c1"
+
+FILES_${PN} += " \
+    ${datadir}/dbus-1 \
+    ${datadir}/gcr-3 \
+"
Signature · 1 line
1.7.4.4
#9 lore raw

PATCH 9/20 mozjs: initial add 17.0.0

In reply to Andreas Müller

later versions of polkit will need it

---
 ...-not-include-RequiredDefines.h-for-depend.patch |   35 ++++++++++++++++++++
 meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb     |   35 ++++++++++++++++++++
 2 files changed, 70 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-extended/mozjs/mozjs/0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch
 create mode 100644 meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
meta-oe/recipes-extended/mozjs/mozjs/0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch new file +35 -0
new file mode 100644
index 0000000..bc141d9
@@ -0,0 +1,35 @@
+From 0a61b0b98c152f10404ccbdeeac583a486638a7a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
+Date: Thu, 6 Jun 2013 18:36:01 +0200
+Subject: [PATCH] js.pc.in: do not include RequiredDefines.h for depending
+ packages
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+in our cross environment the would fail with:
+
+| cc1: fatal error: /usr/include/js-17.0/js/RequiredDefines.h: No such file or directory
+
+and currently it only defines __STDC_LIMIT_MACROS
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Andreas Müller <[email protected]>
+---
+ js.pc.in |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/js.pc.in b/js.pc.in
+index 13d761d..a95a7bd 100644
+--- a/js.pc.in
++++ b/js.pc.in
+@@ -8,4 +8,4 @@ Description: The Mozilla library for JavaScript
+ Version: @MOZILLA_VERSION@
+ Requires.private: @NSPR_PKGCONF_CHECK@
+ Libs: -L${libdir} -l@LIBRARY_NAME@
+-Cflags: -include ${includedir}/@MODULE@/js/RequiredDefines.h -I${includedir}/@MODULE@
++Cflags: -I${includedir}/@MODULE@
+-- 
+1.7.6.5
+
meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb new file +35 -0
new file mode 100644
index 0000000..311372f
@@ -0,0 +1,35 @@
+SUMMARY = "SpiderMonkey is Mozilla's JavaScript engine written in C/C++"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://../../LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
+
+SRC_URI = " \
+    http://ftp.mozilla.org/pub/mozilla.org/js/${PN}${PV}.tar.gz \
+    file://0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch \
+"
+SRC_URI[md5sum] = "20b6f8f1140ef6e47daa3b16965c9202"
+SRC_URI[sha256sum] = "321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba"
+
+S = "${WORKDIR}/${PN}${PV}/js/src"
+
+inherit autotools pkgconfig perlnative
+
+DEPENDS += "nspr"
+
+# nspr's package-config is ignored so set libs manually
+EXTRA_OECONF = " \
+    --target=${TARGET_SYS} \
+    --host=${BUILD_SYS} \
+    --build=${BUILD_SYS} \
+    --prefix=${prefix} \
+    --with-nspr-libs='-lplds4 -lplc4 -lnspr4' \
+    --enable-threadsafe \
+"
+
+# mozjs requires autoreconf 2.13
+do_configure() {
+    ./configure ${EXTRA_OECONF}
+}
+
+PACKAGES =+ "lib${PN}"
+FILES_lib${PN} += "${libdir}/lib*.so"
+FILES_${PN}-dev += "${bindir}/js17-config"
Signature · 1 line
1.7.4.4
#10 lore raw

PATCH 10/20 polkit: update to 0.111

In reply to Andreas Müller

note: this version's rules are written in jscript.

The following tests were performed:

* run-tests for gnome- and xfce-based image
* update a package that installs a new rule to check if the restricted access rights for /etc/polkit-1/rules.d don't cause trouble

---
 ...ession-Set-error-if-we-cannot-find-a-sess.patch |   70 --------------------
 ...ession-Actually-return-TRUE-if-a-session-.patch |   46 -------------
 .../polkit-0.104/obsolete_automake_macros.patch    |   23 -------
 .../{polkit-0.104 => polkit}/polkit-1_pam.patch    |    0
 .../polkit/{polkit_0.104.bb => polkit_0.111.bb}    |   51 ++++++++++-----
 5 files changed, 34 insertions(+), 156 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/polkit/polkit-0.104/0001-PolkitUnixSession-Set-error-if-we-cannot-find-a-sess.patch
 delete mode 100644 meta-oe/recipes-extended/polkit/polkit-0.104/0002-PolkitUnixSession-Actually-return-TRUE-if-a-session-.patch
 delete mode 100644 meta-oe/recipes-extended/polkit/polkit-0.104/obsolete_automake_macros.patch
 rename meta-oe/recipes-extended/polkit/{polkit-0.104 => polkit}/polkit-1_pam.patch (100%)
 rename meta-oe/recipes-extended/polkit/{polkit_0.104.bb => polkit_0.111.bb} (50%)
meta-oe/recipes-extended/polkit/polkit-0.104/0001-PolkitUnixSession-Set-error-if-we-cannot-find-a-sess.patch deleted +0 -70
deleted file mode 100644
index c021bfb..0000000
@@ -1,70 +0,0 @@
-From c46d2d13eac240d2a609b2dd8fc617ea18a78bfa Mon Sep 17 00:00:00 2001
-From: David Zeuthen <[email protected]>
-Date: Mon, 6 Feb 2012 11:24:53 -0500
-Subject: [PATCH 1/2] PolkitUnixSession: Set error if we cannot find a session for the given pid
-
-Also, don't treat the integer returned by sd_pid_get_session() as a
-boolean because that's just confusing. Also, don't confuse memory
-supposed to be freed by g_free() and free(3) with each other. See
-
- https://bugzilla.redhat.com/show_bug.cgi?id=787222
-
-for more details.
-
-Signed-off-by: David Zeuthen <[email protected]>
----
-
-Upstream-Status: Accepted
-
- src/polkit/polkitunixsession-systemd.c |   21 ++++++++++++++++-----
- 1 files changed, 16 insertions(+), 5 deletions(-)
-
-diff --git a/src/polkit/polkitunixsession-systemd.c b/src/polkit/polkitunixsession-systemd.c
-index e7e913f..94a7ee4 100644
---- a/src/polkit/polkitunixsession-systemd.c
-+++ b/src/polkit/polkitunixsession-systemd.c
-@@ -23,6 +23,7 @@
- #  include "config.h"
- #endif
- 
-+#include <stdlib.h>
- #include <string.h>
- #include "polkitunixsession.h"
- #include "polkitsubject.h"
-@@ -450,9 +451,8 @@ polkit_unix_session_initable_init (GInitable     *initable,
-                                    GError       **error)
- {
-   PolkitUnixSession *session = POLKIT_UNIX_SESSION (initable);
--  gboolean ret;
--
--  ret = FALSE;
-+  gboolean ret = FALSE;
-+  char *s;
- 
-   if (session->session_id != NULL)
-     {
-@@ -461,8 +461,19 @@ polkit_unix_session_initable_init (GInitable     *initable,
-       goto out;
-     }
- 
--  if (!sd_pid_get_session (session->pid, &session->session_id))
--    ret = TRUE;
-+  if (sd_pid_get_session (session->pid, &s) == 0)
-+    {
-+      session->session_id = g_strdup (s);
-+      free (s);
-+      ret = TRUE;
-+      goto out;
-+    }
-+
-+  g_set_error (error,
-+               POLKIT_ERROR,
-+               POLKIT_ERROR_FAILED,
-+               "No session for pid %d",
-+               (gint) session->pid);
- 
- out:
-   return ret;
--- 
-1.7.2.5
-
meta-oe/recipes-extended/polkit/polkit-0.104/0002-PolkitUnixSession-Actually-return-TRUE-if-a-session-.patch deleted +0 -46

46 lines not on this page · raw message

meta-oe/recipes-extended/polkit/polkit-0.104/obsolete_automake_macros.patch deleted +0 -23
deleted file mode 100644
index 5a6046c..0000000
@@ -1,23 +0,0 @@
-Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=59091]
-
-Signed-off-by: Marko Lindqvist <[email protected]>
-diff -Nurd polkit-0.104/configure.ac polkit-0.104/configure.ac
---- polkit-0.104/configure.ac	2012-01-03 18:25:49.000000000 +0200
-+++ polkit-0.104/configure.ac	2013-01-07 03:13:31.862125625 +0200
-@@ -3,7 +3,7 @@
- AC_PREREQ(2.59c)
- AC_INIT(polkit, 0.104, http://lists.freedesktop.org/mailman/listinfo/polkit-devel)
- AM_INIT_AUTOMAKE(polkit, 0.104)
--AM_CONFIG_HEADER(config.h)
-+AC_CONFIG_HEADERS(config.h)
- AM_MAINTAINER_MODE
-
- m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
-@@ -24,7 +24,6 @@
-
- AC_ISC_POSIX
- AC_PROG_CC
--AM_PROG_CC_STDC
- AC_HEADER_STDC
- AM_PROG_LIBTOOL
- AC_PROG_MAKE_SET
meta-oe/recipes-extended/polkit/polkit/polkit-1_pam.patch renamed from meta-oe/recipes-extended/polkit/polkit-0.104/polkit-1_pam.patch +0 -0
similarity index 100%
rename from meta-oe/recipes-extended/polkit/polkit-0.104/polkit-1_pam.patch
rename to meta-oe/recipes-extended/polkit/polkit/polkit-1_pam.patch
meta-oe/recipes-extended/polkit/polkit_0.111.bb renamed from meta-oe/recipes-extended/polkit/polkit_0.104.bb +34 -17

73 lines not on this page · raw message

Signature · 1 line
1.7.4.4
#11 lore raw

PATCH 11/20 networkmanager: rework dependencies/configure-option and use PACKAGECONFIG

In reply to Andreas Müller
---
 .../networkmanager/networkmanager_0.9.8.0.bb       |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.0.bb +9 -3
index 5b53f7f..6957f35 100644
@@ -4,8 +4,7 @@ SECTION = "net/misc"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b"
 
-DEPENDS = "libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp"
-DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+DEPENDS = "libnl dbus dbus-glib udev wireless-tools gnutls util-linux ppp"
 
 inherit gnome gettext systemd
 
@@ -33,7 +32,14 @@ EXTRA_OECONF = " \
     --with-tests \
 "
 
-EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)}"
+PACKAGECONFIG[systemd] = " \
+    --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \
+    --without-systemdsystemunitdir=, \
+    polkit \
+"
+# consolekit is not picked by shlibs, so add it to RDEPENDS too
+PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
 
 # Work around dbus permission problems since we lack a proper at_console
 do_install_prepend() {
Signature · 1 line
1.7.4.4
#12 lore raw

PATCH 12/20 networkmanager: replace absolute paths

In reply to Andreas Müller
---
 .../networkmanager/networkmanager_0.9.8.0.bb       |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.0.bb +4 -4
index 6957f35..07f0c28 100644
@@ -50,14 +50,14 @@ do_install_prepend() {
 }
 
 do_install_append () {
-    install -d ${D}/etc/dbus-1/event.d
+    install -d ${D}${sysconfdir}/dbus-1/event.d
     # Additional test binaries
-    install -d ${D}/usr/bin
-    install -m 0755 ${S}/test/.libs/libnm* ${D}/usr/bin
+    install -d ${D}${bindir}
+    install -m 0755 ${S}/test/.libs/libnm* ${D}${bindir}
 
     # Install an empty VPN folder as nm-connection-editor will happily segfault without it :o.
     # With or without VPN support built in ;).
-    install -d ${D}/etc/NetworkManager/VPN
+    install -d ${D}${sysconfdir}/NetworkManager/VPN
 }
 
 PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests ${PN}-bash-completion"
Signature · 1 line
1.7.4.4
#13 lore raw

PATCH 13/20 polkit-group-rule.inc: add a common template for polkit-rules/user-groups

In reply to Andreas Müller
---
 .../recipes-extended/polkit/polkit-group-rule.inc  |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-extended/polkit/polkit-group-rule.inc
meta-oe/recipes-extended/polkit/polkit-group-rule.inc new file +9 -0
new file mode 100644
index 0000000..8d1a89a
@@ -0,0 +1,9 @@
+# polkit must prepare polkid group
+DEPENDS += "polkit"
+
+inherit allarch useradd
+
+do_install_prepend() {
+    install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
+    chown polkitd:polkitd ${D}${sysconfdir}/polkit-1/rules.d
+}
Signature · 1 line
1.7.4.4
#14 lore raw

PATCH 14/20 polkit-group-rule-network: initial add

In reply to Andreas Müller

add user-group 'network' allowing memebers to change networkmanager settings

---
 .../files/50-org.freedesktop.NetworkManager.rules  |    8 ++++++++
 .../polkit/polkit-group-rule-network.bb            |   14 ++++++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-extended/polkit/files/50-org.freedesktop.NetworkManager.rules
 create mode 100644 meta-oe/recipes-extended/polkit/polkit-group-rule-network.bb
meta-oe/recipes-extended/polkit/files/50-org.freedesktop.NetworkManager.rules new file +8 -0
new file mode 100644
index 0000000..4b50cf8
@@ -0,0 +1,8 @@
+/* give group 'network' rights to change settings */
+/* taken from https://wiki.archlinux.org/index.php/NetworkManager#Set_up_PolicyKit_permissions */
+
+polkit.addRule(function(action, subject) {
+  if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) {
+    return polkit.Result.YES;
+  }
+});
meta-oe/recipes-extended/polkit/polkit-group-rule-network.bb new file +14 -0
new file mode 100644
index 0000000..bba1136
@@ -0,0 +1,14 @@
+DESCRIPTION = "Create usergroup network. All members off this group are allowed to modify networkmanager settings"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+require polkit-group-rule.inc
+
+SRC_URI = "file://50-org.freedesktop.NetworkManager.rules"
+
+do_install() {
+        install -m 0755 ${WORKDIR}/50-org.freedesktop.NetworkManager.rules ${D}${sysconfdir}/polkit-1/rules.d
+}
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system network"
Signature · 1 line
1.7.4.4
#15 lore raw

PATCH 15/20 polkit-group-rule-datetime: initial add

In reply to Andreas Müller

add user-group 'datetime' allowing members to change date/time/timezone settings

---
 .../files/50-org.freedesktop.timedate1.rules       |    8 ++++++++
 .../polkit/polkit-group-rule-datetime.bb           |   14 ++++++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules
 create mode 100644 meta-oe/recipes-extended/polkit/polkit-group-rule-datetime.bb
meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules new file +8 -0
new file mode 100644
index 0000000..95b0e0f
@@ -0,0 +1,8 @@
+/* give group 'datetime' rights to change settings */
+/* based upon http://lists.freedesktop.org/archives/systemd-devel/2013-March/009576.html */
+
+polkit.addRule(function(action, subject) {
+  if (action.id.indexOf("org.freedesktop.timedate1.") == 0 && subject.isInGroup("datetime")) {
+    return polkit.Result.YES;
+  }
+});
meta-oe/recipes-extended/polkit/polkit-group-rule-datetime.bb new file +14 -0
new file mode 100644
index 0000000..373e4f0
@@ -0,0 +1,14 @@
+DESCRIPTION = "Create usergroup datetime. All members off this group are allowed set date/time/timezone via system dbus"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+require polkit-group-rule.inc
+
+SRC_URI = "file://50-org.freedesktop.timedate1.rules"
+
+do_install() {
+        install -m 0755 ${WORKDIR}/50-org.freedesktop.timedate1.rules ${D}${sysconfdir}/polkit-1/rules.d
+}
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system datetime"
Signature · 1 line
1.7.4.4
#16 lore raw

PATCH 16/20 lxdm: remove consolekit dependencies in systemd environment and fix build

In reply to Andreas Müller
---
 ...heck-only-for-ck-connector-in-case-consol.patch |   48 ++++++++++++++++++++
 meta-oe/recipes-graphics/lxdm/lxdm_git.bb          |    6 ++-
 2 files changed, 52 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0002-configure-check-only-for-ck-connector-in-case-consol.patch
meta-oe/recipes-graphics/lxdm/lxdm/0002-configure-check-only-for-ck-connector-in-case-consol.patch new file +48 -0
new file mode 100644
index 0000000..e2ba52a
@@ -0,0 +1,48 @@
+From 8657bfcfc5c26382989001e9b6d18295d740c709 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
+Date: Fri, 7 Jun 2013 14:13:41 +0200
+Subject: [PATCH] configure: check only for ck-connector in case consolekit is
+ enabled
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+it failed for --disable-consolekit with
+
+| lxdm.c:70:26: fatal error: ck-connector.h: No such file or directory
+| compilation terminated.
+| make[2]: *** [lxdm_binary-lxdm.o] Error 1
+
+Upstream-Status: submitted [1]
+
+[1] http://sourceforge.net/mailarchive/message.php?msg_id=31010893
+
+Signed-off-by: Andreas Müller <[email protected]>
+---
+ configure.ac |    3 +--
+ 1 files changed, 1 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 9e21a22..49ba944 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -28,8 +28,6 @@ if test "x$USE_PAM" != "xno" ; then
+ 		 fi])
+ fi
+ 
+-AC_CHECK_LIB([ck-connector],[ck_connector_open_session])
+-
+ # Checks for header files.
+ AC_PATH_X
+ AC_CHECK_HEADERS([shadow.h stdlib.h string.h unistd.h utmpx.h])
+@@ -102,6 +100,7 @@ if test "x$enable_consolekit" = "xyes" ; then
+ 	AC_SUBST(CONSOLEKIT_LIBS)],[
+ 	echo "ConsoleKit devel package not found"
+ 	])
++  AC_CHECK_LIB([ck-connector],[ck_connector_open_session])
+ fi
+ 
+ 
+-- 
+1.7.6.5
+
meta-oe/recipes-graphics/lxdm/lxdm_git.bb +4 -2
index 6675691..8767e98 100644
@@ -8,6 +8,7 @@ SRC_URI = " \
     file://lxdm-pam \
     file://lxdm-pam-debug \
     ${@base_contains("DISTRO_TYPE", "debug", "", "file://0001-lxdm.conf.in-blacklist-root-for-release-images.patch",d)} \
+    file://0002-configure-check-only-for-ck-connector-in-case-consol.patch \
 "
 
 LXDM_PAM = "${@base_contains("DISTRO_TYPE", "debug", "lxdm-pam-debug", "lxdm-pam",d)}"
@@ -17,7 +18,8 @@ PV = "0.4.2+git${SRCPV}"
 PE = "1"
 PR = "r7"
 
-DEPENDS = "cairo consolekit dbus gdk-pixbuf glib-2.0 gtk+ virtual/libx11 libxcb pango"
+DEPENDS = "cairo dbus gdk-pixbuf glib-2.0 gtk+ virtual/libx11 libxcb pango"
+DEPENDS += "${@base_contains("DISTRO_FEATURES", "systemd", "", "consolekit", d)}"
 
 # combine oe-core way with angstrom DISTRO_TYPE
 DISTRO_TYPE ?= "${@base_contains("IMAGE_FEATURES", "debug-tweaks", "debug", "",d)}"
@@ -26,7 +28,7 @@ inherit autotools gettext systemd
 
 S = "${WORKDIR}/git"
 
-EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
+EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)}"
 
 do_compile_append() {
     # default background configured not available / no password field available / no default screensaver
Signature · 1 line
1.7.4.4
#17 lore raw

PATCH 17/20 xfce4-power-manager: rework polkit/consolekit selection and implement polkit/systemd shutdown

In reply to Andreas Müller
---
 ...shutdown-reboot-functionality-for-systemd.patch |  677 ++++++++++++++++++++
 .../xfce4-power-manager_1.2.0.bb                   |    9 +-
 2 files changed, 684 insertions(+), 2 deletions(-)
 create mode 100644 meta-xfce/recipes-xfce/xfce4-power-manager/files/0001-Add-shutdown-reboot-functionality-for-systemd.patch
meta-xfce/recipes-xfce/xfce4-power-manager/files/0001-Add-shutdown-reboot-functionality-for-systemd.patch new file +677 -0
new file mode 100644
index 0000000..d5c5487
@@ -0,0 +1,677 @@
+From 023333688f73ed26097c693d43f76e4b7d5698e2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
+Date: Fri, 7 Jun 2013 18:38:42 +0200
+Subject: [PATCH] Add shutdown/reboot functionality for systemd
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Upstream-Status: Submitted [2]
+
+[1] http://git.xfce.org/xfce/xfce4-session/commit/?id=ae28aef315a7a6b90f1649ce6d1f30b842791cbf
+[2] https://bugzilla.xfce.org/show_bug.cgi?id=10167
+
+Signed-off-by: Andreas Müller <[email protected]>
+---
+ configure.ac       |    2 +
+ src/Makefile.am    |   14 +++-
+ src/xfpm-manager.c |   29 ++++++-
+ src/xfpm-power.c   |   66 ++++++++++++++-
+ src/xfpm-systemd.c |  245 ++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/xfpm-systemd.h |   60 +++++++++++++
+ 6 files changed, 411 insertions(+), 5 deletions(-)
+ create mode 100644 src/xfpm-systemd.c
+ create mode 100644 src/xfpm-systemd.h
+
+diff --git a/configure.ac b/configure.ac
+index 633b340..1db2036 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -95,6 +95,8 @@ if test "x$ac_cv_enable_polkit" = "xno"; then
+     polkit="no"
+ else
+     AC_MSG_RESULT([yes])
++    m4_define([polkit_minimum_version], [0.100])
++    XDT_CHECK_PACKAGE([SYSTEMD], [polkit-gobject-1], [polkit_minimum_version])
+     AC_DEFINE(ENABLE_POLKIT, 1 , [PolicyKit support])
+     polkit="yes"
+ fi
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 0435bed..9b7fdd0 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -18,8 +18,6 @@ xfce4_power_manager_SOURCES =                   \
+ 	xfpm-xfconf.h				\
+ 	xfpm-disks.c				\
+ 	xfpm-disks.h				\
+-	xfpm-console-kit.c			\
+-	xfpm-console-kit.h			\
+ 	egg-idletime.c				\
+ 	egg-idletime.h				\
+ 	xfpm-backlight.c			\
+@@ -39,6 +37,16 @@ xfce4_power_manager_SOURCES =                   \
+ 	xfpm-errors.c				\
+ 	xfpm-errors.h
+ 
++if ENABLE_POLKIT
++xfce4_power_manager_SOURCES +=			\
++	xfpm-systemd.c				\
++	xfpm-systemd.h
++else
++xfce4_power_manager_SOURCES +=                  \
++	xfpm-console-kit.c			\
++	xfpm-console-kit.h
++endif
++
+ xfce4_power_manager_CFLAGS =                    \
+ 	-I$(top_srcdir)                         \
+ 	-I$(top_srcdir)/common                  \
+@@ -52,6 +60,7 @@ xfce4_power_manager_CFLAGS =                    \
+ 	$(LIBXFCE4UI_CFLAGS)                    \
+ 	$(XFCONF_CFLAGS)                        \
+ 	$(LIBNOTIFY_CFLAGS)                     \
++	$(SYSTEMD_CFLAGS)                       \
+ 	$(XRANDR_CFLAGS)			\
+ 	$(DPMS_CFLAGS)           		\
+ 	$(PLATFORM_CPPFLAGS)			\
+@@ -70,6 +79,7 @@ xfce4_power_manager_LDADD =                     \
+ 	$(LIBXFCE4UI_LIBS)                      \
+ 	$(XFCONF_LIBS)                          \
+ 	$(LIBNOTIFY_LIBS)                       \
++	$(SYSTEMD_LIBS)                         \
+ 	$(XRANDR_LIBS)				\
+ 	$(DPMS_LIBS)
+ 
+diff --git a/src/xfpm-manager.c b/src/xfpm-manager.c
+index 472ee3e..9bfb53c 100644
+--- a/src/xfpm-manager.c
++++ b/src/xfpm-manager.c
+@@ -43,7 +43,6 @@
+ #include "xfpm-disks.h"
+ #include "xfpm-dpms.h"
+ #include "xfpm-manager.h"
+-#include "xfpm-console-kit.h"
+ #include "xfpm-button.h"
+ #include "xfpm-backlight.h"
+ #include "xfpm-inhibit.h"
+@@ -58,6 +57,12 @@
+ #include "xfpm-enum-types.h"
+ #include "xfpm-dbus-monitor.h"
+ 
++#ifdef ENABLE_POLKIT
++#include "xfpm-systemd.h"
++#else
++#include "xfpm-console-kit.h"
++#endif
++
+ static void xfpm_manager_finalize   (GObject *object);
+ 
+ static void xfpm_manager_dbus_class_init (XfpmManagerClass *klass);
+@@ -80,7 +85,11 @@ struct XfpmManagerPrivate
+     XfpmButton      *button;
+     XfpmXfconf      *conf;
+     XfpmBacklight   *backlight;
++#ifdef ENABLE_POLKIT
++    XfpmSystemd     *systemd;
++#else
+     XfpmConsoleKit  *console;
++#endif
+     XfpmDBusMonitor *monitor;
+     XfpmDisks       *disks;
+     XfpmInhibit     *inhibit;
+@@ -131,7 +140,11 @@ xfpm_manager_finalize (GObject *object)
+     g_object_unref (manager->priv->button);
+     g_object_unref (manager->priv->conf);
+     g_object_unref (manager->priv->client);
++#ifdef ENABLE_POLKIT
++    g_object_unref (manager->priv->systemd);
++#else
+     g_object_unref (manager->priv->console);
++#endif
+     g_object_unref (manager->priv->monitor);
+     g_object_unref (manager->priv->disks);
+     g_object_unref (manager->priv->inhibit);
+@@ -201,7 +214,11 @@ static void
+ xfpm_manager_shutdown (XfpmManager *manager)
+ {
+     GError *error = NULL;
++#ifdef ENABLE_POLKIT
++    xfpm_systemd_shutdown (manager->priv->systemd, &error );
++#else
+     xfpm_console_kit_shutdown (manager->priv->console, &error );
++#endif
+     
+     if ( error )
+     {
+@@ -521,7 +538,11 @@ void xfpm_manager_start (XfpmManager *manager)
+     manager->priv->power = xfpm_power_get ();
+     manager->priv->button = xfpm_button_new ();
+     manager->priv->conf = xfpm_xfconf_new ();
++#ifdef ENABLE_POLKIT
++    manager->priv->systemd = xfpm_systemd_new ();
++#else
+     manager->priv->console = xfpm_console_kit_new ();
++#endif
+     manager->priv->monitor = xfpm_dbus_monitor_new ();
+     manager->priv->disks = xfpm_disks_new ();
+     manager->priv->inhibit = xfpm_inhibit_new ();
+@@ -603,9 +624,15 @@ GHashTable *xfpm_manager_get_config (XfpmManager *manager)
+     
+     hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
+     
++#ifdef ENABLE_POLKIT
++    g_object_get (G_OBJECT (manager->priv->systemd),
++		  "can-shutdown", &can_shutdown,
++		  NULL);
++#else
+     g_object_get (G_OBJECT (manager->priv->console),
+ 		  "can-shutdown", &can_shutdown,
+ 		  NULL);
++#endif
+ 
+     g_object_get (G_OBJECT (manager->priv->power),
+                   "auth-suspend", &auth_suspend,
+diff --git a/src/xfpm-power.c b/src/xfpm-power.c
+index 796bef8..391c7fc 100644
+--- a/src/xfpm-power.c
++++ b/src/xfpm-power.c
+@@ -39,7 +39,6 @@
+ #include "xfpm-xfconf.h"
+ #include "xfpm-notify.h"
+ #include "xfpm-errors.h"
+-#include "xfpm-console-kit.h"
+ #include "xfpm-inhibit.h"
+ #include "xfpm-polkit.h"
+ #include "xfpm-network-manager.h"
+@@ -51,6 +50,12 @@
+ #include "xfpm-enum-types.h"
+ #include "egg-idletime.h"
+ 
++#ifdef ENABLE_POLKIT
++#include "xfpm-systemd.h"
++#else
++#include "xfpm-console-kit.h"
++#endif
++
+ static void xfpm_power_finalize     (GObject *object);
+ 
+ static void xfpm_power_get_property (GObject *object,
+@@ -75,7 +80,11 @@ struct XfpmPowerPrivate
+     
+     GHashTable      *hash;
+     
++#ifdef ENABLE_POLKIT
++    XfpmSystemd     *systemd;
++#else
+     XfpmConsoleKit  *console;
++#endif
+     XfpmInhibit	    *inhibit;
+     XfpmXfconf      *conf;
+     GtkStatusIcon   *adapter_icon;
+@@ -680,9 +689,15 @@ xfpm_power_add_actions_to_notification (XfpmPower *power, NotifyNotification *n)
+ {
+     gboolean can_shutdown;
+     
++#ifdef ENABLE_POLKIT
++    g_object_get (G_OBJECT (power->priv->systemd),
++		  "can-shutdown", &can_shutdown,
++		  NULL);
++#else
+     g_object_get (G_OBJECT (power->priv->console),
+ 		  "can-shutdown", &can_shutdown,
+ 		  NULL);
++#endif
+ 		  
+     if (  power->priv->can_hibernate && power->priv->auth_hibernate )
+     {
+@@ -756,9 +771,15 @@ xfpm_power_show_critical_action_gtk (XfpmPower *power)
+     const gchar *message;
+     gboolean can_shutdown;
+     
++#ifdef ENABLE_POLKIT
++    g_object_get (G_OBJECT (power->priv->systemd),
++		  "can-shutdown", &can_shutdown,
++		  NULL);
++#else
+     g_object_get (G_OBJECT (power->priv->console),
+ 		  "can-shutdown", &can_shutdown,
+ 		  NULL);
++#endif
+     
+     message = _("System is running on low power. "\
+                "Save your work to avoid losing data");
+@@ -1327,7 +1348,11 @@ xfpm_power_init (XfpmPower *power)
+     power->priv->inhibit = xfpm_inhibit_new ();
+     power->priv->notify  = xfpm_notify_new ();
+     power->priv->conf    = xfpm_xfconf_new ();
++#ifdef ENABLE_POLKIT
++    power->priv->systemd = xfpm_systemd_new ();
++#else
+     power->priv->console = xfpm_console_kit_new ();
++#endif
+     
+     g_signal_connect_swapped (power->priv->conf, "notify::" SHOW_TRAY_ICON_CFG,
+ 			      G_CALLBACK (xfpm_power_refresh_adaptor_visible), power);
+@@ -1445,7 +1470,11 @@ xfpm_power_finalize (GObject *object)
+     g_object_unref (power->priv->inhibit);
+     g_object_unref (power->priv->notify);
+     g_object_unref (power->priv->conf);
++#ifdef ENABLE_POLKIT
++    g_object_unref (power->priv->systemd);
++#else
+     g_object_unref (power->priv->console);
++#endif
+     
+     xfpm_power_hide_adapter_icon (power);
+     
+@@ -1607,9 +1636,15 @@ static gboolean xfpm_power_dbus_shutdown (XfpmPower *power,
+ {
+     gboolean can_reboot;
+     
++#ifdef ENABLE_POLKIT
++    g_object_get (G_OBJECT (power->priv->systemd),
++		  "can-shutdown", &can_reboot,
++		  NULL);
++#else
+     g_object_get (G_OBJECT (power->priv->console),
+ 		  "can-shutdown", &can_reboot,
+ 		  NULL);
++#endif
+     
+     if ( !can_reboot)
+     {
+@@ -1618,7 +1653,11 @@ static gboolean xfpm_power_dbus_shutdown (XfpmPower *power,
+         return FALSE;
+     }
+     
++#ifdef ENABLE_POLKIT
++    xfpm_systemd_shutdown (power->priv->systemd, error);
++#else
+     xfpm_console_kit_shutdown (power->priv->console, error);
++#endif
+     
+     return TRUE;
+ }
+@@ -1628,9 +1667,15 @@ static gboolean xfpm_power_dbus_reboot   (XfpmPower *power,
+ {
+     gboolean can_reboot;
+     
++#ifdef ENABLE_POLKIT
++    g_object_get (G_OBJECT (power->priv->systemd),
++		  "can-restart", &can_reboot,
++		  NULL);
++#else
+     g_object_get (G_OBJECT (power->priv->console),
+ 		  "can-restart", &can_reboot,
+ 		  NULL);
++#endif
+     
+     if ( !can_reboot)
+     {
+@@ -1639,7 +1684,11 @@ static gboolean xfpm_power_dbus_reboot   (XfpmPower *power,
+         return FALSE;
+     }
+     
++#ifdef ENABLE_POLKIT
++    xfpm_systemd_reboot (power->priv->systemd, error);
++#else
+     xfpm_console_kit_reboot (power->priv->console, error);
++#endif
+     
+     return TRUE;
+ }
+@@ -1694,10 +1743,16 @@ static gboolean xfpm_power_dbus_can_reboot (XfpmPower * power,
+ 					  gboolean * OUT_can_reboot, 
+ 					  GError ** error)
+ {
++#ifdef ENABLE_POLKIT
++    g_object_get (G_OBJECT (power->priv->systemd),
++		  "can-reboot", OUT_can_reboot,
++		  NULL);
++#else
+     g_object_get (G_OBJECT (power->priv->console),
+ 		  "can-reboot", OUT_can_reboot,
+ 		  NULL);
+-		  
++#endif
++
+     return TRUE;
+ }
+ 
+@@ -1705,9 +1760,16 @@ static gboolean xfpm_power_dbus_can_shutdown (XfpmPower * power,
+ 					    gboolean * OUT_can_shutdown, 
+ 					    GError ** error)
+ {
++#ifdef ENABLE_POLKIT
++    g_object_get (G_OBJECT (power->priv->systemd),
++		  "can-shutdown", OUT_can_shutdown,
++		  NULL);
++#else
+     g_object_get (G_OBJECT (power->priv->console),
+ 		  "can-shutdown", OUT_can_shutdown,
+ 		  NULL);
++#endif
++
+     return TRUE;
+ }
+ 
+diff --git a/src/xfpm-systemd.c b/src/xfpm-systemd.c
+new file mode 100644
+index 0000000..cc1cba1
+--- /dev/null
++++ b/src/xfpm-systemd.c
+@@ -0,0 +1,245 @@
++/*
++ * * Copyright (C) 2009-2011 Ali <[email protected]>
++ * * Copyright (C) 2013 Andreas Müller <[email protected]>
++ *
++ * Licensed under the GNU General Public License Version 2
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License as published by
++ * the Free Software Foundation; either version 2 of the License, or
++ * (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
++ */
++
++#ifdef HAVE_CONFIG_H
++#include <config.h>
++#endif
++
++#include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
++
++#include <dbus/dbus-glib.h>
++#include <polkit/polkit.h>
++
++#include "xfpm-systemd.h"
++
++
++static void xfpm_systemd_finalize   (GObject *object);
++
++static void xfpm_systemd_get_property (GObject *object,
++                                       guint prop_id,
++                                       GValue *value,
++                                       GParamSpec *pspec);
++
++#define XFPM_SYSTEMD_GET_PRIVATE(o) \
++(G_TYPE_INSTANCE_GET_PRIVATE ((o), XFPM_TYPE_SYSTEMD, XfpmSystemdPrivate))
++
++struct XfpmSystemdPrivate
++{
++    gboolean	     can_shutdown;
++    gboolean	     can_restart;
++
++    PolkitAuthority *authority;
++    PolkitSubject   *subject;
++};
++
++enum
++{
++    PROP_0,
++    PROP_CAN_RESTART,
++    PROP_CAN_SHUTDOWN
++};
++
++G_DEFINE_TYPE (XfpmSystemd, xfpm_systemd, G_TYPE_OBJECT)
++
++#define SYSTEMD_DBUS_NAME               "org.freedesktop.login1"
++#define SYSTEMD_DBUS_PATH               "/org/freedesktop/login1"
++#define SYSTEMD_DBUS_INTERFACE          "org.freedesktop.login1.Manager"
++#define SYSTEMD_REBOOT_ACTION           "Reboot"
++#define SYSTEMD_POWEROFF_ACTION         "PowerOff"
++#define SYSTEMD_REBOOT_TEST             "org.freedesktop.login1.reboot"
++#define SYSTEMD_POWEROFF_TEST           "org.freedesktop.login1.power-off"
++
++static void
++xfpm_systemd_class_init (XfpmSystemdClass *klass)
++{
++    GObjectClass *object_class = G_OBJECT_CLASS (klass);
++
++    object_class->finalize = xfpm_systemd_finalize;
++
++    object_class->get_property = xfpm_systemd_get_property;
++
++    g_object_class_install_property (object_class,
++                                     PROP_CAN_RESTART,
++                                     g_param_spec_boolean ("can-restart",
++                                                           NULL, NULL,
++                                                           FALSE,
++                                                           G_PARAM_READABLE));
++
++    g_object_class_install_property (object_class,
++                                     PROP_CAN_SHUTDOWN,
++                                     g_param_spec_boolean ("can-shutdown",
++                                                           NULL, NULL,
++                                                           FALSE,
++                                                           G_PARAM_READABLE));
++
++    g_type_class_add_private (klass, sizeof (XfpmSystemdPrivate));
++}
++
++static gboolean
++xfpm_systemd_can_method (XfpmSystemd  *systemd,
++                         gboolean     *can_method,
++                         const gchar  *method)
++{
++    PolkitAuthorizationResult *res;
++    GError                    *local_error = NULL;
++
++    *can_method = FALSE;
++    res = polkit_authority_check_authorization_sync (systemd->priv->authority,
++                                                     systemd->priv->subject,
++                                                     method,
++                                                     NULL,
++                                                     POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE,
++                                                     NULL,
++                                                     &local_error);
++    if ( local_error )
++    {
++	g_critical ("Unable to get %s : %s", method, local_error->message);
++	g_error_free (local_error);
++    }
++
++    if(res)
++    {
++        *can_method = polkit_authorization_result_get_is_authorized (res) ||
++                      polkit_authorization_result_get_is_challenge (res);
++        g_object_unref (G_OBJECT (res));
++    }
++}
++
++static void
++xfpm_systemd_init (XfpmSystemd *systemd)
++{
++    PolkitAuthorizationResult *res;
++
++    systemd->priv = XFPM_SYSTEMD_GET_PRIVATE (systemd);
++    systemd->priv->authority = polkit_authority_get_sync (NULL, NULL);
++    systemd->priv->subject = polkit_unix_process_new (getpid());
++    systemd->priv->can_shutdown = FALSE;
++    systemd->priv->can_restart  = FALSE;
++
++    if(systemd->priv->authority && systemd->priv->subject)
++    {
++        xfpm_systemd_can_method (systemd,
++                                 &systemd->priv->can_shutdown,
++                                 SYSTEMD_POWEROFF_TEST);
++        xfpm_systemd_can_method (systemd,
++                                 &systemd->priv->can_restart,
++                                 SYSTEMD_REBOOT_TEST);
++    }
++}
++
++static void xfpm_systemd_get_property (GObject *object,
++					   guint prop_id,
++					   GValue *value,
++					   GParamSpec *pspec)
++{
++    XfpmSystemd *systemd;
++    systemd = XFPM_SYSTEMD (object);
++
++    switch (prop_id)
++    {
++	case PROP_CAN_SHUTDOWN:
++	    g_value_set_boolean (value, systemd->priv->can_shutdown);
++	    break;
++	case PROP_CAN_RESTART:
++	    g_value_set_boolean (value, systemd->priv->can_restart);
++	    break;
++        default:
++            G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
++            break;
++    }
++}
++
++static void
++xfpm_systemd_finalize (GObject *object)
++{
++    XfpmSystemd *systemd;
++
++    systemd = XFPM_SYSTEMD (object);
++
++    if(systemd->priv->authority)
++        g_object_unref (G_OBJECT (systemd->priv->authority));
++    if(systemd->priv->subject)
++        g_object_unref (G_OBJECT (systemd->priv->subject));
++
++    G_OBJECT_CLASS (xfpm_systemd_parent_class)->finalize (object);
++}
++
++XfpmSystemd *
++xfpm_systemd_new (void)
++{
++    static gpointer systemd_obj = NULL;
++
++    if ( G_LIKELY (systemd_obj != NULL ) )
++    {
++	g_object_ref (systemd_obj);
++    }
++    else
++    {
++	systemd_obj = g_object_new (XFPM_TYPE_SYSTEMD, NULL);
++	g_object_add_weak_pointer (systemd_obj, &systemd_obj);
++    }
++
++    return XFPM_SYSTEMD (systemd_obj);
++}
++
++static void
++xfpm_systemd_try_method (XfpmSystemd  *systemd,
++                         const gchar  *method,
++                         GError      **error)
++{
++    GDBusConnection *bus;
++    GError          *local_error = NULL;
++
++    bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, error);
++    if (G_LIKELY (bus != NULL))
++    {
++        g_dbus_connection_call_sync (bus,
++                                     SYSTEMD_DBUS_NAME,
++                                     SYSTEMD_DBUS_PATH,
++                                     SYSTEMD_DBUS_INTERFACE,
++                                     method,
++                                     g_variant_new ("(b)", TRUE),
++                                     NULL, 0, G_MAXINT, NULL,
++                                     &local_error);
++        g_object_unref (G_OBJECT (bus));
++
++        if (local_error != NULL)
++        {
++            g_propagate_error (error, local_error);
++        }
++    }
++}
++
++void xfpm_systemd_shutdown (XfpmSystemd *systemd, GError **error)
++{
++    xfpm_systemd_try_method (systemd,
++                             SYSTEMD_POWEROFF_ACTION,
++                             error);
++}
++
++void xfpm_systemd_reboot (XfpmSystemd *systemd, GError **error)
++{
++    xfpm_systemd_try_method (systemd,
++                             SYSTEMD_REBOOT_ACTION,
++                             error);
++}
+diff --git a/src/xfpm-systemd.h b/src/xfpm-systemd.h
+new file mode 100644
+index 0000000..2890e08
+--- /dev/null
++++ b/src/xfpm-systemd.h
+@@ -0,0 +1,60 @@
++/*
++ * * Copyright (C) 2009-2011 Ali <[email protected]>
++ * * Copyright (C) 2013 Andreas Müller <[email protected]>
++ *
++ * Licensed under the GNU General Public License Version 2
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License as published by
++ * the Free Software Foundation; either version 2 of the License, or
++ * (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
++ */
++
++#ifndef __XFPM_SYSTEMD_H
++#define __XFPM_SYSTEMD_H
++
++#include <glib-object.h>
++
++G_BEGIN_DECLS
++
++#define XFPM_TYPE_SYSTEMD            (xfpm_systemd_get_type () )
++#define XFPM_SYSTEMD(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), XFPM_TYPE_SYSTEMD, XfpmSystemd))
++#define XFPM_IS_SYSTEMD(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFPM_TYPE_SYSTEMD))
++
++typedef struct XfpmSystemdPrivate XfpmSystemdPrivate;
++
++typedef struct
++{
++    GObject         		parent;
++    XfpmSystemdPrivate		*priv;
++
++} XfpmSystemd;
++
++typedef struct
++{
++    GObjectClass 		parent_class;
++
++} XfpmSystemdClass;
++
++GType        			XFPM_SYSTEMD_get_type	(void) G_GNUC_CONST;
++
++XfpmSystemd       	       *XFPM_SYSTEMD_new	(void);
++
++void				XFPM_SYSTEMD_shutdown	(XfpmSystemd *systemd,
++							 GError **error);
++
++void				XFPM_SYSTEMD_reboot	(XfpmSystemd *systemd,
++							 GError **error);
++
++G_END_DECLS
++
++#endif /* __XFPM_SYSTEMD_H */
+-- 
+1.7.6.5
+
meta-xfce/recipes-xfce/xfce4-power-manager/xfce4-power-manager_1.2.0.bb +7 -2
index af2ba5e..efd5aea 100644
@@ -9,14 +9,19 @@ inherit xfce
 
 DEPENDS = "gtk+ glib-2.0 dbus-glib xfconf libxfce4ui libxfce4util libnotify \
            libxrandr virtual/libx11 libxext xfce4-panel"
-RDEPENDS_${PN} = "networkmanager udisks upower polkit"
+
+SRC_URI += "file://0001-Add-shutdown-reboot-functionality-for-systemd.patch"
+
+RDEPENDS_${PN} = "networkmanager udisks upower ${@base_contains('DISTRO_FEATURES','systemd','','consolekit',d)}"
 
 EXTRA_OECONF = " \
-    --enable-polkit \
     --enable-network-manager \
     --enable-panel-plugins \
 "
 
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','',d)}"
+PACKAGECONFIG[systemd] = "--enable-polkit, --disable-polkit, polkit"
+
 PACKAGES += "xfce4-brightness-plugin"
 FILES_${PN} += "${datadir}/polkit-1"
 FILES_xfce4-brightness-plugin = " \
Signature · 1 line
1.7.4.4
#18 lore raw

PATCH 18/20 xarchiver: update to 0.5.3 for various bugfixes

In reply to Andreas Müller

xarchiver is unmaintained for long time. Since I think it is worth to invest further development I did collect pending patches, wrote some myself, pushed into my git repo and contacted the developer. He signalled 'green light' for me maintaining xarchiver in the future. As long as I have not yet created/uploaded a tarball let us use my git-repo for the sources.

---
 .../{xarchiver_0.5.2.bb => xarchiver_git.bb}       |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)
 rename meta-xfce/recipes-apps/xarchiver/{xarchiver_0.5.2.bb => xarchiver_git.bb} (60%)
meta-xfce/recipes-apps/xarchiver/xarchiver_git.bb renamed from meta-xfce/recipes-apps/xarchiver/xarchiver_0.5.2.bb +11 -5
similarity index 60%
rename from meta-xfce/recipes-apps/xarchiver/xarchiver_0.5.2.bb
rename to meta-xfce/recipes-apps/xarchiver/xarchiver_git.bb
index 6482adc..b616267 100644
@@ -1,22 +1,28 @@
 DESCRIPTION = "Lightweight, desktop independent GTK+ archive manager"
 HOMEPAGE = "http://xarchiver.sourceforge.net"
 SECTION = "x11"
-PR = "r3"
 
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
 DEPENDS = "gtk+ glib-2.0 xfce4-dev-tools-native"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${P}.tar.bz2"
-SRC_URI[md5sum] = "2bc7f06403cc6582dd4a8029ec9d038d"
-SRC_URI[sha256sum] = "cea932ff9d505969201fd502470bbebbc5726ab3d6765e142fc8295aa677ad2a"
+SRC_URI = "git://gitorious.org/xfce/xarchiver.git;protocol=git;branch=master"
+SRCREV = "e80e90528c9aab2fe36d9078b945b44c05cc20d3"
+PV = "0.5.3"
+S = "${WORKDIR}/git"
 
 inherit gettext pkgconfig autotools gtk-icon-cache
 
 # install tap files for thunar-archive-plugin in ${libdir}/thunar-archive-plugin
 EXTRA_OECONF += "--libexecdir=${libdir}"
 
+EXTRA_OECONF += "--enable-maintainer-mode"
+
+do_configure_prepend() {
+       NOCONFIGURE=yes ./autogen.sh
+}
+
 FILES_${PN} += "${libdir}/thunar-archive-plugin"
 
-RRECOMMENDS_${PN} = "lzop zip tar bzip2 unzip"
+RRECOMMENDS_${PN} = "lzop zip tar bzip2 unzip xz"
Signature · 1 line
1.7.4.4
#19 lore raw

PATCH 19/20 xfwm4: don't turn into unusablity after setting system time backwards

In reply to Andreas Müller
---
 ...-display-events-when-time-is-set-backward.patch |   33 ++++++++++++++++++++
 meta-xfce/recipes-xfce/xfwm4/xfwm4_4.10.1.bb       |    1 +
 2 files changed, 34 insertions(+), 0 deletions(-)
 create mode 100644 meta-xfce/recipes-xfce/xfwm4/files/0001-don-t-block-display-events-when-time-is-set-backward.patch
meta-xfce/recipes-xfce/xfwm4/files/0001-don-t-block-display-events-when-time-is-set-backward.patch new file +33 -0
new file mode 100644
index 0000000..08fd76b
@@ -0,0 +1,33 @@
+From e87977696f03b0c9f72884f8e3e3ec3248dfd80a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
+Date: Tue, 18 Jun 2013 12:46:42 +0200
+Subject: [PATCH] don't block display events when time is set backwards
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Upstream-Status: Submitted [1]
+
+[1] https://bugzilla.xfce.org/show_bug.cgi?id=10184
+
+Signed-off-by: Andreas Müller <[email protected]>
+---
+ src/display.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/display.c b/src/display.c
+index 00318d5..651bc7a 100644
+--- a/src/display.c
++++ b/src/display.c
+@@ -733,7 +733,7 @@ myDisplayUpdateCurrentTime (DisplayInfo *display, XEvent *ev)
+             break;
+     }
+ 
+-    if ((timestamp != (guint32) CurrentTime) && TIMESTAMP_IS_BEFORE(display->current_time, timestamp))
++    if ((timestamp != (guint32) CurrentTime) /*&& TIMESTAMP_IS_BEFORE(display->current_time, timestamp)*/)
+     {
+         display->current_time = timestamp;
+     }
+-- 
+1.7.6.5
+
meta-xfce/recipes-xfce/xfwm4/xfwm4_4.10.1.bb +1 -0
index 687339b..86ac20e 100644
@@ -8,6 +8,7 @@ inherit xfce update-alternatives
 
 SRC_URI[md5sum] = "10de50c79ed944cbb9c87741062c2a76"
 SRC_URI[sha256sum] = "380c44fba6eb779e34be0fe94f3726cfa131803014d6073c45aec8a1257fa740"
+SRC_URI += "file://0001-don-t-block-display-events-when-time-is-set-backward.patch"
 
 python populate_packages_prepend () {
     themedir = d.expand('${datadir}/themes')
Signature · 1 line
1.7.4.4
#20 lore raw

PATCH 20/20 xfce4-genmon-plugin: Allow timer period to be set at 250ms resolution

In reply to Andreas Müller
---
 ...-period-to-be-set-at-250ms-resolution.-Pa.patch |   36 ++++++++++++++++++++
 .../genmon/xfce4-genmon-plugin_3.4.0.bb            |    2 +
 2 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100644 meta-xfce/recipes-panel-plugins/genmon/files/0001-Allow-timer-period-to-be-set-at-250ms-resolution.-Pa.patch
meta-xfce/recipes-panel-plugins/genmon/files/0001-Allow-timer-period-to-be-set-at-250ms-resolution.-Pa.patch new file +36 -0
new file mode 100644
index 0000000..28c0eb1
@@ -0,0 +1,36 @@
+From 2d5fa307827a7b32af4f7b2ae0604f943e3a6e99 Mon Sep 17 00:00:00 2001
+From: John Lindgren <[email protected]>
+Date: Tue, 21 Aug 2012 19:33:45 -0400
+Subject: [PATCH] Allow timer period to be set at 250ms resolution.  Patch
+ from Miguel Guedes.  Closes: #9102.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Upstream-Status: Applied [1]
+
+[1] http://git.xfce.org/panel-plugins/xfce4-genmon-plugin/commit/?id=2d5fa307827a7b32af4f7b2ae0604f943e3a6e99
+
+Signed-off-by: Andreas Müller <[email protected]>
+---
+ panel-plugin/config_gui.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/panel-plugin/config_gui.c b/panel-plugin/config_gui.c
+index a4c891d..90e55c1 100644
+--- a/panel-plugin/config_gui.c
++++ b/panel-plugin/config_gui.c
+@@ -106,8 +106,8 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1,
+     gtk_widget_show (alignment1);
+     gtk_container_add (GTK_CONTAINER (eventbox1), alignment1);
+ 
+-    wSc_Period_adj = gtk_adjustment_new (15, 1, 60*60*24, 1, 1, 0);
+-    wSc_Period = gtk_spin_button_new (GTK_ADJUSTMENT (wSc_Period_adj), 1, 0);
++    wSc_Period_adj = gtk_adjustment_new (15, .25, 60*60*24, .25, 1, 0);
++    wSc_Period = gtk_spin_button_new (GTK_ADJUSTMENT (wSc_Period_adj), .25, 2);
+     gtk_widget_show (wSc_Period);
+     gtk_container_add (GTK_CONTAINER (alignment1), wSc_Period);
+     gtk_tooltips_set_tip (tooltips, wSc_Period,
+-- 
+1.7.6.5
+
meta-xfce/recipes-panel-plugins/genmon/xfce4-genmon-plugin_3.4.0.bb +2 -0
index e5ef85f..a13db62 100644
@@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=68ad62c64cc6c620126241fd429e68fe"
 
 inherit xfce-panel-plugin
 
+SRC_URI += "file://0001-Allow-timer-period-to-be-set-at-250ms-resolution.-Pa.patch"
+
 SRC_URI[md5sum] = "24108b339bb040ed360266f53a245224"
 SRC_URI[sha256sum] = "b0a5337b49c85623dc89f3c9e47c7374b1d466af2418033d2d6dfc57a9790387"
 
Signature · 1 line
1.7.4.4