Hello community,

here is the log from the commit of package plymouth for openSUSE:Factory 
checked in at 2014-02-15 08:14:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plymouth (Old)
 and      /work/SRC/openSUSE:Factory/.plymouth.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "plymouth"

Changes:
--------
--- /work/SRC/openSUSE:Factory/plymouth/plymouth.changes        2013-12-19 
12:27:59.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.plymouth.new/plymouth.changes   2014-02-15 
08:14:31.000000000 +0100
@@ -1,0 +2,9 @@
+Wed Feb 12 14:19:48 UTC 2014 - [email protected]
+
+- Add patch
+  0001-Make-plymouthd-real-daemon-and-save-old-log.patch
+  all daemons should call setsid(2) to become a real daemons without
+  controlling terminal.  Beside this the old boot log will help for
+  debugging and for support.
+
+-------------------------------------------------------------------

New:
----
  0001-Make-plymouthd-real-daemon-and-save-old-log.patch

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

Other differences:
------------------
++++++ plymouth.spec ++++++
--- /var/tmp/diff_new_pack.6u4wLo/_old  2014-02-15 08:14:31.000000000 +0100
+++ /var/tmp/diff_new_pack.6u4wLo/_new  2014-02-15 08:14:31.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package plymouth
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -43,6 +43,8 @@
 Patch10:        0001-Some-greenish-openSUSE-colors.patch
 # PATCH-OPENSUSE -- plymouth-correct-runtime-dir.patch [email protected] 
-- make sure the runtime directory is /run and not /var/run
 Patch16:        plymouth-correct-runtime-dir.patch
+# PATCH-SUSE -- 0001-Make-plymouthd-real-daemon-and-save-old-log.patch 
[email protected] -- All daemons should call setsid(2) to become a real daemons
+Patch17:        0001-Make-plymouthd-real-daemon-and-save-old-log.patch
 BuildRequires:  automake
 BuildRequires:  kernel-headers
 BuildRequires:  libtool
@@ -308,6 +310,7 @@
 %patch9 -p0
 %patch10 -p1
 %patch16 -p1
+%patch17 -p1
 # replace builddate with patch0date
 sed -i "s/__DATE__/\"$(stat -c %y %{_sourcedir}/%{name}.changes)\"/" src/main.c
 
@@ -327,10 +330,11 @@
            --with-log-viewer                                     \
            --without-rhgb-compat-link                            \
            --with-boot-tty=/dev/tty7                             \
-           --with-shutdown-tty=/dev/tty1                         \
+           --with-shutdown-tty=/dev/tty7                         \
            --without-gdm-autostart-file                          \
            --with-release-file=/etc/os-release
 
+make clean
 make %{?_smp_mflags} V=1
 
 %install

++++++ 0001-Make-plymouthd-real-daemon-and-save-old-log.patch ++++++
From: Werner Fink <[email protected]>
Subject: All daemons should call setsid(2) to become a real daemons

All daemons should call setsid(2) to become a real daemons without
controlling terminal.  Beside this the old boot log will help for
debugging and for support.

---
 libply/ply-utils.c |    1 +
 main.c             |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

--- a/src/libply/ply-utils.c
+++ b/src/libply/ply-utils.c    2014-02-12 15:05:49.895141867 +0100
@@ -815,6 +815,7 @@ ply_create_daemon (void)
 
       _exit ((int) byte);
     }
+  setsid();
   close (receiver_fd);
 
   handle = calloc (1, sizeof (int));
--- a/src/main.c
+++ b/src/main.c        2014-02-12 14:43:49.216569414 +0100
@@ -639,7 +639,7 @@ get_log_file_for_mode (ply_mode_t mode)
       break;
     case PLY_MODE_SHUTDOWN:
     case PLY_MODE_UPDATES:
-      filename = _PATH_DEVNULL;
+      filename = PLYMOUTH_LOG_DIRECTORY "/boot.log";
       break;
     default:
       ply_error ("Unhandled case in %s line %d\n", __FILE__, __LINE__);
@@ -663,7 +663,7 @@ get_log_spool_file_for_mode (ply_mode_t
       break;
     case PLY_MODE_SHUTDOWN:
     case PLY_MODE_UPDATES:
-      filename = NULL;
+      filename = PLYMOUTH_SPOOL_DIRECTORY "/boot.log";
       break;
     default:
       ply_error ("Unhandled case in %s line %d\n", __FILE__, __LINE__);
@@ -715,6 +715,7 @@ prepare_logging (state_t *state)
   if (logfile != NULL)
     {
       ply_trace ("opening log '%s'", logfile);
+      rename(logfile, PLYMOUTH_LOG_DIRECTORY "/boot.olog");
       ply_terminal_session_open_log (state->session, logfile);
 
       if (state->number_of_errors > 0)

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

Reply via email to