summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-07 21:17:15 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-11 12:55:24 +0200
commit7543a2db56e2e1c02fb51af027bfc7f5ff0bd73e (patch)
tree33ac985fca8d8e1f4139d363975fa79b1210599b
parent4a05b0fb931261412a249daee41b799cd6057918 (diff)
update to latest upstream version
-rw-r--r--package/mdadm/Makefile6
-rw-r--r--package/mdadm/patches/patch-Makefile62
2 files changed, 53 insertions, 15 deletions
diff --git a/package/mdadm/Makefile b/package/mdadm/Makefile
index 775e7aaed..4917f34d5 100644
--- a/package/mdadm/Makefile
+++ b/package/mdadm/Makefile
@@ -4,10 +4,10 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= mdadm
-PKG_VERSION:= 3.3
+PKG_VERSION:= 3.3.1
PKG_RELEASE:= 1
-PKG_MD5SUM:= abb19b309281b93cf79d29fb2dfb2e85
-PKG_DESCR:= tool for managing software RAID arrays
+PKG_MD5SUM:= 4227d48de62dfb217c92fa0c54171bbe
+PKG_DESCR:= tool for managing software raid arrays
PKG_SECTION:= sys/fs
PKG_URL:= http://neil.brown.name/blog/mdadm
PKG_SITES:= ${MASTER_SITE_KERNEL:=utils/raid/mdadm/}
diff --git a/package/mdadm/patches/patch-Makefile b/package/mdadm/patches/patch-Makefile
index d8e182c0c..94487d6ab 100644
--- a/package/mdadm/patches/patch-Makefile
+++ b/package/mdadm/patches/patch-Makefile
@@ -1,25 +1,63 @@
---- mdadm-3.3.orig/Makefile 2013-09-03 06:47:47.000000000 +0200
-+++ mdadm-3.3/Makefile 2013-12-31 18:42:30.000000000 +0100
-@@ -43,7 +43,7 @@ KLIBC_GCC = gcc -nostdinc -iwithprefix i
+--- mdadm-3.3.1.orig/Makefile 2014-06-05 08:45:56.000000000 +0200
++++ mdadm-3.3.1/Makefile 2014-06-07 21:00:16.000000000 +0200
+@@ -43,9 +43,9 @@ KLIBC_GCC = gcc -nostdinc -iwithprefix i
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
+-CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3
++CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2
endif
-@@ -257,9 +257,10 @@ $(MON_OBJS) : $(INCL) mdmon.h
+
+ ifdef DEBIAN
+@@ -70,7 +70,7 @@ CONFFILEFLAGS = -DCONFFILE=\"$(CONFFILE)
+ # pivotroot from early boot to late boot.
+ # /run is best, but for distros that don't support that.
+ # /dev can work, in which case you probably want /dev/.mdadm
+-RUN_DIR=/run/mdadm
++RUN_DIR=/var/run/mdadm
+ CHECK_RUN_DIR=1
+ MAP_DIR=$(RUN_DIR)
+ MAP_FILE = map
+@@ -82,7 +82,8 @@ SYSTEMD_DIR=/lib/systemd/system
+ DIRFLAGS = -DMAP_DIR=\"$(MAP_DIR)\" -DMAP_FILE=\"$(MAP_FILE)\"
+ DIRFLAGS += -DMDMON_DIR=\"$(MDMON_DIR)\"
+ DIRFLAGS += -DFAILED_SLOTS_DIR=\"$(FAILED_SLOTS_DIR)\"
+-CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(DIRFLAGS)
++CFLAGS ?=
++CFLAGS += $(CWFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(DIRFLAGS)
+
+ VERSION = $(shell [ -d .git ] && git describe HEAD | sed 's/mdadm-//')
+ VERS_DATE = $(shell [ -d .git ] && date --date="`git log -n1 --format=format:%cd --date=short`" '+%0dth %B %Y' | sed -e 's/1th/1st/' -e 's/2th/2nd/' -e 's/11st/11th/' -e 's/12nd/12th/')
+@@ -100,9 +101,9 @@ endif
+
+ # If you want a static binary, you might uncomment these
+ # LDFLAGS = -static
+-# STRIP = -s
++STRIP =
+
+-INSTALL = /usr/bin/install
++INSTALL = install
+ DESTDIR =
+ BINDIR = /sbin
+ MANDIR = /usr/share/man
+@@ -196,7 +197,7 @@ mdmon.O2 : $(MON_SRCS) $(INCL) mdmon.h
+
+ # use '-z now' to guarantee no dynamic linker interactions with the monitor thread
+ mdmon : check_rundir $(MON_OBJS)
+- $(CC) $(CFLAGS) $(LDFLAGS) $(MON_LDFLAGS) -Wl,-z,now -o mdmon $(MON_OBJS) $(LDLIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(MON_LDFLAGS) -o mdmon $(MON_OBJS) $(LDLIBS)
+ msg.o: msg.c msg.h
+
+ test_stripe : restripe.c xmalloc.o mdadm.h
+@@ -258,7 +259,7 @@ $(MON_OBJS) : $(INCL) mdmon.h
sha1.o : sha1.c sha1.h md5.h
$(CC) $(CFLAGS) -DHAVE_STDINT_H -o sha1.o -c sha1.c
-install : mdadm mdmon install-man install-udev
-- $(INSTALL) -D $(STRIP) -m 755 mdadm $(DESTDIR)$(BINDIR)/mdadm
-- $(INSTALL) -D $(STRIP) -m 755 mdmon $(DESTDIR)$(BINDIR)/mdmon
+install : mdadm mdmon
-+ $(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)
-+ $(INSTALL) -m 755 mdadm $(DESTDIR)$(BINDIR)/mdadm
-+ $(INSTALL) -m 755 mdmon $(DESTDIR)$(BINDIR)/mdmon
+ $(INSTALL) -D $(STRIP) -m 755 mdadm $(DESTDIR)$(BINDIR)/mdadm
+ $(INSTALL) -D $(STRIP) -m 755 mdmon $(DESTDIR)$(BINDIR)/mdmon
- install-static : mdadm.static install-man
- $(INSTALL) -D $(STRIP) -m 755 mdadm.static $(DESTDIR)$(BINDIR)/mdadm