]> git.proxmox.com Git - systemd.git/commitdiff
Refresh patches
authorLuca Boccassi <bluca@debian.org>
Sun, 29 Jan 2023 17:54:19 +0000 (17:54 +0000)
committerLuca Boccassi <bluca@debian.org>
Sun, 29 Jan 2023 17:54:19 +0000 (17:54 +0000)
debian/patches/debian/Add-support-for-TuxOnIce-hibernation.patch
debian/patches/debian/Downgrade-a-couple-of-warnings-to-debug.patch
debian/patches/debian/Make-run-lock-tmpfs-an-API-fs.patch
debian/patches/debian/Revert-core-one-step-back-again-for-nspawn-we-actual.patch
debian/patches/debian/Use-Debian-specific-config-files.patch
debian/patches/debian/fsckd-daemon-for-inter-fsckd-communication.patch
debian/patches/p11kit-switch-to-dlopen.patch

index 1b55a5ac6a3d35dcd92c41e85ac3b01c5d132514..99d9be8f151fa3aae14cc46fd59b2a90e4535c3b 100644 (file)
@@ -12,10 +12,10 @@ Forwarded: http://lists.freedesktop.org/archives/systemd-devel/2014-April/018960
  1 file changed, 6 insertions(+)
 
 diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
-index efc066c..550aba0 100644
+index 1632132..0e48db8 100644
 --- a/src/shared/sleep-config.c
 +++ b/src/shared/sleep-config.c
