Hello community,

here is the log from the commit of package libservicelog for openSUSE:Factory 
checked in at 2017-08-21 11:38:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libservicelog (Old)
 and      /work/SRC/openSUSE:Factory/.libservicelog.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libservicelog"

Mon Aug 21 11:38:07 2017 rev:27 rq:517820 version:1.1.17

Changes:
--------
--- /work/SRC/openSUSE:Factory/libservicelog/libservicelog.changes      
2017-04-14 13:34:20.312073911 +0200
+++ /work/SRC/openSUSE:Factory/.libservicelog.new/libservicelog.changes 
2017-08-21 11:38:16.595761701 +0200
@@ -1,0 +2,8 @@
+Thu Aug 10 12:47:12 UTC 2017 - [email protected]
+
+- Machine serial number is not reported to Lpar for a SRC event
+  (bsc#1053227)
+  * libservicelog-1.1.17-Fixes-fdopen-failure-issue-properly.patch
+  * libservicelog-1.1.17-Print-machine-serial-number-in-v29-path.patch
+
+-------------------------------------------------------------------

New:
----
  libservicelog-1.1.17-Fixes-fdopen-failure-issue-properly.patch
  libservicelog-1.1.17-Print-machine-serial-number-in-v29-path.patch

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

Other differences:
------------------
++++++ libservicelog.spec ++++++
--- /var/tmp/diff_new_pack.H58ZSf/_old  2017-08-21 11:38:17.183679014 +0200
+++ /var/tmp/diff_new_pack.H58ZSf/_new  2017-08-21 11:38:17.187678452 +0200
@@ -30,6 +30,8 @@
 Source0:        
http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
 Source1:        baselibs.conf
 Source2:        libservicelog-rpmlintrc
+Patch0001:      
libservicelog-1.1.17-Print-machine-serial-number-in-v29-path.patch
+Patch0002:      libservicelog-1.1.17-Fixes-fdopen-failure-issue-properly.patch
 PreReq:         %{_sbindir}/groupadd
 BuildRequires:  autoconf
 BuildRequires:  automake
@@ -71,6 +73,8 @@
 
 %prep
 %setup -q
+%patch1 -p1
+%patch2 -p1
 
 %build
 autoreconf -fiv

++++++ libservicelog-1.1.17-Fixes-fdopen-failure-issue-properly.patch ++++++
>From 82fbdb94cabe4dd5a1e294091d689db51112319f Mon Sep 17 00:00:00 2001
From: Vasant Hegde <[email protected]>
Date: Fri, 4 Aug 2017 19:39:34 +0530
Subject: [PATCH] Fixes fdopen() failure issue properly

Commit 9dadab0 checks for NULL value instead of non-NULL :-(
Fix it properly so that it trigger notification scripts properly.

Fixes : 9dadab0 (Fixes fdopen() failure issue)
Signed-off-by: Vasant Hegde <[email protected]>
---
 src/notify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/notify.c b/src/notify.c
index e7c9a2c77d78..df1b1a66d43b 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -617,7 +617,7 @@ run_notification_tool(struct sl_notify *notify, int type, 
void *records)
                else if (notify->method == SL_METHOD_SIMPLE_VIA_STDIN) {
                        close(pipe_fd[0]);
                        stream = fdopen(pipe_fd[1], "w");
-                       if (!stream) {
+                       if (stream) {
                                if (type == SL_NOTIFY_EVENTS)
                                        servicelog_event_print(stream, event, 
-1);
                                else if (type == SL_NOTIFY_REPAIRS)
-- 
2.10.2

++++++ libservicelog-1.1.17-Print-machine-serial-number-in-v29-path.patch ++++++
>From 6e2eda9b0b1e6b1e0adcdf9895064c7fb56c5e21 Mon Sep 17 00:00:00 2001
From: Vasant Hegde <[email protected]>
Date: Tue, 23 May 2017 23:13:28 +0530
Subject: [PATCH] Print machine serial number in v29 path

Signed-off-by: Vasant Hegde <[email protected]>
---
 src/v29_compat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/v29_compat.c b/src/v29_compat.c
index 5559bff56b52..5eda064a56ee 100644
--- a/src/v29_compat.c
+++ b/src/v29_compat.c
@@ -295,6 +295,7 @@ convert_rtas_to_v29(servicelog *log, struct sl_event *ev, 
void **data29,
        cond_strcpy(rtas29.refcode, ev->refcode, 9);
        memcpy(rtas29.addl_words, rtas1->addl_words, 8*sizeof(uint32_t));
        cond_strcpy(rtas29.machine_type, ev->machine_model, 9);
+       cond_strcpy(rtas29.machine_serial_no, ev->machine_serial, 13);
        if (ev->description)
                description_sz = strlen(ev->description) + 1;
        rtas29.rtas_event_len = ev->raw_data_len;
-- 
2.10.2


Reply via email to