rebuilt with debug package [release 4.1-2mamba;Tue Dec 08 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 07:01:59 +01:00
parent 89d984b61a
commit d41b6b3cc7
2 changed files with 35 additions and 1 deletions

26
mdadm-4.1-no-Werror.patch Normal file
View File

@ -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

View File

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