Hello community,

here is the log from the commit of package ledmon for openSUSE:Factory checked 
in at 2017-11-27 22:18:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ledmon (Old)
 and      /work/SRC/openSUSE:Factory/.ledmon.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ledmon"

Mon Nov 27 22:18:37 2017 rev:12 rq:545915 version:0.81

Changes:
--------
--- /work/SRC/openSUSE:Factory/ledmon/ledmon.changes    2017-05-17 
10:54:29.545660412 +0200
+++ /work/SRC/openSUSE:Factory/.ledmon.new/ledmon.changes       2017-11-27 
22:18:39.298103695 +0100
@@ -1,0 +2,12 @@
+Mon Nov 27 06:46:41 UTC 2017 - [email protected]
+
+- Update to version 0.81:
+  * No upstream changelog available
+  * add: 0001-fix-compilation-warnings-on-newer-gcc.patch
+  * modify spec file on demand, add libudev dependency.
+  * Intel has moved ledmon from Souceforge to Github.
+- Drop no longer needed Makefile-error-dependency.patch
+- Drop 0001-Don-t-rely-on-searching-for-block-in-sysfs-path-for-.patch
+- bsc#1067452 and fate#322625
+
+-------------------------------------------------------------------

Old:
----
  0001-Don-t-rely-on-searching-for-block-in-sysfs-path-for-.patch
  Makefile-error-dependency.patch
  ledmon-0.80.tar.gz

New:
----
  0001-fix-compilation-warnings-on-newer-gcc.patch
  v0.81.tar.gz

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

Other differences:
------------------
++++++ ledmon.spec ++++++
--- /var/tmp/diff_new_pack.Pt8S9R/_old  2017-11-27 22:18:39.926080903 +0100
+++ /var/tmp/diff_new_pack.Pt8S9R/_new  2017-11-27 22:18:39.930080758 +0100
@@ -17,16 +17,16 @@
 
 
 Name:           ledmon
-Version:        0.80
+Version:        0.81
 Release:        0
 Summary:        Enclosure LED Utilities
 License:        GPL-2.0
 Group:          Hardware/Other
-Url:            http://sourceforge.net/projects/ledmon/
-Source0:        
http://sourceforge.net/projects/ledmon/files/ledmon-%{version}/%{name}-%{version}.tar.gz
-Patch0:         Makefile-error-dependency.patch
-Patch1:         0001-Don-t-rely-on-searching-for-block-in-sysfs-path-for-.patch
+Url:            https://github.com/intel/ledmon/
+Source0:        https://github.com/intel/ledmon/archive/v%{version}.tar.gz
+Patch0:         0001-fix-compilation-warnings-on-newer-gcc.patch
 BuildRequires:  libsgutils-devel
+BuildRequires:  libudev-devel
 Provides:       sgpio:/sbin/ledmon
 Provides:       sgpio:/{%{_bindir}}/ledctl
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -38,8 +38,7 @@
 
 %prep
 %setup -q
-%patch0
-%patch1 -p1
+%patch0 -p1
 
 %build
 make %{?_smp_mflags} CXFLAGS="%{optflags} -lsgutils2"

++++++ 0001-fix-compilation-warnings-on-newer-gcc.patch ++++++
>From 8e82bd8bec79d066c6263f99d395c87be4086dbc Mon Sep 17 00:00:00 2001
From: Zhilong Liu <[email protected]>
Date: Mon, 27 Nov 2017 11:29:50 +0800
Subject: [PATCH] fix compilation warnings on newer gcc

bsc#1067452
URL: https://bugzilla.suse.com/show_bug.cgi?id=1067452#c4
Upstream URL: https://github.com/intel/ledmon
Commit ID: e51e1a855df80e34e166984373dce7d765d61d52

Signed-off-by: Zhilong Liu <[email protected]>
---
 src/Makefile | 2 +-
 src/ledctl.c | 1 +
 src/smp.c    | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index bb718d5..19a27d0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -62,7 +62,7 @@ CXFLAGS=-O0 -g
 CWFLAGS=-Wall
 CFLAGS=$(CXFLAGS) $(CWFLAGS)
 
-DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE
+DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE
 CPPFLAGS=$(DEFFLAGS)
 ALL_CPPFLAGS=$(CPPFLAGS) -I../config
 
diff --git a/src/ledctl.c b/src/ledctl.c
index 2d013b4..e060fe2 100644
--- a/src/ledctl.c
+++ b/src/ledctl.c
@@ -30,6 +30,7 @@
 #include <syslog.h>
 #include <time.h>
 #include <unistd.h>
+#include <sys/sysmacros.h>
 
 #if _HAVE_DMALLOC_H
 #include <dmalloc.h>
diff --git a/src/smp.c b/src/smp.c
index 7912bd0..872c0ca 100644
--- a/src/smp.c
+++ b/src/smp.c
@@ -31,6 +31,7 @@
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <sys/sysmacros.h>
 
 #if _HAVE_DMALLOC_H
 #include <dmalloc.h>
-- 
2.15.0


Reply via email to