Hello community, here is the log from the commit of package systemd for openSUSE:Factory checked in at 2012-02-16 16:24:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/systemd (Old) and /work/SRC/openSUSE:Factory/.systemd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "systemd", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/systemd/systemd-gtk.changes 2012-02-10 17:20:22.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.systemd.new/systemd-gtk.changes 2012-02-16 16:24:06.000000000 +0100 @@ -1,0 +2,39 @@ +Mon Feb 13 12:11:17 UTC 2012 - fcro...@suse.com + +- Update to version 42: + + Various bug fixes + + Watchdog support for supervising services is now usable + + Service start rate limiting is now configurable and can be + turned off per service. + + New CanReboot(), CanPowerOff() bus calls in systemd-logind +- Dropped fix-kmod-build.patch, fix-message-after-chkconfig.patch, + is-enabled-non-existing-service.patch (merged upstream) +- Add libxslt1 / docbook-xsl-stylesheets as BuildRequires for + manpage generation + +------------------------------------------------------------------- +Thu Feb 9 16:19:38 UTC 2012 - fcro...@suse.com + +- Update to version 41: + + systemd binary is now installed in /lib/systemd (symlink for + /bin/systemd is available now) + + kernel modules are now loaded through libkmod + + Watchdog support is now useful (not complete) + + new kernel command line available to set system wide + environment variable: systemd.setenv + + journald capabilities set is now limited + + SIGPIPE is ignored by default. This can be disabled with + IgnoreSIGPIPE=no in unit files. +- Add fix-kmod-build.patch: fix build with libkmod +- Drop remote-fs-after-network.patch (merged upstream) +- Add dm-lvm-after-local-fs-pre-target.patch: ensure md / lvm + /dmraid is started before mounting partitions, if fsck was + disabled for them (bnc#733283). +- Update lsb-header patch to correctly disable heuristic if + X-Systemd-RemainAfterExit is specified (whatever its value) +- Add fix-message-after-chkconfig.patch: don't complain if only + sysv services are called in systemctl. +- Add is-enabled-non-existing-service.patch: fix error message when + running is-enabled on non-existing service. + +------------------------------------------------------------------- systemd.changes: same change Old: ---- remote-fs-after-network.patch systemd-40.tar.xz New: ---- dm-lvm-after-local-fs-pre-target.patch systemd-42.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ systemd-gtk.spec ++++++ --- /var/tmp/diff_new_pack.LlMnZY/_old 2012-02-16 16:24:08.000000000 +0100 +++ /var/tmp/diff_new_pack.LlMnZY/_new 2012-02-16 16:24:08.000000000 +0100 @@ -16,10 +16,9 @@ # - Name: systemd-gtk Url: http://www.freedesktop.org/wiki/Software/systemd -Version: 40 +Version: 42 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: audit-devel ++++++ systemd.spec ++++++ --- /var/tmp/diff_new_pack.LlMnZY/_old 2012-02-16 16:24:08.000000000 +0100 +++ /var/tmp/diff_new_pack.LlMnZY/_new 2012-02-16 16:24:08.000000000 +0100 @@ -22,7 +22,7 @@ Name: systemd Url: http://www.freedesktop.org/wiki/Software/systemd -Version: 40 +Version: 42 Release: 0 Summary: A System and Session Manager License: GPL-2.0+ @@ -30,16 +30,19 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: audit-devel BuildRequires: dbus-1-devel +BuildRequires: docbook-xsl-stylesheets BuildRequires: fdupes BuildRequires: gperf BuildRequires: intltool BuildRequires: libacl-devel BuildRequires: libcap-devel BuildRequires: libcryptsetup-devel +BuildRequires: libkmod-devel BuildRequires: libselinux-devel BuildRequires: libsepol-devel BuildRequires: libtool BuildRequires: libudev-devel +BuildRequires: libxslt1 BuildRequires: pam-devel BuildRequires: pkg-config BuildRequires: tcpd-devel @@ -84,13 +87,13 @@ Patch31: lock-opensuse.patch Patch33: crypt-loop-file.patch Patch36: sysctl-modules.patch +Patch38: dm-lvm-after-local-fs-pre-target.patch # Upstream First - Policy: # Never add any patches to this package without the upstream commit id # in the patch. Any patches added here without a very good reason to make # an exception will be silently removed with the next version update. Patch21: no-tmpfs-fsck.patch -Patch37: remote-fs-after-network.patch %description Systemd is a system and service manager, compatible with SysV and LSB @@ -151,7 +154,7 @@ %patch31 -p1 %patch33 -p1 %patch36 -p1 -%patch37 -p1 +%patch38 -p1 %build autoreconf -fiv @@ -164,6 +167,7 @@ --docdir=%{_docdir}/systemd \ --with-rootprefix= \ --with-pamlibdir=/%{_lib}/security \ + --enable-split-usr \ --disable-gtk \ CFLAGS="%{optflags}" make %{?_smp_mflags} @@ -189,7 +193,8 @@ ln -s ../bootsplash-quit.service %{buildroot}/lib/systemd/system/multi-user.target.wants/ ln -s ../bootsplash-shutdown.service %{buildroot}/lib/systemd/system/shutdown.target.wants/ ln -s ../bootsplash-shutdown.service %{buildroot}/lib/systemd/system/reboot.target.wants/ -ln -s ../bin/systemd %{buildroot}/sbin/init +ln -s ../lib/systemd/systemd %{buildroot}/bin/systemd +ln -s ../lib/systemd/systemd %{buildroot}/sbin/init ln -s ../bin/systemctl %{buildroot}/sbin/reboot ln -s ../bin/systemctl %{buildroot}/sbin/halt ln -s ../bin/systemctl %{buildroot}/sbin/shutdown @@ -388,6 +393,7 @@ %dir /lib/systemd /lib/systemd/system /lib/systemd/system-generators +/lib/systemd/systemd %dir /usr/lib/systemd /usr/lib/systemd/user %dir %{_sysconfdir}/systemd ++++++ 0001-service-Fix-dependencies-added-when-parsing-insserv..patch ++++++ --- /var/tmp/diff_new_pack.LlMnZY/_old 2012-02-16 16:24:08.000000000 +0100 +++ /var/tmp/diff_new_pack.LlMnZY/_new 2012-02-16 16:24:08.000000000 +0100 @@ -7,23 +7,21 @@ src/service.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) -Index: systemd-40/src/service.c +Index: systemd-41/src/service.c =================================================================== ---- systemd-40.orig/src/service.c -+++ systemd-40/src/service.c -@@ -3162,23 +3162,32 @@ static void sysv_facility_in_insserv_con +--- systemd-41.orig/src/service.c ++++ systemd-41/src/service.c +@@ -3210,23 +3210,30 @@ static void sysv_facility_in_insserv_con Unit *u; if (sysv_translate_facility(parsed[0], NULL, &facility) < 0) continue; + if (streq(facility, SPECIAL_REMOTE_FS_TARGET)) { + /* insert also a Wants dependency from remote-fs-pre on remote-fs */ + u = manager_get_unit(mgr, SPECIAL_REMOTE_FS_TARGET); -+ unit_add_dependency_by_name(u, UNIT_WANTS, -+ SPECIAL_REMOTE_FS_PRE_TARGET, NULL, true); ++ unit_add_dependency_by_name(u, UNIT_WANTS, SPECIAL_REMOTE_FS_PRE_TARGET, NULL, true); + free (facility); + facility=strdup(SPECIAL_REMOTE_FS_PRE_TARGET); + } -+ if ((u = manager_get_unit(mgr, facility)) && (u->type == UNIT_TARGET)) { - UnitDependency e; char *dep = NULL, *name, **j; ++++++ 0001-service-flags-sysv-service-with-detected-pid-as-Rema.patch ++++++ --- /var/tmp/diff_new_pack.LlMnZY/_old 2012-02-16 16:24:08.000000000 +0100 +++ /var/tmp/diff_new_pack.LlMnZY/_new 2012-02-16 16:24:08.000000000 +0100 @@ -12,15 +12,13 @@ src/service.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) -diff --git a/src/service.c b/src/service.c -index 6b7064a..eb2699c 100644 ---- a/src/service.c -+++ b/src/service.c -@@ -2012,9 +2012,15 @@ static void service_enter_running(Service *s, bool success) { - main_pid_ok = main_pid_good(s); +Index: systemd-37/src/service.c +=================================================================== +--- systemd-37.orig/src/service.c ++++ systemd-37/src/service.c +@@ -2014,8 +2014,13 @@ static void service_enter_running(Servic cgroup_ok = cgroup_good(s); -+ if ((main_pid_ok > 0 || (main_pid_ok < 0 && cgroup_ok != 0)) && - (s->bus_name_good || s->type != SERVICE_DBUS)) + (s->bus_name_good || s->type != SERVICE_DBUS)) { @@ -33,6 +31,3 @@ else if (s->remain_after_exit) service_set_state(s, SERVICE_EXITED); else --- -1.7.3.4 - ++++++ dm-lvm-after-local-fs-pre-target.patch ++++++ Index: systemd-37/units/local-fs-pre.target =================================================================== --- systemd-37.orig/units/local-fs-pre.target +++ systemd-37/units/local-fs-pre.target @@ -9,3 +9,4 @@ [Unit] Description=Local File Systems (Pre) +After=md.service lvm.service dmraid.service ++++++ modules_on_boot.patch ++++++ --- /var/tmp/diff_new_pack.LlMnZY/_old 2012-02-16 16:24:09.000000000 +0100 +++ /var/tmp/diff_new_pack.LlMnZY/_new 2012-02-16 16:24:09.000000000 +0100 @@ -7,25 +7,26 @@ src/modules-load.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) -Index: systemd-37/src/modules-load.c +Index: systemd-41/src/modules-load.c =================================================================== ---- systemd-37.orig/src/modules-load.c -+++ systemd-37/src/modules-load.c -@@ -36,6 +36,9 @@ int main(int argc, char *argv[]) { - char **arguments = NULL; - unsigned n_arguments = 0, n_allocated = 0; +--- systemd-41.orig/src/modules-load.c ++++ systemd-41/src/modules-load.c +@@ -44,6 +44,9 @@ static void systemd_kmod_log(void *data, + int main(int argc, char *argv[]) { + int r = EXIT_FAILURE; char **files, **fn; +#if defined(TARGET_SUSE) + char *modules_on_boot = NULL; +#endif + struct kmod_ctx *ctx; + const int probe_flags = KMOD_PROBE_APPLY_BLACKLIST|KMOD_PROBE_IGNORE_LOADED; - if (argc > 1) { - log_error("This program takes no argument."); -@@ -126,6 +129,43 @@ int main(int argc, char *argv[]) { - } +@@ -141,9 +144,58 @@ int main(int argc, char *argv[]) { - strv_free(files); + fclose(f); + } +#if defined(TARGET_SUSE) ++ log_debug("apply: /etc/sysconfig/kernel MODULES_LOADED_ON_BOOT"); + if ((r = parse_env_file("/etc/sysconfig/kernel", NEWLINE, + "MODULES_LOADED_ON_BOOT", &modules_on_boot, + NULL)) < 0) { @@ -36,49 +37,53 @@ + if (modules_on_boot) { + char **modules = strv_split(modules_on_boot,WHITESPACE); + char **module; ++ struct kmod_list *itr, *modlist = NULL; ++ int err; ++ + if (modules) { + STRV_FOREACH(module, modules) { -+ if (n_arguments >= n_allocated) { -+ char **a; -+ unsigned m; -+ -+ m = MAX(16U, n_arguments*2); ++ err = kmod_module_new_from_lookup(ctx, *module, &modlist); ++ if (err < 0) { ++ log_error("Failed to lookup alias '%s'", *module); ++ r = EXIT_FAILURE; ++ continue; ++ } ++ kmod_list_foreach(itr, modlist) { ++ struct kmod_module *mod = kmod_module_get_module(itr); ++ err = kmod_module_probe_insert_module(mod, probe_flags, ++ NULL, NULL, NULL, NULL); + -+ if (!(a = realloc(arguments, sizeof(char*) * (m+1)))) { -+ log_error("Failed to increase module array size."); -+ free(*module); ++ if (err == 0) ++ log_info("Inserted module '%s'", kmod_module_get_name(mod)); ++ else if (err == KMOD_PROBE_APPLY_BLACKLIST) ++ log_info("Module '%s' is blacklisted", kmod_module_get_name(mod)); ++ else { ++ log_error("Failed to insert '%s': %s", kmod_module_get_name(mod), ++ strerror(-err)); + r = EXIT_FAILURE; -+ continue; + } + -+ arguments = a; -+ n_allocated = m; ++ kmod_module_unref(mod); + } -+ log_debug("adding module: %s\n", *module); -+ arguments[n_arguments++] = strdup(*module); + ++ kmod_module_unref_list(modlist); + } + } + strv_free(modules); + } +#endif -+ finish: - - if (n_arguments > 3) { -@@ -138,6 +178,9 @@ finish: - } - - strv_free(arguments); + strv_free(files); +#if defined(TARGET_SUSE) + free(modules_on_boot); +#endif + kmod_unref(ctx); return r; - } -Index: systemd-37/units/systemd-modules-load.service.in +Index: systemd-41/units/systemd-modules-load.service.in =================================================================== ---- systemd-37.orig/units/systemd-modules-load.service.in -+++ systemd-37/units/systemd-modules-load.service.in +--- systemd-41.orig/units/systemd-modules-load.service.in ++++ systemd-41/units/systemd-modules-load.service.in @@ -11,6 +11,7 @@ DefaultDependencies=no Conflicts=shutdown.target After=systemd-readahead-collect.service systemd-readahead-replay.service ++++++ new-lsb-headers.patch ++++++ --- /var/tmp/diff_new_pack.LlMnZY/_old 2012-02-16 16:24:09.000000000 +0100 +++ /var/tmp/diff_new_pack.LlMnZY/_new 2012-02-16 16:24:09.000000000 +0100 @@ -1,8 +1,8 @@ -Index: systemd-37/src/service.c +Index: systemd-41/src/service.c =================================================================== ---- systemd-37.orig/src/service.c -+++ systemd-37/src/service.c -@@ -116,6 +116,7 @@ static void service_init(Unit *u) { +--- systemd-41.orig/src/service.c ++++ systemd-41/src/service.c +@@ -119,6 +119,7 @@ static void service_init(Unit *u) { #ifdef HAVE_SYSV_COMPAT s->sysv_start_priority = -1; s->sysv_start_priority_from_rcnd = -1; @@ -10,7 +10,7 @@ #endif s->socket_fd = -1; s->guess_main_pid = true; -@@ -805,6 +806,31 @@ static int service_load_sysv_path(Servic +@@ -861,6 +862,34 @@ static int service_load_sysv_path(Servic } else state = LSB; @@ -33,16 +33,29 @@ + free(s->pid_file); + s->pid_file = fn; + s->sysv_remain_after_exit_heuristic = false; ++ s->remain_after_exit = false; + } else if (startswith_no_case(t, "X-Systemd-RemainAfterExit:")) { + char *j; + + state = LSB; -+ if ((j = strstrip(t+26)) && *j) -+ s->sysv_remain_after_exit_heuristic = !parse_boolean(j); ++ if ((j = strstrip(t+26)) && *j) { ++ s->remain_after_exit = parse_boolean(j); ++ s->sysv_remain_after_exit_heuristic = false; ++ } } } } -@@ -2017,7 +2043,7 @@ static void service_enter_running(Servic +@@ -891,7 +920,8 @@ static int service_load_sysv_path(Servic + + /* Special setting for all SysV services */ + s->type = SERVICE_FORKING; +- s->remain_after_exit = !s->pid_file; ++ if (s->sysv_remain_after_exit_heuristic) ++ s->remain_after_exit = !s->pid_file; + s->guess_main_pid = false; + s->restart = SERVICE_RESTART_NO; + s->exec_context.ignore_sigpipe = false; +@@ -2030,7 +2060,7 @@ static void service_enter_running(Servic if ((main_pid_ok > 0 || (main_pid_ok < 0 && cgroup_ok != 0)) && (s->bus_name_good || s->type != SERVICE_DBUS)) { #ifdef HAVE_SYSV_COMPAT @@ -51,11 +64,11 @@ s->remain_after_exit = false; #endif service_set_state(s, SERVICE_RUNNING); -Index: systemd-37/src/service.h +Index: systemd-41/src/service.h =================================================================== ---- systemd-37.orig/src/service.h -+++ systemd-37/src/service.h -@@ -139,6 +139,7 @@ struct Service { +--- systemd-41.orig/src/service.h ++++ systemd-41/src/service.h +@@ -157,6 +157,7 @@ struct Service { #ifdef HAVE_SYSV_COMPAT bool sysv_has_lsb:1; bool sysv_enabled:1; -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org