-@@ -963,6 +963,12 @@ static bool enough_swap_for_hibernation(void) {
+@@ -961,6 +961,12 @@ static bool enough_swap_for_hibernation(void) {
          if (getenv_bool("SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK") > 0)
                  return true;
  
index 29b6fa8f4ac9b39c9a7dc4c26df3eef85cac5f5d..7f02cc390955dac0aa9c1cb8ece61010be1f3ea9 100644 (file)
@@ -51,10 +51,10 @@ index 3c5df6c..24eff86 100644
                                      "Please update package to include a native systemd unit file, in order to make it more safe and robust.", fpath);
  
 diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
-index 18bb757..1f60913 100644
+index 3501ccf..d8423dd 100644
 --- a/src/tmpfiles/tmpfiles.c
 +++ b/src/tmpfiles/tmpfiles.c
-@@ -2987,6 +2987,7 @@ static int specifier_expansion_from_arg(const Specifier *specifier_table, Item *
+@@ -2990,6 +2990,7 @@ static int specifier_expansion_from_arg(const Specifier *specifier_table, Item *
  static int patch_var_run(const char *fname, unsigned line, char **path) {
          const char *k;
          char *n;
@@ -62,7 +62,7 @@ index 18bb757..1f60913 100644
  
          assert(path);
          assert(*path);
-@@ -3012,7 +3013,8 @@ static int patch_var_run(const char *fname, unsigned line, char **path) {
+@@ -3015,7 +3016,8 @@ static int patch_var_run(const char *fname, unsigned line, char **path) {
          /* Also log about this briefly. We do so at LOG_NOTICE level, as we fixed up the situation automatically, hence
           * there's no immediate need for action by the user. However, in the interest of making things less confusing
           * to the user, let's still inform the user that these snippets should really be updated. */
index c65a253d712f849f287ba784db400eb7d3cb9312..574f44d85fcab59d65a569ebf90a2e8d4fcf13b6 100644 (file)
@@ -16,7 +16,7 @@ Closes: #751392
  2 files changed, 2 insertions(+), 1 deletion(-)
 
 diff --git a/src/shared/mount-setup.c b/src/shared/mount-setup.c
-index 975c027..cb975e3 100644
+index 6882b62..c54e632 100644
 --- a/src/shared/mount-setup.c
 +++ b/src/shared/mount-setup.c
 @@ -86,6 +86,8 @@ static const MountPoint mount_table[] = {
index 0410005f618c09b4dd6a8b6785fa29007c6dccb8..deafad87d01c87a77f5ac18f927b0d25aa206a9b 100644 (file)
@@ -14,7 +14,7 @@ Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1141137
  1 file changed, 1 insertion(+), 10 deletions(-)
 
 diff --git a/src/core/unit.c b/src/core/unit.c
-index bed5544..48d76f2 100644
+index 3ac56c1..3b73c7c 100644
 --- a/src/core/unit.c
 +++ b/src/core/unit.c
 @@ -4615,16 +4615,7 @@ int unit_kill_context(
index 315ec1691921bce62a3b2144f34d31b3a023afa4..794c9114e0d156a80c47f105e5f4afee39e94aef 100644 (file)
@@ -10,11 +10,11 @@ keyboard configuration.
 Read/write /etc/timezone if /etc/localtime does not exist.
 ---
  src/basic/time-util.c     |  34 +++++++--
- src/firstboot/firstboot.c |  12 ++--
- src/locale/localed-util.c | 175 ++++++++++++++++++++--------------------------
- src/shared/locale-setup.c |  24 +++++--
+ src/firstboot/firstboot.c |  12 ++-
+ src/locale/localed-util.c | 189 ++++++++++++++++++++--------------------------
+ src/shared/locale-setup.c |  24 ++++--
  src/timedate/timedated.c  |  21 +++++-
- 5 files changed, 148 insertions(+), 118 deletions(-)
+ 5 files changed, 155 insertions(+), 125 deletions(-)
 
 diff --git a/src/basic/time-util.c b/src/basic/time-util.c
 index 71b2f67..fa00d9d 100644
@@ -134,12 +134,7 @@ index dd2bbf5..e1625df 100644
 -        for (;;) {
 -                _cleanup_free_ char *line = NULL;
 -                char *l;
-+        r = parse_env_file(NULL, "/etc/default/keyboard",
-+                           "XKBMODEL",          &c->x11_model,
-+                           "XKBLAYOUT",         &c->x11_layout,
-+                           "XKBVARIANT",        &c->x11_variant,
-+                           "XKBOPTIONS",        &c->x11_options);
+-
 -                r = read_line(f, LONG_LINE_MAX, &line);
 -                if (r < 0)
 -                        return r;
@@ -186,12 +181,18 @@ index dd2bbf5..e1625df 100644
 -                } else if (in_section && first_word(l, "EndSection"))
 -                        in_section = false;
 -        }
++        r = parse_env_file(NULL, "/etc/default/keyboard",
++                           "XKBMODEL",          &c->x11_model,
++                           "XKBLAYOUT",         &c->x11_layout,
++                           "XKBVARIANT",        &c->x11_variant,
++                           "XKBOPTIONS",        &c->x11_options);
++
 +        if (r < 0)
 +                return r;
  
          return 0;
  }
-@@ -253,68 +206,92 @@ int vconsole_write_data(Context *c) {
+@@ -253,69 +206,93 @@ int vconsole_write_data(Context *c) {
  }
  
  int x11_write_data(Context *c) {
@@ -210,7 +211,6 @@ index dd2bbf5..e1625df 100644
 +                return r;
  
 -                if (unlink("/etc/X11/xorg.conf.d/00-keyboard.conf") < 0)
--                        return errno == ENOENT ? 0 : -errno;
 +        /* This could perhaps be done more elegantly using an array
 +         * like we do for the locale, instead of struct
 +         */
@@ -221,22 +221,14 @@ index dd2bbf5..e1625df 100644
 +                        strv_free(l);
 +                        return -ENOMEM;
 +                }
--                c->vc_mtime = USEC_INFINITY;
--                return 0;
++
 +                r = strv_env_replace_consume(&l, t);
 +                if (r < 0) {
 +                        strv_free(l);
 +                        return r;
 +                }
-         }
--        (void) mkdir_p_label("/etc/X11/xorg.conf.d", 0755);
--        r = fopen_temporary("/etc/X11/xorg.conf.d/00-keyboard.conf", &f, &temp_path);
--        if (r < 0)
--                return r;
--
--        (void) fchmod(fileno(f), 0644);
++        }
++
 +        if (isempty(c->x11_model)) {
 +                l = strv_env_unset(l, "XKBMODEL");
 +        } else {
@@ -244,22 +236,14 @@ index dd2bbf5..e1625df 100644
 +                        strv_free(l);
 +                        return -ENOMEM;
 +                }
--        fputs("# Written by systemd-localed(8), read by systemd-localed and Xorg. It's\n"
--              "# probably wise not to edit this file manually. Use localectl(1) to\n"
--              "# instruct systemd-localed to update it.\n"
--              "Section \"InputClass\"\n"
--              "        Identifier \"system-keyboard\"\n"
--              "        MatchIsKeyboard \"on\"\n", f);
++
 +                r = strv_env_replace_consume(&l, t);
 +                if (r < 0) {
 +                        strv_free(l);
 +                        return r;
 +                }
 +        }
--        if (!isempty(c->x11_layout))
--                fprintf(f, "        Option \"XkbLayout\" \"%s\"\n", c->x11_layout);
++
 +        if (isempty(c->x11_variant)) {
 +                l = strv_env_unset(l, "XKBVARIANT");
 +        } else {
@@ -267,18 +251,14 @@ index dd2bbf5..e1625df 100644
 +                        strv_free(l);
 +                        return -ENOMEM;
 +                }
--        if (!isempty(c->x11_model))
--                fprintf(f, "        Option \"XkbModel\" \"%s\"\n", c->x11_model);
++
 +                r = strv_env_replace_consume(&l, t);
 +                if (r < 0) {
 +                        strv_free(l);
 +                        return r;
 +                }
 +        }
--        if (!isempty(c->x11_variant))
--                fprintf(f, "        Option \"XkbVariant\" \"%s\"\n", c->x11_variant);
++
 +        if (isempty(c->x11_options)) {
 +                l = strv_env_unset(l, "XKBOPTIONS");
 +        } else {
@@ -286,48 +266,76 @@ index dd2bbf5..e1625df 100644
 +                        strv_free(l);
 +                        return -ENOMEM;
 +                }
--        if (!isempty(c->x11_options))
--                fprintf(f, "        Option \"XkbOptions\" \"%s\"\n", c->x11_options);
++
 +                r = strv_env_replace_consume(&l, t);
 +                if (r < 0) {
 +                        strv_free(l);
 +                        return r;
 +                }
 +        }
--        fputs("EndSection\n", f);
++
 +        if (strv_isempty(l)) {
 +                strv_free(l);
++
++                if (unlink("/etc/default/keyboard") < 0)
+                         return errno == ENOENT ? 0 : -errno;
+                 c->vc_mtime = USEC_INFINITY;
+                 return 0;
+         }
+-        (void) mkdir_p_label("/etc/X11/xorg.conf.d", 0755);
+-        r = fopen_temporary("/etc/X11/xorg.conf.d/00-keyboard.conf", &f, &temp_path);
+-        if (r < 0)
+-                return r;
++        r = write_env_file("/etc/default/keyboard", l);
++        strv_free(l);
  
+-        (void) fchmod(fileno(f), 0644);
+-
+-        fputs("# Written by systemd-localed(8), read by systemd-localed and Xorg. It's\n"
+-              "# probably wise not to edit this file manually. Use localectl(1) to\n"
+-              "# instruct systemd-localed to update it.\n"
+-              "Section \"InputClass\"\n"
+-              "        Identifier \"system-keyboard\"\n"
+-              "        MatchIsKeyboard \"on\"\n", f);
+-
+-        if (!isempty(c->x11_layout))
+-                fprintf(f, "        Option \"XkbLayout\" \"%s\"\n", c->x11_layout);
+-
+-        if (!isempty(c->x11_model))
+-                fprintf(f, "        Option \"XkbModel\" \"%s\"\n", c->x11_model);
+-
+-        if (!isempty(c->x11_variant))
+-                fprintf(f, "        Option \"XkbVariant\" \"%s\"\n", c->x11_variant);
+-
+-        if (!isempty(c->x11_options))
+-                fprintf(f, "        Option \"XkbOptions\" \"%s\"\n", c->x11_options);
+-
+-        fputs("EndSection\n", f);
+-
 -        r = fflush_sync_and_check(f);
 -        if (r < 0)
 -                goto fail;
-+                if (unlink("/etc/default/keyboard") < 0)
-+                        return errno == ENOENT ? 0 : -errno;
+-
 -        if (rename(temp_path, "/etc/X11/xorg.conf.d/00-keyboard.conf") < 0) {
 -                r = -errno;
 -                goto fail;
-+                c->vc_mtime = USEC_INFINITY;
-+                return 0;
-         }
--        if (stat("/etc/X11/xorg.conf.d/00-keyboard.conf", &st) >= 0)
--                c->x11_mtime = timespec_load(&st.st_mtim);
+-        }
 -
--        return 0;
-+        r = write_env_file("/etc/default/keyboard", l);
-+        strv_free(l);
+-        if (stat("/etc/X11/xorg.conf.d/00-keyboard.conf", &st) >= 0)
++        if (r >= 0 && stat("/etc/default/keyboard", &st) >= 0)
+                 c->x11_mtime = timespec_load(&st.st_mtim);
  
+-        return 0;
+-
 -fail:
 -        if (temp_path)
 -                (void) unlink(temp_path);
-+        if (r >= 0 && stat("/etc/default/keyboard", &st) >= 0)
-+                c->x11_mtime = timespec_load(&st.st_mtim);
+-
          return r;
  }
 diff --git a/src/shared/locale-setup.c b/src/shared/locale-setup.c
 index b8c6647..be7efcb 100644
 --- a/src/shared/locale-setup.c
