From 4ede5b46093c84fe8a81ea911448b482b220853f67199612f2c035da131a3975 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 26 May 2014 15:47:36 +0000 Subject: [PATCH 1/5] . OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=642 --- ...map-Add-Lenovo-Enhanced-USB-Keyboard.patch | 36 ++++++ ...bind-mount-journal-on-top-of-a-non-e.patch | 45 ++++++++ ...eymap-Asus-EeePC-touchpad-toggle-key.patch | 28 +++++ ...ore-journal-directory-is-empty-check.patch | 30 +++++ ...der-failure-when-reading-drop-ins-fa.patch | 109 ++++++++++++++++++ ...handle-if-our-service-vanished-durin.patch | 30 +++++ systemd-mini.changes | 7 ++ systemd-mini.spec | 18 +++ systemd.changes | 7 ++ systemd.spec | 18 +++ 10 files changed, 328 insertions(+) create mode 100644 0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch create mode 100644 0001-nspawn-allow-to-bind-mount-journal-on-top-of-a-non-e.patch create mode 100644 0002-keymap-Asus-EeePC-touchpad-toggle-key.patch create mode 100644 0002-nspawn-restore-journal-directory-is-empty-check.patch create mode 100644 0003-core-never-consider-failure-when-reading-drop-ins-fa.patch create mode 100644 0004-socket-properly-handle-if-our-service-vanished-durin.patch diff --git a/0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch b/0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch new file mode 100644 index 0000000..09bd55e --- /dev/null +++ b/0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch @@ -0,0 +1,36 @@ +From d258d4967eb24122c2b1014d4e873f61b633f1d2 Mon Sep 17 00:00:00 2001 +From: Martin Pitt +Date: Sun, 25 May 2014 11:57:22 +0200 +Subject: [PATCH] keymap: Add Lenovo Enhanced USB Keyboard + +https://bugs.freedesktop.org/show_bug.cgi?id=77234 +--- + hwdb/60-keyboard.hwdb | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git hwdb/60-keyboard.hwdb hwdb/60-keyboard.hwdb +index 832c686..fe5b3ee 100644 +--- hwdb/60-keyboard.hwdb ++++ hwdb/60-keyboard.hwdb +@@ -579,6 +579,18 @@ keyboard:dmi:bvn*:bvr*:svnLENOVO*:pn*IdeaPad*Z370*:pvr* + keyboard:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*Lenovo*V480*:pvr* + KEYBOARD_KEY_f1=f21 + ++# enhanced USB keyboard ++keyboard:usb:v04B3p301B* ++ KEYBOARD_KEY_90001=prog1 # ThinkVantage ++ KEYBOARD_KEY_90002=screenlock ++ KEYBOARD_KEY_90003=file ++ KEYBOARD_KEY_90004=wordprocessor ++ KEYBOARD_KEY_90005=spreadsheet ++ KEYBOARD_KEY_90006=calc ++ KEYBOARD_KEY_90007=mail ++ KEYBOARD_KEY_90008=www ++ ++ + ########################################################### + # Logitech + ########################################################### +-- +1.7.9.2 + diff --git a/0001-nspawn-allow-to-bind-mount-journal-on-top-of-a-non-e.patch b/0001-nspawn-allow-to-bind-mount-journal-on-top-of-a-non-e.patch new file mode 100644 index 0000000..7d5b066 --- /dev/null +++ b/0001-nspawn-allow-to-bind-mount-journal-on-top-of-a-non-e.patch @@ -0,0 +1,45 @@ +From e6a4a517befe559adf6d1dbbadf425c3538849c9 Mon Sep 17 00:00:00 2001 +From: Djalal Harouni +Date: Fri, 11 Apr 2014 01:45:52 +0100 +Subject: [PATCH] nspawn: allow to bind mount journal on top of a non empty + container journal dentry + +Currently if nspawn was called with --link-journal=host or +--link-journal=auto and the right /var/log/journal/machine-id/ exists +then the bind mount the subdirectory into the container might fail due +to the ~/mycontainer/var/log/journal/machine-id/ of the container not +being empty. + +There is no reason to check if the container journal subdir is empty +since there will be a bind mount on top of it. The user asked for a bind +mount so give it. + +Note: a next call with --link-journal=guest may fail due to the +/var/log/journal/machine-id/ on the host not being empty. + +https://bugs.freedesktop.org/show_bug.cgi?id=76193 + +Reported-by: Tobias Hunger +--- + src/nspawn/nspawn.c | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git src/nspawn/nspawn.c src/nspawn/nspawn.c +index 9d9238f..ef84664 100644 +--- src/nspawn/nspawn.c ++++ src/nspawn/nspawn.c +@@ -1143,11 +1143,6 @@ static int setup_journal(const char *directory) { + } else if (access(p, F_OK) < 0) + return 0; + +- if (dir_is_empty(q) == 0) { +- log_error("%s not empty.", q); +- return -ENOTEMPTY; +- } +- + r = mkdir_p(q, 0755); + if (r < 0) { + log_error("Failed to create %s: %m", q); +-- +1.7.9.2 + diff --git a/0002-keymap-Asus-EeePC-touchpad-toggle-key.patch b/0002-keymap-Asus-EeePC-touchpad-toggle-key.patch new file mode 100644 index 0000000..e921c60 --- /dev/null +++ b/0002-keymap-Asus-EeePC-touchpad-toggle-key.patch @@ -0,0 +1,28 @@ +From e55edb22a71e67f01534d28f91c6aa27bba48fc1 Mon Sep 17 00:00:00 2001 +From: Martin Pitt +Date: Sun, 25 May 2014 12:16:35 +0200 +Subject: [PATCH] keymap: Asus EeePC touchpad toggle key + +Originally is KEY_TOUCHPAD_TOGGLE, but X.org can't handle the big key events, +so use the F21 convention. + +https://bugs.freedesktop.org/show_bug.cgi?id=72807 +--- + hwdb/60-keyboard.hwdb | 1 + + 1 file changed, 1 insertion(+) + +diff --git hwdb/60-keyboard.hwdb hwdb/60-keyboard.hwdb +index fe5b3ee..05e6a04 100644 +--- hwdb/60-keyboard.hwdb ++++ hwdb/60-keyboard.hwdb +@@ -138,6 +138,7 @@ keyboard:dmi:bvn*:bvr*:bd*:svnASUS:pn* + KEYBOARD_KEY_ef=mute + + keyboard:name:Asus WMI hotkeys:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:pvr* ++keyboard:name:Eee PC WMI hotkeys:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:pvr* + KEYBOARD_KEY_6b=f21 # Touchpad Toggle + + ########################################################### +-- +1.7.9.2 + diff --git a/0002-nspawn-restore-journal-directory-is-empty-check.patch b/0002-nspawn-restore-journal-directory-is-empty-check.patch new file mode 100644 index 0000000..c3d60bd --- /dev/null +++ b/0002-nspawn-restore-journal-directory-is-empty-check.patch @@ -0,0 +1,30 @@ +From cdb2b9d05a2f3d649f47bd2ba24eb3fe30b52e92 Mon Sep 17 00:00:00 2001 +From: Lennart Poettering +Date: Thu, 22 May 2014 15:19:46 +0900 +Subject: [PATCH] nspawn: restore journal directory is empty check + +This undoes part of commit e6a4a517befe559adf6d1dbbadf425c3538849c9. + +Instead of removing the error message about non-empty journal bind mount +directories, simply downgrade the message to a warning and proceed. +--- + src/nspawn/nspawn.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git src/nspawn/nspawn.c src/nspawn/nspawn.c +index ef84664..eb9c5e0 100644 +--- src/nspawn/nspawn.c ++++ src/nspawn/nspawn.c +@@ -1143,6 +1143,9 @@ static int setup_journal(const char *directory) { + } else if (access(p, F_OK) < 0) + return 0; + ++ if (dir_is_empty(q) == 0) ++ log_warning("%s is not empty, proceeding anyway.", q); ++ + r = mkdir_p(q, 0755); + if (r < 0) { + log_error("Failed to create %s: %m", q); +-- +1.7.9.2 + diff --git a/0003-core-never-consider-failure-when-reading-drop-ins-fa.patch b/0003-core-never-consider-failure-when-reading-drop-ins-fa.patch new file mode 100644 index 0000000..5ee22e2 --- /dev/null +++ b/0003-core-never-consider-failure-when-reading-drop-ins-fa.patch @@ -0,0 +1,109 @@ +From bcd816bd349241bcd9c0bfbfd9cfe7b034ba351b Mon Sep 17 00:00:00 2001 +From: Lennart Poettering +Date: Thu, 22 May 2014 16:49:12 +0900 +Subject: [PATCH] core: never consider failure when reading drop-ins fatal + +drop-ins don't carry the main configuration of a unit, hence read them +if we can't, complain if we cannot, but don't fail. +--- + src/core/load-dropin.c | 42 +++++++++++++----------------------------- + 1 file changed, 13 insertions(+), 29 deletions(-) + +diff --git src/core/load-dropin.c src/core/load-dropin.c +index 546e560..f2ffc97 100644 +--- src/core/load-dropin.c ++++ src/core/load-dropin.c +@@ -58,6 +58,7 @@ static int iterate_dir( + if (errno == ENOENT) + return 0; + ++ log_error("Failed to open directory %s: %m", path); + return -errno; + } + +@@ -101,7 +102,7 @@ static int process_dir( + char ***strv) { + + _cleanup_free_ char *path = NULL; +- int r; ++ int r, q; + + assert(u); + assert(unit_path); +@@ -112,11 +113,8 @@ static int process_dir( + if (!path) + return log_oom(); + +- if (!u->manager->unit_path_cache || set_get(u->manager->unit_path_cache, path)) { +- r = iterate_dir(u, path, dependency, strv); +- if (r < 0) +- return r; +- } ++ if (!u->manager->unit_path_cache || set_get(u->manager->unit_path_cache, path)) ++ iterate_dir(u, path, dependency, strv); + + if (u->instance) { + _cleanup_free_ char *template = NULL, *p = NULL; +@@ -130,11 +128,8 @@ static int process_dir( + if (!p) + return log_oom(); + +- if (!u->manager->unit_path_cache || set_get(u->manager->unit_path_cache, p)) { +- r = iterate_dir(u, p, dependency, strv); +- if (r < 0) +- return r; +- } ++ if (!u->manager->unit_path_cache || set_get(u->manager->unit_path_cache, p)) ++ iterate_dir(u, p, dependency, strv); + } + + return 0; +@@ -152,12 +147,8 @@ char **unit_find_dropin_paths(Unit *u) { + SET_FOREACH(t, u->names, i) { + char **p; + +- STRV_FOREACH(p, u->manager->lookup_paths.unit_path) { +- /* This loads the drop-in config snippets */ +- r = process_dir(u, *p, t, ".d", _UNIT_DEPENDENCY_INVALID, &strv); +- if (r < 0) +- return NULL; +- } ++ STRV_FOREACH(p, u->manager->lookup_paths.unit_path) ++ process_dir(u, *p, t, ".d", _UNIT_DEPENDENCY_INVALID, &strv); + } + + if (strv_isempty(strv)) +@@ -186,13 +177,8 @@ int unit_load_dropin(Unit *u) { + char **p; + + STRV_FOREACH(p, u->manager->lookup_paths.unit_path) { +- r = process_dir(u, *p, t, ".wants", UNIT_WANTS, NULL); +- if (r < 0) +- return r; +- +- r = process_dir(u, *p, t, ".requires", UNIT_REQUIRES, NULL); +- if (r < 0) +- return r; ++ process_dir(u, *p, t, ".wants", UNIT_WANTS, NULL); ++ process_dir(u, *p, t, ".requires", UNIT_REQUIRES, NULL); + } + } + +@@ -201,11 +187,9 @@ int unit_load_dropin(Unit *u) { + return 0; + + STRV_FOREACH(f, u->dropin_paths) { +- r = config_parse(u->id, *f, NULL, +- UNIT_VTABLE(u)->sections, config_item_perf_lookup, +- (void*) load_fragment_gperf_lookup, false, false, u); +- if (r < 0) +- return r; ++ config_parse(u->id, *f, NULL, ++ UNIT_VTABLE(u)->sections, config_item_perf_lookup, ++ (void*) load_fragment_gperf_lookup, false, false, u); + } + + u->dropin_mtime = now(CLOCK_REALTIME); +-- +1.7.9.2 + diff --git a/0004-socket-properly-handle-if-our-service-vanished-durin.patch b/0004-socket-properly-handle-if-our-service-vanished-durin.patch new file mode 100644 index 0000000..b119ad2 --- /dev/null +++ b/0004-socket-properly-handle-if-our-service-vanished-durin.patch @@ -0,0 +1,30 @@ +From 640ace4a8de907994a1b95f6d368c3e6a8fcf60f Mon Sep 17 00:00:00 2001 +From: Lennart Poettering +Date: Thu, 22 May 2014 16:56:21 +0900 +Subject: [PATCH] socket: properly handle if our service vanished during + runtime + +--- + src/core/socket.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git src/core/socket.c src/core/socket.c +index 05af8fe..aca20fd 100644 +--- src/core/socket.c ++++ src/core/socket.c +@@ -1503,6 +1503,12 @@ static void socket_enter_running(Socket *s, int cfd) { + } + + if (!pending) { ++ if (!UNIT_ISSET(s->service)) { ++ log_error_unit(UNIT(s)->id, "%s: service to activate vanished, refusing activation.", UNIT(s)->id); ++ r = -ENOENT; ++ goto fail; ++ } ++ + r = manager_add_job(UNIT(s)->manager, JOB_START, UNIT_DEREF(s->service), JOB_REPLACE, true, &error, NULL); + if (r < 0) + goto fail; +-- +1.7.9.2 + diff --git a/systemd-mini.changes b/systemd-mini.changes index 3d58685..fd15e75 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 26 15:25:28 UTC 2014 - werner@suse.de + +- Add upstream patches to update keyboard data base + 0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch + 0002-keymap-Asus-EeePC-touchpad-toggle-key.patch + ------------------------------------------------------------------- Wed May 21 19:23:32 UTC 2014 - coolo@suse.com diff --git a/systemd-mini.spec b/systemd-mini.spec index d75bed5..e793e8b 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -495,6 +495,18 @@ Patch251: 0001-journal-cleanup-up-error-handling-in-update_catalog.patch Patch252: 0002-journal-properly-detect-language-specified-in-line.patch # PATCHFIX-UPSTREAM added at 2014/05/21 Patch253: 0003-man-mention-XDG_CONFIG_HOME-in-systemd.unit.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch254: 0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch255: 0002-keymap-Asus-EeePC-touchpad-toggle-key.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch256: 0001-nspawn-allow-to-bind-mount-journal-on-top-of-a-non-e.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch257: 0002-nspawn-restore-journal-directory-is-empty-check.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch258: 0003-core-never-consider-failure-when-reading-drop-ins-fa.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch259: 0004-socket-properly-handle-if-our-service-vanished-durin.patch # UDEV PATCHES # ============ @@ -940,6 +952,12 @@ cp %{SOURCE7} m4/ %patch251 -p0 %patch252 -p0 %patch253 -p0 +%patch254 -p0 +%patch255 -p0 +%patch256 -p0 +%patch257 -p0 +%patch258 -p0 +%patch259 -p0 # udev patches %patch1001 -p1 diff --git a/systemd.changes b/systemd.changes index 3d58685..fd15e75 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 26 15:25:28 UTC 2014 - werner@suse.de + +- Add upstream patches to update keyboard data base + 0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch + 0002-keymap-Asus-EeePC-touchpad-toggle-key.patch + ------------------------------------------------------------------- Wed May 21 19:23:32 UTC 2014 - coolo@suse.com diff --git a/systemd.spec b/systemd.spec index 88a3b8a..ae98a8a 100644 --- a/systemd.spec +++ b/systemd.spec @@ -490,6 +490,18 @@ Patch251: 0001-journal-cleanup-up-error-handling-in-update_catalog.patch Patch252: 0002-journal-properly-detect-language-specified-in-line.patch # PATCHFIX-UPSTREAM added at 2014/05/21 Patch253: 0003-man-mention-XDG_CONFIG_HOME-in-systemd.unit.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch254: 0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch255: 0002-keymap-Asus-EeePC-touchpad-toggle-key.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch256: 0001-nspawn-allow-to-bind-mount-journal-on-top-of-a-non-e.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch257: 0002-nspawn-restore-journal-directory-is-empty-check.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch258: 0003-core-never-consider-failure-when-reading-drop-ins-fa.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch259: 0004-socket-properly-handle-if-our-service-vanished-durin.patch # UDEV PATCHES # ============ @@ -935,6 +947,12 @@ cp %{SOURCE7} m4/ %patch251 -p0 %patch252 -p0 %patch253 -p0 +%patch254 -p0 +%patch255 -p0 +%patch256 -p0 +%patch257 -p0 +%patch258 -p0 +%patch259 -p0 # udev patches %patch1001 -p1 From fd89a5da5d57723bcb7adb24043538bc970996db50d7c500114d3c94cba21ae8 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 26 May 2014 16:34:59 +0000 Subject: [PATCH 2/5] . OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=643 --- ...eyboard-also-hook-into-change-events.patch | 27 +++++++++++++++++++ systemd-mini.changes | 6 +++++ systemd-mini.spec | 3 +++ systemd.changes | 6 +++++ systemd.spec | 3 +++ 5 files changed, 45 insertions(+) create mode 100644 1020-udev-keyboard-also-hook-into-change-events.patch diff --git a/1020-udev-keyboard-also-hook-into-change-events.patch b/1020-udev-keyboard-also-hook-into-change-events.patch new file mode 100644 index 0000000..0d28597 --- /dev/null +++ b/1020-udev-keyboard-also-hook-into-change-events.patch @@ -0,0 +1,27 @@ +From 49804365ea1242456c9763058a59cf68479e07ea Mon Sep 17 00:00:00 2001 +From: Kay Sievers +Date: Mon, 26 May 2014 09:30:21 +0800 +Subject: [PATCH] udev: keyboard - also hook into "change" events + +Re-apply the keymaps when "udevadm trigger" is called. Hooking into +"add" only would just remove all keymap content from the udev database +instead of applying the new config. +--- + rules/60-keyboard.rules | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git rules/60-keyboard.rules rules/60-keyboard.rules +index 4e0f366..22f71e7 100644 +--- rules/60-keyboard.rules ++++ rules/60-keyboard.rules +@@ -1,6 +1,6 @@ + # do not edit this file, it will be overwritten on update + +-ACTION!="add", GOTO="keyboard_end" ++ACTION=="remove", GOTO="keyboard_end" + KERNEL!="event*", GOTO="keyboard_end" + ENV{ID_INPUT_KEY}=="", GOTO="keyboard_end" + +-- +1.7.9.2 + diff --git a/systemd-mini.changes b/systemd-mini.changes index fd15e75..b63fb35 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 26 16:34:10 UTC 2014 - werner@suse.de + +- Add upstream patch + 1020-udev-keyboard-also-hook-into-change-events.patch + ------------------------------------------------------------------- Mon May 26 15:25:28 UTC 2014 - werner@suse.de diff --git a/systemd-mini.spec b/systemd-mini.spec index e793e8b..59fd1fb 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -552,6 +552,8 @@ Patch1017: 1017-udev-serialize-synchronize-block-device-event-handli.patch Patch1018: 1018-udev-do-not-skip-the-execution-of-RUN-when-renaming-.patch # PATCH-FIX-UPSTREAM added at 2014/05/20 Patch1019: 1019-udev-avoid-use-of-uninitialized-err.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch1020: 1020-udev-keyboard-also-hook-into-change-events.patch %description Systemd is a system and service manager, compatible with SysV and LSB @@ -980,6 +982,7 @@ cp %{SOURCE7} m4/ %patch1017 -p0 %patch1018 -p0 %patch1019 -p0 +%patch1020 -p0 # ensure generate files are removed rm -f units/emergency.service diff --git a/systemd.changes b/systemd.changes index fd15e75..b63fb35 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 26 16:34:10 UTC 2014 - werner@suse.de + +- Add upstream patch + 1020-udev-keyboard-also-hook-into-change-events.patch + ------------------------------------------------------------------- Mon May 26 15:25:28 UTC 2014 - werner@suse.de diff --git a/systemd.spec b/systemd.spec index ae98a8a..32ab6ec 100644 --- a/systemd.spec +++ b/systemd.spec @@ -547,6 +547,8 @@ Patch1017: 1017-udev-serialize-synchronize-block-device-event-handli.patch Patch1018: 1018-udev-do-not-skip-the-execution-of-RUN-when-renaming-.patch # PATCH-FIX-UPSTREAM added at 2014/05/20 Patch1019: 1019-udev-avoid-use-of-uninitialized-err.patch +# PATCHFIX-UPSTREAM added at 2014/05/26 +Patch1020: 1020-udev-keyboard-also-hook-into-change-events.patch %description Systemd is a system and service manager, compatible with SysV and LSB @@ -975,6 +977,7 @@ cp %{SOURCE7} m4/ %patch1017 -p0 %patch1018 -p0 %patch1019 -p0 +%patch1020 -p0 # ensure generate files are removed rm -f units/emergency.service From 2119dda52a952a22fa33533735b8f2440b3c1ea2e8d4531bcfc98a7c0be08d48 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 27 May 2014 07:24:26 +0000 Subject: [PATCH 3/5] . OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=645 --- ...escape-unit-names-in-Install-section.patch | 26 +++++++++++ ...bus_open_transport_systemd-instead-o.patch | 46 +++++++++++++++++++ systemd-mini.changes | 7 +++ systemd-mini.spec | 6 +++ systemd.changes | 7 +++ systemd.spec | 6 +++ 6 files changed, 98 insertions(+) create mode 100644 0001-Do-not-unescape-unit-names-in-Install-section.patch create mode 100644 0002-analyze-run-use-bus_open_transport_systemd-instead-o.patch diff --git a/0001-Do-not-unescape-unit-names-in-Install-section.patch b/0001-Do-not-unescape-unit-names-in-Install-section.patch new file mode 100644 index 0000000..77b9f3d --- /dev/null +++ b/0001-Do-not-unescape-unit-names-in-Install-section.patch @@ -0,0 +1,26 @@ +From 000f6e5667eb4f73e137cbd0d7395a9f9db7728a Mon Sep 17 00:00:00 2001 +From: Michal Sekletar +Date: Mon, 26 May 2014 20:09:45 +0200 +Subject: [PATCH] Do not unescape unit names in [Install] section + +https://bugs.freedesktop.org/show_bug.cgi?id=49316 +--- + src/shared/conf-parser.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git src/shared/conf-parser.c src/shared/conf-parser.c +index 77a172e..158e9ef 100644 +--- src/shared/conf-parser.c ++++ src/shared/conf-parser.c +@@ -688,7 +688,7 @@ int config_parse_strv(const char *unit, + FOREACH_WORD_QUOTED(w, l, rvalue, state) { + char *n; + +- n = cunescape_length(w, l); ++ n = strndup(w, l); + if (!n) + return log_oom(); + +-- +1.7.9.2 + diff --git a/0002-analyze-run-use-bus_open_transport_systemd-instead-o.patch b/0002-analyze-run-use-bus_open_transport_systemd-instead-o.patch new file mode 100644 index 0000000..c18fcb9 --- /dev/null +++ b/0002-analyze-run-use-bus_open_transport_systemd-instead-o.patch @@ -0,0 +1,46 @@ +From 1f89214e6e990a0b552f6854f87f8514ca384956 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Thomas=20B=C3=A4chler?= +Date: Fri, 21 Feb 2014 11:55:24 +0100 +Subject: [PATCH] analyze/run: use bus_open_transport_systemd instead of + bus_open_transport + +Both systemd-analyze and systemd-run only access org.freedesktop.systemd1 +on the bus. This patch allows using systemd-run --user and systemd-analyze +--user even if the user session's bus is not properly integrated with the +systemd user unit. + +https://bugs.freedesktop.org/show_bug.cgi?id=79252 and other reports... +--- + src/analyze/analyze.c | 2 +- + src/run/run.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git src/analyze/analyze.c src/analyze/analyze.c +index 4c5fcfe..0a4190c 100644 +--- src/analyze/analyze.c ++++ src/analyze/analyze.c +@@ -1335,7 +1335,7 @@ int main(int argc, char *argv[]) { + if (r <= 0) + goto finish; + +- r = bus_open_transport(arg_transport, arg_host, arg_user, &bus); ++ r = bus_open_transport_systemd(arg_transport, arg_host, arg_user, &bus); + if (r < 0) { + log_error("Failed to create bus connection: %s", strerror(-r)); + goto finish; +diff --git src/run/run.c src/run/run.c +index e4c695c..9d5527b 100644 +--- src/run/run.c ++++ src/run/run.c +@@ -593,7 +593,7 @@ int main(int argc, char* argv[]) { + arg_description = description; + } + +- r = bus_open_transport(arg_transport, arg_host, arg_user, &bus); ++ r = bus_open_transport_systemd(arg_transport, arg_host, arg_user, &bus); + if (r < 0) { + log_error("Failed to create bus connection: %s", strerror(-r)); + goto finish; +-- +1.7.9.2 + diff --git a/systemd-mini.changes b/systemd-mini.changes index b63fb35..782735e 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 27 07:23:47 UTC 2014 - werner@suse.de + +- Add upstream patches + 0001-Do-not-unescape-unit-names-in-Install-section.patch + 0002-analyze-run-use-bus_open_transport_systemd-instead-o.patch + ------------------------------------------------------------------- Mon May 26 16:34:10 UTC 2014 - werner@suse.de diff --git a/systemd-mini.spec b/systemd-mini.spec index 59fd1fb..6c0acde 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -507,6 +507,10 @@ Patch257: 0002-nspawn-restore-journal-directory-is-empty-check.patch Patch258: 0003-core-never-consider-failure-when-reading-drop-ins-fa.patch # PATCHFIX-UPSTREAM added at 2014/05/26 Patch259: 0004-socket-properly-handle-if-our-service-vanished-durin.patch +# PATCHFIX-UPSTREAM added at 2014/05/27 +Patch260: 0001-Do-not-unescape-unit-names-in-Install-section.patch +# PATCHFIX-UPSTREAM added at 2014/05/27 +Patch261: 0002-analyze-run-use-bus_open_transport_systemd-instead-o.patch # UDEV PATCHES # ============ @@ -960,6 +964,8 @@ cp %{SOURCE7} m4/ %patch257 -p0 %patch258 -p0 %patch259 -p0 +%patch260 -p0 +%patch261 -p0 # udev patches %patch1001 -p1 diff --git a/systemd.changes b/systemd.changes index b63fb35..782735e 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 27 07:23:47 UTC 2014 - werner@suse.de + +- Add upstream patches + 0001-Do-not-unescape-unit-names-in-Install-section.patch + 0002-analyze-run-use-bus_open_transport_systemd-instead-o.patch + ------------------------------------------------------------------- Mon May 26 16:34:10 UTC 2014 - werner@suse.de diff --git a/systemd.spec b/systemd.spec index 32ab6ec..f7024fa 100644 --- a/systemd.spec +++ b/systemd.spec @@ -502,6 +502,10 @@ Patch257: 0002-nspawn-restore-journal-directory-is-empty-check.patch Patch258: 0003-core-never-consider-failure-when-reading-drop-ins-fa.patch # PATCHFIX-UPSTREAM added at 2014/05/26 Patch259: 0004-socket-properly-handle-if-our-service-vanished-durin.patch +# PATCHFIX-UPSTREAM added at 2014/05/27 +Patch260: 0001-Do-not-unescape-unit-names-in-Install-section.patch +# PATCHFIX-UPSTREAM added at 2014/05/27 +Patch261: 0002-analyze-run-use-bus_open_transport_systemd-instead-o.patch # UDEV PATCHES # ============ @@ -955,6 +959,8 @@ cp %{SOURCE7} m4/ %patch257 -p0 %patch258 -p0 %patch259 -p0 +%patch260 -p0 +%patch261 -p0 # udev patches %patch1001 -p1 From ebab7028eb43796be54b616a9276ef46a59eeb137391fe450a63cd35d57134dc Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 27 May 2014 07:37:58 +0000 Subject: [PATCH 4/5] . OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=646 --- ...not-unescape-unit-names-in-Install-section.patch | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/0001-Do-not-unescape-unit-names-in-Install-section.patch b/0001-Do-not-unescape-unit-names-in-Install-section.patch index 77b9f3d..18e4aaa 100644 --- a/0001-Do-not-unescape-unit-names-in-Install-section.patch +++ b/0001-Do-not-unescape-unit-names-in-Install-section.patch @@ -1,4 +1,4 @@ -From 000f6e5667eb4f73e137cbd0d7395a9f9db7728a Mon Sep 17 00:00:00 2001 +Based on 000f6e5667eb4f73e137cbd0d7395a9f9db7728a Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Mon, 26 May 2014 20:09:45 +0200 Subject: [PATCH] Do not unescape unit names in [Install] section @@ -8,19 +8,14 @@ https://bugs.freedesktop.org/show_bug.cgi?id=49316 src/shared/conf-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git src/shared/conf-parser.c src/shared/conf-parser.c -index 77a172e..158e9ef 100644 --- src/shared/conf-parser.c -+++ src/shared/conf-parser.c -@@ -688,7 +688,7 @@ int config_parse_strv(const char *unit, ++++ src/shared/conf-parser.c 2014-05-27 07:36:20.478236631 +0000 +@@ -723,7 +723,7 @@ int config_parse_strv(const char *unit, FOREACH_WORD_QUOTED(w, l, rvalue, state) { - char *n; + _cleanup_free_ char *n; - n = cunescape_length(w, l); + n = strndup(w, l); if (!n) return log_oom(); --- -1.7.9.2 - From 72364e616eb8958ff076eee8378219619f9f9f8b32b1ebd78d83133cb62638cf Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 27 May 2014 09:46:25 +0000 Subject: [PATCH 5/5] . OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=647 --- systemd-mini.changes | 5 +++++ systemd.changes | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/systemd-mini.changes b/systemd-mini.changes index 782735e..70662ea 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -17,6 +17,11 @@ Mon May 26 15:25:28 UTC 2014 - werner@suse.de - Add upstream patches to update keyboard data base 0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch 0002-keymap-Asus-EeePC-touchpad-toggle-key.patch +- Add upstream patches + 0001-nspawn-allow-to-bind-mount-journal-on-top-of-a-non-e.patch + 0002-nspawn-restore-journal-directory-is-empty-check.patch + 0003-core-never-consider-failure-when-reading-drop-ins-fa.patch + 0004-socket-properly-handle-if-our-service-vanished-durin.patch ------------------------------------------------------------------- Wed May 21 19:23:32 UTC 2014 - coolo@suse.com diff --git a/systemd.changes b/systemd.changes index 782735e..70662ea 100644 --- a/systemd.changes +++ b/systemd.changes @@ -17,6 +17,11 @@ Mon May 26 15:25:28 UTC 2014 - werner@suse.de - Add upstream patches to update keyboard data base 0001-keymap-Add-Lenovo-Enhanced-USB-Keyboard.patch 0002-keymap-Asus-EeePC-touchpad-toggle-key.patch +- Add upstream patches + 0001-nspawn-allow-to-bind-mount-journal-on-top-of-a-non-e.patch + 0002-nspawn-restore-journal-directory-is-empty-check.patch + 0003-core-never-consider-failure-when-reading-drop-ins-fa.patch + 0004-socket-properly-handle-if-our-service-vanished-durin.patch ------------------------------------------------------------------- Wed May 21 19:23:32 UTC 2014 - coolo@suse.com