diff --git a/6013-mdadm-remove-Werror-to-fix-Werror-address-of-packed-.patch b/6013-mdadm-remove-Werror-to-fix-Werror-address-of-packed-.patch new file mode 100644 index 0000000000000000000000000000000000000000..d4106b5dafb64abccc533ed4a58eaffdaad7cbb8 --- /dev/null +++ b/6013-mdadm-remove-Werror-to-fix-Werror-address-of-packed-.patch @@ -0,0 +1,31 @@ +From f64c9a6a28487c39704b09067e147563218f64be Mon Sep 17 00:00:00 2001 +From: Zhiqiang Liu +Date: Mon, 29 Jun 2020 21:33:22 +0800 +Subject: [PATCH] mdadm: remove -Werror to fix + [-Werror=address-of-packed-member] problem + +gcc reports [-Werror=address-of-packed-member] error when building +mdadm package. Here, we remove -Werror to fix +[-Werror=address-of-packed-member] problem. + +Signed-off-by: Zhiqiang Liu +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 2767ac6..5e24cbd 100644 +--- a/Makefile ++++ b/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 +-- +2.24.0.windows.2 + diff --git a/mdadm.spec b/mdadm.spec index e77fe15dadd6ee6c1ea72b263fb4a7ec45f71a65..ec888b3810b92c6c041c9932de32888f44689865 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,6 +1,6 @@ Name: mdadm Version: 4.1 -Release: rc2.0.9 +Release: rc2.0.10 Summary: The software RAID arrays user manage tools License: GPLv2+ URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ @@ -23,6 +23,7 @@ Patch6009: 6009-mdmon-wait-for-previous-mdmon-to-exit-during-takeove.patch Patch6010: 6010-Assemble-Fix-starting-array-with-initial-reshape-che.patch Patch6011: 6011-add-missing-units-to-examine.patch Patch6012: 6012-Create-Block-rounding-size-to-max.patch +Patch6013: 6013-mdadm-remove-Werror-to-fix-Werror-address-of-packed-.patch BuildRequires: systemd gcc binutils Requires(post): systemd coreutils @@ -85,6 +86,12 @@ install -d -m 710 %{buildroot}/var/run/mdadm/ %{_mandir}/man*/* %changelog +* Mon Jun 29 2020 Zhiqiang Liu - 4.1-rc2.0.10 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: remove -Werror to fix [-Werror=address-of-packed-member] problem + * Mon Mar 9 2020 hy - 4.1-rc2.0.9 - Type:bugfix - ID:NA