index 70ba4a2504263a9d8b765f21e1aff720c5ce7218..a8eba9534ad119f8337d6e7c514efe2d510733e9 100644 (file)
@@ -1004,7 +1004,7 @@ index 8378df8..4b1cd43 100644
  OnFailure=emergency.target
  OnFailureJobMode=replace-irreversibly
 diff --git a/units/systemd-fsck@.service.in b/units/systemd-fsck@.service.in
-index 06b91aea..de0b767 100644
+index 06b91ae..de0b767 100644
 --- a/units/systemd-fsck@.service.in
 +++ b/units/systemd-fsck@.service.in
 @@ -13,7 +13,8 @@ Documentation=man:systemd-fsck@.service(8)
index 0cdb8c391fa9d96b15e52a7b463792d665fa2b65..d9fd919a0b204f949dd9c55ca3c37850362266ed 100644 (file)
@@ -718,10 +718,10 @@ index 85dbb81..55728c2 100644
  }
  
 diff --git a/test/test-functions b/test/test-functions
-index 5613215..7f0ab56 100644
+index ae0a993..be3b686 100644
 --- a/test/test-functions
 +++ b/test/test-functions
-@@ -1275,7 +1275,7 @@ install_missing_libraries() {
+@@ -1276,7 +1276,7 @@ install_missing_libraries() {
      local lib path
      # A number of dependencies is now optional via dlopen, so the install
      # script will not pick them up, since it looks at linkage.
@@ -730,7 +730,7 @@ index 5613215..7f0ab56 100644
          ddebug "Searching for $lib via pkg-config"
          if pkg-config --exists "$lib"; then
                  path="$(pkg-config --variable=libdir "$lib")"
-@@ -1287,6 +1287,10 @@ install_missing_libraries() {
+@@ -1288,6 +1288,10 @@ install_missing_libraries() {
                  if ! [[ ${lib} =~ ^lib ]]; then
                          lib="lib${lib}"
                  fi