Hello community,

here is the log from the commit of package systemd for openSUSE:Factory checked 
in at 2013-12-30 10:44:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/systemd (Old)
 and      /work/SRC/openSUSE:Factory/.systemd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "systemd"

Changes:
--------
systemd-rpm-macros.changes: same change
--- /work/SRC/openSUSE:Factory/systemd/systemd.changes  2013-12-19 
21:39:01.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.systemd.new/systemd.changes     2013-12-30 
10:45:01.000000000 +0100
@@ -1,0 +2,17 @@
+Fri Dec 20 12:06:18 UTC 2013 - [email protected]
+
+- Adapt patch
+  1011-check-4-valid-kmsg-device.patch
+  to fit current upstream version maybe related to bnc#854884
+- Change patch
+  1012-pam_systemd_do_override_XDG_RUNTIME_DIR_of_the_original_user.patch
+  to check if XDG_RUNTIME_DIR is set before the call of pam_putenv()
+  may fix bnc#855160   
+
+-------------------------------------------------------------------
+Fri Dec 20 09:40:01 UTC 2013 - [email protected]
+
+- Disable multi-seat-x build, since package xorg-x11-server
+  currently in Factory no longer needs it.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ systemd-mini.spec ++++++
--- /var/tmp/diff_new_pack.fKsFOw/_old  2013-12-30 10:45:03.000000000 +0100
+++ /var/tmp/diff_new_pack.fKsFOw/_new  2013-12-30 10:45:03.000000000 +0100
@@ -588,6 +588,9 @@
   --with-debug-shell=/bin/bash \
   --disable-smack \
   --disable-ima \
+%if 0%{?suse_version} > 1310
+  --disable-multi-seat-x \
+%endif
   CFLAGS="%{optflags}"
 make %{?_smp_mflags}
 

++++++ systemd.spec ++++++
--- /var/tmp/diff_new_pack.fKsFOw/_old  2013-12-30 10:45:03.000000000 +0100
+++ /var/tmp/diff_new_pack.fKsFOw/_new  2013-12-30 10:45:03.000000000 +0100
@@ -583,6 +583,9 @@
   --with-debug-shell=/bin/bash \
   --disable-smack \
   --disable-ima \
+%if 0%{?suse_version} > 1310
+  --disable-multi-seat-x \
+%endif
   CFLAGS="%{optflags}"
 make %{?_smp_mflags}
 

++++++ 1011-check-4-valid-kmsg-device.patch ++++++
--- /var/tmp/diff_new_pack.fKsFOw/_old  2013-12-30 10:45:03.000000000 +0100
+++ /var/tmp/diff_new_pack.fKsFOw/_new  2013-12-30 10:45:03.000000000 +0100
@@ -6,65 +6,57 @@
 environments.
 
 ---
- journald-kmsg.c |   27 ++++++++++++++++++++++++++-
- 1 file changed, 26 insertions(+), 1 deletion(-)
+ journald-kmsg.c |   18 +++++++++++++++---
+ 1 file changed, 15 insertions(+), 3 deletions(-)
 
 Index: systemd-208/src/journal/journald-kmsg.c
 ===================================================================
 --- systemd-208/src/journal/journald-kmsg.c
