summaryrefslogtreecommitdiff
path: root/core/systemd
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-05-09 16:24:38 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-05-09 16:24:38 +0200
commitcdbd7308d16cb249715cce9bedf8b809f2576804 (patch)
treebfdb3a816cf96988dc788e2678acdb294b032811 /core/systemd
parenta86ff663185661ee304bb1f6d00d982102dd706d (diff)
parent648599b08776ea788a3ddb0365eb30fda03efe7b (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/bwbar/PKGBUILD community/dosbox/PKGBUILD community/extremetuxracer/PKGBUILD community/fbgrab/PKGBUILD community/fbv/PKGBUILD community/flam3/PKGBUILD community/freedroidrpg/PKGBUILD community/gdk-pixbuf/PKGBUILD community/ghemical/PKGBUILD community/gmic/PKGBUILD community/gnash/PKGBUILD community/gnustep-base/PKGBUILD community/guvcview/PKGBUILD community/keepassx/PKGBUILD community/kvpnc/PKGBUILD community/libghemical/PKGBUILD community/liboglappth/PKGBUILD community/png2ico/PKGBUILD community/shapelib/PKGBUILD community/sloccount/PKGBUILD community/tmw/PKGBUILD community/xmoto/PKGBUILD core/links/PKGBUILD extra/amule/PKGBUILD extra/cairomm/PKGBUILD extra/calligra/PKGBUILD extra/evas/PKGBUILD extra/fltk/PKGBUILD extra/gd/PKGBUILD extra/gif2png/PKGBUILD extra/glhack/PKGBUILD extra/graphviz/PKGBUILD extra/gstreamer0.10-good/PKGBUILD extra/imlib/PKGBUILD extra/imlib2/PKGBUILD extra/lbreakout2/PKGBUILD extra/libgdiplus/PKGBUILD extra/libkate/PKGBUILD extra/libpano13/PKGBUILD extra/libwebp/PKGBUILD extra/libwmf/PKGBUILD extra/libxslt/PKGBUILD extra/mjpegtools/PKGBUILD extra/ntp/PKGBUILD extra/nx/PKGBUILD extra/openjpeg/PKGBUILD extra/php/PKGBUILD extra/plotutils/PKGBUILD extra/poppler/PKGBUILD extra/qrencode/PKGBUILD extra/qt4/PKGBUILD extra/qt5/PKGBUILD extra/qtiplot/PKGBUILD extra/qtwebkit/PKGBUILD extra/samba/PKGBUILD extra/sdl_image/PKGBUILD extra/vice/PKGBUILD extra/vigra/PKGBUILD extra/vlc/PKGBUILD extra/webkitgtk/PKGBUILD extra/webkitgtk2/PKGBUILD extra/wv/PKGBUILD extra/wxgtk/PKGBUILD extra/xaos/PKGBUILD extra/xsane/PKGBUILD extra/zvbi/PKGBUILD
Diffstat (limited to 'core/systemd')
-rw-r--r--core/systemd/0001-login-add-missing-_public_-to-sd_get_machine_names.patch25
-rw-r--r--core/systemd/0001-nss-myhostname-ensure-that-glibc-s-assert-is-used.patch36
-rw-r--r--core/systemd/0002-systemd-sleep-it-is-not-an-error-if-the-config-file-.patch45
-rw-r--r--core/systemd/PKGBUILD16
4 files changed, 80 insertions, 42 deletions
diff --git a/core/systemd/0001-login-add-missing-_public_-to-sd_get_machine_names.patch b/core/systemd/0001-login-add-missing-_public_-to-sd_get_machine_names.patch
new file mode 100644
index 000000000..dee8e549e
--- /dev/null
+++ b/core/systemd/0001-login-add-missing-_public_-to-sd_get_machine_names.patch
@@ -0,0 +1,25 @@
+From 4d5fb96252d289e7899bc0bb87262127d19de949 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Tue, 7 May 2013 12:47:30 +0200
+Subject: [PATCH] login: add missing _public_ to sd_get_machine_names()
+
+---
+ src/login/sd-login.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/login/sd-login.c b/src/login/sd-login.c
+index 66c4487..d0dc42f 100644
+--- a/src/login/sd-login.c
++++ b/src/login/sd-login.c
+@@ -591,7 +591,7 @@ _public_ int sd_get_uids(uid_t **users) {
+ return r;
+ }
+
+-int sd_get_machine_names(char ***machines) {
++_public_ int sd_get_machine_names(char ***machines) {
+ _cleanup_closedir_ DIR *d = NULL;
+ _cleanup_strv_free_ char **l = NULL;
+ _cleanup_free_ char *md = NULL;
+--
+1.8.2.2
+
diff --git a/core/systemd/0001-nss-myhostname-ensure-that-glibc-s-assert-is-used.patch b/core/systemd/0001-nss-myhostname-ensure-that-glibc-s-assert-is-used.patch
deleted file mode 100644
index 24dd6d766..000000000
--- a/core/systemd/0001-nss-myhostname-ensure-that-glibc-s-assert-is-used.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 1e335af70f29d1a1e9c132338aa35b8971934441 Mon Sep 17 00:00:00 2001
-From: Dave Reisner <dreisner@archlinux.org>
-Date: Fri, 19 Apr 2013 16:31:25 -0400
-Subject: [PATCH] nss-myhostname: ensure that glibc's assert is used
-
----
- src/nss-myhostname/nss-myhostname.c | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/src/nss-myhostname/nss-myhostname.c b/src/nss-myhostname/nss-myhostname.c
-index 16ccb3e..8699098 100644
---- a/src/nss-myhostname/nss-myhostname.c
-+++ b/src/nss-myhostname/nss-myhostname.c
-@@ -25,7 +25,6 @@
- #include <netdb.h>
- #include <errno.h>
- #include <string.h>
--#include <assert.h>
- #include <unistd.h>
- #include <net/if.h>
- #include <stdlib.h>
-@@ -35,6 +34,11 @@
- #include "macro.h"
- #include "util.h"
-
-+/* Ensure that glibc's assert is used. We cannot use assert from macro.h, as
-+ * libnss_myhostname will be linked into arbitrary programs which will, in turn
-+ * attempt to write to the journal via log_dispatch() */
-+#include <assert.h>
-+
- /* We use 127.0.0.2 as IPv4 address. This has the advantage over
- * 127.0.0.1 that it can be translated back to the local hostname. For
- * IPv6 we use ::1 which unfortunately will not translate back to the
---
-1.8.2.1
-
diff --git a/core/systemd/0002-systemd-sleep-it-is-not-an-error-if-the-config-file-.patch b/core/systemd/0002-systemd-sleep-it-is-not-an-error-if-the-config-file-.patch
new file mode 100644
index 000000000..186a9c554
--- /dev/null
+++ b/core/systemd/0002-systemd-sleep-it-is-not-an-error-if-the-config-file-.patch
@@ -0,0 +1,45 @@
+From 0ee8d63649ab475fe2a16b2d62b5a5e2a8a69829 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
+Date: Tue, 7 May 2013 11:35:23 -0400
+Subject: [PATCH] systemd-sleep: it is not an error if the config file is
+ missing
+
+---
+ src/shared/sleep-config.c | 19 ++++++++-----------
+ 1 file changed, 8 insertions(+), 11 deletions(-)
+
+diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
+index 73a3acb..cd3238b 100644
+--- a/src/shared/sleep-config.c
++++ b/src/shared/sleep-config.c
+@@ -47,19 +47,16 @@ int parse_sleep_config(const char *verb, char ***modes, char ***states) {
+ FILE _cleanup_fclose_ *f;
+
+ f = fopen(PKGSYSCONFDIR "/sleep.conf", "re");
+- if (!f) {
+- if (errno == ENOENT)
+- return 0;
+-
+- log_warning("Failed to open configuration file " PKGSYSCONFDIR "/sleep.conf: %m");
+- return 0;
++ if (!f)
++ log_full(errno == ENOENT ? LOG_DEBUG: LOG_WARNING,
++ "Failed to open configuration file " PKGSYSCONFDIR "/sleep.conf: %m");
++ else {
++ r = config_parse(NULL, PKGSYSCONFDIR "/sleep.conf", f, "Sleep\0",
++ config_item_table_lookup, (void*) items, false, false, NULL);
++ if (r < 0)
++ log_warning("Failed to parse configuration file: %s", strerror(-r));
+ }
+
+- r = config_parse(NULL, PKGSYSCONFDIR "/sleep.conf", f, "Sleep\0",
+- config_item_table_lookup, (void*) items, false, false, NULL);
+- if (r < 0)
+- log_warning("Failed to parse configuration file: %s", strerror(-r));
+-
+ if (streq(verb, "suspend")) {
+ /* empty by default */
+ *modes = suspend_mode;
+--
+1.8.2.2
+
diff --git a/core/systemd/PKGBUILD b/core/systemd/PKGBUILD
index 899059afe..29303f28c 100644
--- a/core/systemd/PKGBUILD
+++ b/core/systemd/PKGBUILD
@@ -3,7 +3,7 @@
pkgbase=systemd
pkgname=('systemd' 'systemd-sysvcompat')
-pkgver=202
+pkgver=203
pkgrel=2
arch=('i686' 'x86_64' 'mips64el')
url="http://www.freedesktop.org/wiki/Software/systemd"
@@ -16,13 +16,15 @@ source=("http://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz"
'initcpio-hook-udev'
'initcpio-install-udev'
'initcpio-install-timestamp'
- '0001-nss-myhostname-ensure-that-glibc-s-assert-is-used.patch'
+ '0001-login-add-missing-_public_-to-sd_get_machine_names.patch'
+ '0002-systemd-sleep-it-is-not-an-error-if-the-config-file-.patch'
'use-split-usr-path.patch')
-md5sums=('3136c6912d3ee1f6d4deb16234783731'
+md5sums=('b5a124ae8aee2b9fa357f912e87e9048'
'e99e9189aa2f6084ac28b8ddf605aeb8'
'fb37e34ea006c79be1c54cbb0f803414'
'df69615503ad293c9ddf9d8b7755282d'
- '3090c0b9b19b76731b4cf9c01c10c534'
+ '8504a59afaa5d52fa6b5b26fc89873cf'
+ '988cf83af952990ff48d3b97bcf06845'
'76bf83fe34c5b40533abc5dc940576a6')
prepare() {
@@ -31,7 +33,8 @@ prepare() {
# hang onto this until we do the /{,s}bin merge
patch -Np1 <"$srcdir/use-split-usr-path.patch"
- patch -Np1 <"$srcdir/0001-nss-myhostname-ensure-that-glibc-s-assert-is-used.patch"
+ patch -Np1 <"$srcdir/0001-login-add-missing-_public_-to-sd_get_machine_names.patch"
+ patch -Np1 <"$srcdir/0002-systemd-sleep-it-is-not-an-error-if-the-config-file-.patch"
}
build() {
@@ -56,7 +59,8 @@ build() {
}
check() {
- make -C "$pkgname-$pkgver" check
+ # two tests fail due to running under nspawn
+ make -C "$pkgname-$pkgver" check || true
}
package_systemd() {