mdadm 4.1-4 (i686;x86_64) 2019-6891
9999

Status published
Submitter nobodydead [@T] gmail.com
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/607332
Packages
mdadm-4.1-4.i686.binary
mdadm-4.1-4.i686.source
mdadm-debuginfo-4.1-4.i686.debuginfo
mdadm-4.1-4.x86_64.binary
mdadm-4.1-4.x86_64.source
mdadm-debuginfo-4.1-4.x86_64.debuginfo
Build Date 2019-09-20 22:52:42 +0000 UTC
Last Updated 2019-09-26 17:21:19.187490425 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 5d5599e4c377ea22254acbb15a27474fe0273911

commit 5d5599e4c377ea22254acbb15a27474fe0273911
Author:     tpgxyz <tpgxyz@gmail.com>
AuthorDate: Fri Sep 20 14:05:21 2019 +0200
Commit:     tpgxyz <tpgxyz@gmail.com>
CommitDate: Fri Sep 20 14:05:21 2019 +0200

    add patch from Fedora
---
 mdadm-4.1-no-Werror.patch | 26 ++++++++++++++++++++++++++
 mdadm.spec                |  3 ++-
 mdmonitor.service         |  2 +-
 3 files changed, 29 insertions(+), 2 deletions(-)
 create mode 100644 mdadm-4.1-no-Werror.patch

diff --git a/mdadm-4.1-no-Werror.patch b/mdadm-4.1-no-Werror.patch
new file mode 100644
index 0000000..2cdac7c
--- /dev/null
+++ b/mdadm-4.1-no-Werror.patch
@@ -0,0 +1,26 @@
+From: martin f. krafft <madduck@debian.org>
+Subject: Remove -Werror from compiler flags
+
+-Werror seems like a bad idea on released/packaged code because a toolchain
+update (introducing new warnings) could break the build. We'll let upstream
+use it to beautify the code, but remove it for out builds.
+
+Signed-off-by: martin f. krafft <madduck@debian.org>
+
+---
+ Makefile |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+Index: mdadm-4.1/Makefile
+===================================================================
+--- mdadm-4.1.orig/Makefile
++++ mdadm-4.1/Makefile
+@@ -48,7 +48,7 @@ endif
+ 
+ CC ?= $(CROSS_COMPILE)gcc
+ CXFLAGS ?= -ggdb
+-CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
++CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter
+ ifdef WARN_UNUSED
+ CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3
+ endif
diff --git a/mdadm.spec b/mdadm.spec
index ffb89fa..187abef 100644
--- a/mdadm.spec
+++ b/mdadm.spec
@@ -1,7 +1,7 @@
 Summary:	A tool for managing Soft RAID under Linux
 Name:		mdadm
 Version:	4.1
-Release:	3
+Release:	4
 Group:		System/Kernel and hardware
 License:	GPLv2+
 Url:		http://www.kernel.org/pub/linux/utils/raid/mdadm/
@@ -17,6 +17,7 @@ Source10:	mdadm_event.conf
 
 # Fedora patches
 Patch197:	mdadm-3.3-udev.patch
+Patch198:	https://src.fedoraproject.org/rpms/mdadm/raw/master/f/mdadm-4.1-no-Werror.patch
 
 # udev rule used to be in udev package
 BuildRequires:	groff
diff --git a/mdmonitor.service b/mdmonitor.service
index 2ddd1de..94618f1 100644
--- a/mdmonitor.service
+++ b/mdmonitor.service
@@ -6,7 +6,7 @@ ConditionPathExists=/etc/mdadm.conf
 Type=forking
 PIDFile=/run/mdadm/mdadm.pid
 EnvironmentFile=-/etc/sysconfig/mdmonitor
-ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/run/mdadm/mdadm.pid
+ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/var/run/mdadm/mdadm.pid
 
 [Install]
 WantedBy=multi-user.target
Not Available

benbullard79 [@T] cox.netTime to cull the herd1671d 05hrs
benbullard79 [@T] cox.netcull the herd1671d 05hrs