Accepting request 584162 from home:zlliu:branches:openSUSE:Factory

Update to 0.90 version

OBS-URL: https://build.opensuse.org/request/show/584162
OBS-URL: https://build.opensuse.org/package/show/Base:System/ledmon?expand=0&rev=26
This commit is contained in:
Marcus Meissner 2018-03-14 22:49:32 +00:00 committed by Git OBS Bridge
parent 20a1747cef
commit 08488795ed
5 changed files with 18 additions and 66 deletions

View File

@ -1,57 +0,0 @@
From 8e82bd8bec79d066c6263f99d395c87be4086dbc Mon Sep 17 00:00:00 2001
From: Zhilong Liu <zlliu@suse.com>
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 <zlliu@suse.com>
---
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

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Mar 8 04:50:53 UTC 2018 - zlliu@suse.com
- Update to version 0.90:
* No upstream changelog available
* spec: deprecated ledctl.conf.5.gz and rename ledmon.conf.5.gz
* add compile parameter -std=c99
- Drop 0001-fix-compilation-warnings-on-newer-gcc.patch
- bsc#1081125 and fate#322625
-------------------------------------------------------------------
Wed Dec 20 07:54:36 UTC 2017 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package ledmon
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,14 +17,13 @@
Name: ledmon
Version: 0.81
Version: 0.90
Release: 0
Summary: Enclosure LED Utilities
License: GPL-2.0
Group: Hardware/Other
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
@ -38,10 +37,9 @@ solutions.
%prep
%setup -q
%patch0 -p1
%build
make -j1 CXFLAGS="%{optflags} -lsgutils2"
make -j1 CXFLAGS="%{optflags} -lsgutils2 -std=c99"
%install
%make_install
@ -51,7 +49,7 @@ make -j1 CXFLAGS="%{optflags} -lsgutils2"
%doc README COPYING
%{_sbindir}/ledmon
%{_sbindir}/ledctl
%{_mandir}/man5/ledctl.conf.5%{ext_man}
%{_mandir}/man5/ledmon.conf.5%{ext_man}
%{_mandir}/man8/ledctl.8%{ext_man}
%{_mandir}/man8/ledmon.8%{ext_man}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f125947232e1f7649fabafce3c689499448e2c13f25bb3f33440c9d873440f9
size 61363

3
v0.90.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:33f87b54ec343db6336357c30b47d25976aa12a0de62da9be6ec17208ff846d1
size 65722