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 +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 + +--- + 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 99faeca..0245f4a 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,6 +1,6 @@ Name: mdadm Version: 4.1 -Release: 1mamba +Release: 2mamba Summary: A tool to manage MD devices aka Linux Software RAID Group: System/Kernel and Hardware Vendor: openmamba @@ -10,6 +10,7 @@ URL: http://neil.brown.name/blog/mdadm Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz Patch0: mdadm-3.3.1-gcc-4.9.patch Patch1: mdadm-3.4-i586-gcc-5.3.0.patch +Patch2: mdadm-4.1-no-Werror.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -31,10 +32,14 @@ The particular differences to raidtools is that mdadm is a single program, and i #%description static #A tool to manage MD devices aka Linux Software RAID (static binary). +%debug_package + %prep %setup -q +%define _default_patch_fuzz 2 %patch0 -p1 #%patch1 -p1 +%patch2 -p1 %build %make @@ -78,6 +83,9 @@ install -D -m 644 %{name}.conf-example \ #%{_sbindir}/%{name}.static %changelog +* Tue Dec 08 2020 Silvan Calarco 4.1-2mamba +- rebuilt with debug package + * Tue Apr 23 2019 Automatic Build System 4.1-1mamba - automatic version update by autodist