-+++ systemd-208/src/journal/journald-kmsg.c    2013-11-21 13:30:22.930735683 
+0000
-@@ -23,7 +23,9 @@
- #include <sys/epoll.h>
- #include <fcntl.h>
- #include <sys/mman.h>
-+#include <sys/stat.h>
- #include <sys/socket.h>
-+#include <sys/types.h>
- 
- #include <systemd/sd-messages.h>
- #include <libudev.h>
-@@ -377,20 +379,43 @@ int server_flush_dev_kmsg(Server *s) {
++++ systemd-208/src/journal/journald-kmsg.c    2013-12-20 11:34:39.762236175 
+0000
+@@ -377,15 +377,18 @@ int server_flush_dev_kmsg(Server *s) {
  
  int server_open_dev_kmsg(Server *s) {
          struct epoll_event ev;
-+        struct stat st;
++        int r;
  
          assert(s);
  
          s->dev_kmsg_fd = open("/dev/kmsg", 
O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
          if (s->dev_kmsg_fd < 0) {
 -                log_warning("Failed to open /dev/kmsg, ignoring: %m");
-+                /* Do not warn as it may not exists in LXC environments */
-+                if (errno != ENOENT)
-+                        log_warning("Failed to open /dev/kmsg, ignoring: %m");
++                log_full(errno == ENOENT ? LOG_DEBUG : LOG_WARNING,
++                         "Failed to open /dev/kmsg, ignoring: %m");
                  return 0;
          }
  
-+        if (fstat(s->dev_kmsg_fd, &st) < 0) {
-+                log_error("Failed to stat /dev/kmsg fd, ignoring: %m");
-+                close_nointr_nofail(s->dev_kmsg_fd);
-+                s->dev_kmsg_fd = -1;
-+                return 0;
-+        }
-+
-+        if (!S_ISCHR(st.st_mode) || major(st.st_rdev) != 1 || 
minor(st.st_rdev) != 11) {
-+                int old_errno = errno;
-+                errno = ENODEV;
-+                log_warning("Irregular device /dev/kmsg, ignoring: %m");
-+                errno = old_errno;
-+                close_nointr_nofail(s->dev_kmsg_fd);
-+                s->dev_kmsg_fd = -1;
-+                return 0;
-+        }
-+
++        r = 0;
          zero(ev);
          ev.events = EPOLLIN;
          ev.data.fd = s->dev_kmsg_fd;
-         if (epoll_ctl(s->epoll_fd, EPOLL_CTL_ADD, s->dev_kmsg_fd, &ev) < 0) {
+@@ -394,15 +397,24 @@ int server_open_dev_kmsg(Server *s) {
+                 /* This will fail with EPERM on older kernels where
+                  * /dev/kmsg is not readable. */
+                 if (errno == EPERM)
+-                        return 0;
++                        goto fail;
+ 
+                 log_error("Failed to add /dev/kmsg fd to epoll object: %m");
+-                return -errno;
++                r = -errno;
++                goto fail;
+         }
  
+         s->dev_kmsg_readable = true;
+ 
+         return 0;
++
++fail:
++        if (s->dev_kmsg_fd >= 0) {
 +                close_nointr_nofail(s->dev_kmsg_fd);
 +                s->dev_kmsg_fd = -1;
++        }
 +
-                 /* This will fail with EPERM on older kernels where
-                  * /dev/kmsg is not readable. */
-                 if (errno == EPERM)
++        return r;
+ }
+ 
+ int server_open_kernel_seqnum(Server *s) {

++++++ 1012-pam_systemd_do_override_XDG_RUNTIME_DIR_of_the_original_user.patch 
++++++
--- /var/tmp/diff_new_pack.fKsFOw/_old  2013-12-30 10:45:03.000000000 +0100
+++ /var/tmp/diff_new_pack.fKsFOw/_new  2013-12-30 10:45:03.000000000 +0100
@@ -157,12 +157,12 @@
 +                         pam_syslog(handle, LOG_ERR, "Failed to set runtime 
dir.");
 +                         goto finish;
 +                }
-+        } else {
-+                (void) unsetenv("XDG_RUNTIME_DIR");
++        } else if (getenv("XDG_RUNTIME_DIR")) {
 +                r = pam_putenv(handle, "XDG_RUNTIME_DIR");
 +                if (r != PAM_SUCCESS && r != PAM_BAD_ITEM) {
 +                         pam_syslog(handle, LOG_ERR, "Failed to unset runtime 
dir.");
 +                }
++                (void) unsetenv("XDG_RUNTIME_DIR");
          }
  
          if (!isempty(seat)) {

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to