From b2fe083e3327e83c17e96f35498d97e4cdde8af3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 7 May 2013 20:07:44 +0200 Subject: [PATCH] systemd: add 2 patches from git master to fix regressions. --- srcpkgs/libudev/patches | 1 + srcpkgs/libudev/template | 2 +- ...d63649ab475fe2a16b2d62b5a5e2a8a69829.patch | 40 +++++++++++++++++++ ...b96252d289e7899bc0bb87262127d19de949.patch | 21 ++++++++++ srcpkgs/systemd/template | 2 +- 5 files changed, 64 insertions(+), 2 deletions(-) create mode 120000 srcpkgs/libudev/patches create mode 100644 srcpkgs/systemd/patches/0ee8d63649ab475fe2a16b2d62b5a5e2a8a69829.patch create mode 100644 srcpkgs/systemd/patches/4d5fb96252d289e7899bc0bb87262127d19de949.patch diff --git a/srcpkgs/libudev/patches b/srcpkgs/libudev/patches new file mode 120000 index 0000000000..6cd6fe78dd --- /dev/null +++ b/srcpkgs/libudev/patches @@ -0,0 +1 @@ +../systemd/patches \ No newline at end of file diff --git a/srcpkgs/libudev/template b/srcpkgs/libudev/template index 1bfd2a6788..d8cc56ec44 100644 --- a/srcpkgs/libudev/template +++ b/srcpkgs/libudev/template @@ -1,7 +1,7 @@ # Template file for 'libudev' pkgname=libudev version=203 -revision=1 +revision=2 wrksrc="systemd-${version}" build_style=gnu-configure configure_args="--libexecdir=/usr/lib --disable-selinux diff --git a/srcpkgs/systemd/patches/0ee8d63649ab475fe2a16b2d62b5a5e2a8a69829.patch b/srcpkgs/systemd/patches/0ee8d63649ab475fe2a16b2d62b5a5e2a8a69829.patch new file mode 100644 index 0000000000..0fca63eb7c --- /dev/null +++ b/srcpkgs/systemd/patches/0ee8d63649ab475fe2a16b2d62b5a5e2a8a69829.patch @@ -0,0 +1,40 @@ +From 0ee8d63649ab475fe2a16b2d62b5a5e2a8a69829 Mon Sep 17 00:00:00 2001 +From: Zbigniew Jędrzejewski-Szmek +Date: Tue, 07 May 2013 15:35:23 +0000 +Subject: systemd-sleep: it is not an error if the config file is missing + +--- +diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c +index 73a3acb..cd3238b 100644 +--- src/shared/sleep-config.c ++++ 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; +-- +cgit v0.9.0.2-2-gbebe diff --git a/srcpkgs/systemd/patches/4d5fb96252d289e7899bc0bb87262127d19de949.patch b/srcpkgs/systemd/patches/4d5fb96252d289e7899bc0bb87262127d19de949.patch new file mode 100644 index 0000000000..c25542e3f4 --- /dev/null +++ b/srcpkgs/systemd/patches/4d5fb96252d289e7899bc0bb87262127d19de949.patch @@ -0,0 +1,21 @@ +From 4d5fb96252d289e7899bc0bb87262127d19de949 Mon Sep 17 00:00:00 2001 +From: Lennart Poettering +Date: Tue, 07 May 2013 10:47:30 +0000 +Subject: login: add missing _public_ to sd_get_machine_names() + +--- +diff --git a/src/login/sd-login.c b/src/login/sd-login.c +index 66c4487..d0dc42f 100644 +--- src/login/sd-login.c ++++ 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; +-- +cgit v0.9.0.2-2-gbebe diff --git a/srcpkgs/systemd/template b/srcpkgs/systemd/template index 4bf2994ffa..9303e5ab68 100644 --- a/srcpkgs/systemd/template +++ b/srcpkgs/systemd/template @@ -1,7 +1,7 @@ # Template file for 'systemd' pkgname=systemd version=203 -revision=1 +revision=2 short_desc="A system and service manager for Linux" maintainer="Juan RP " homepage="http://www.freedesktop.org/wiki/Software/systemd"