From patchwork Thu Jan 17 12:17:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antony Vennard X-Patchwork-Id: 213230 X-Patchwork-Delegate: patrickdepinguin+buildroot@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 02D2C2C007C for ; Thu, 17 Jan 2013 23:15:00 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9B0878B489; Thu, 17 Jan 2013 12:14:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UnHE2peFZp0J; Thu, 17 Jan 2013 12:14:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C95A182549; Thu, 17 Jan 2013 12:14:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 77AC08F74B for ; Thu, 17 Jan 2013 12:15:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E581E82549 for ; Thu, 17 Jan 2013 12:14:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1RcLnrFUMtSe for ; Thu, 17 Jan 2013 12:14:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vennard.org.uk (vennard.org.uk [89.200.139.104]) by whitealder.osuosl.org (Postfix) with ESMTPS id 62F3281690 for ; Thu, 17 Jan 2013 12:14:53 +0000 (UTC) Received: by vennard.org.uk (Postfix, from userid 1008) id EE60E1EC3BC; Thu, 17 Jan 2013 12:14:48 +0000 (GMT) Received: from linuxrescuecd.macrium.o.macrium.com (unknown [37.128.185.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vennard.org.uk (Postfix) with ESMTPSA id 71BA61EC3BB; Thu, 17 Jan 2013 12:14:45 +0000 (GMT) From: Antony Vennard To: buildroot@busybox.net Date: Thu, 17 Jan 2013 12:17:00 +0000 Message-Id: <1358425020-2526-1-git-send-email-arv@vx9.co.uk> X-Mailer: git-send-email 1.7.11.7 Cc: Antony Vennard Subject: [Buildroot] [PATCH] Update dmraid from 1.0.0-rc15 to 1.0.0-rc16-3. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net dmraid rc15 does not support later Intel Software RAID (isw) chipsets correctly. Updating dmraid to a later edition fixes this issue. In order to use the later dmraid, the lvm2 package needs to be compiled with --enable-cmdlib --enable-dmeventd, which dmraid can then invoke on boot. dmeventd must be copied to /usr/sbin/ on the target. Signed-off-by: Antony Vennard --- package/dmraid/dmraid-fix-make-remove.patch | 22 ---------------------- package/dmraid/dmraid.mk | 4 ++-- package/dmraid/dmraid.patch | 20 -------------------- package/dmraid/dmraid_library-linking-fix.patch | 15 --------------- package/lvm2/lvm2.mk | 5 +++-- 5 files changed, 5 insertions(+), 61 deletions(-) delete mode 100644 package/dmraid/dmraid-fix-make-remove.patch delete mode 100644 package/dmraid/dmraid.patch delete mode 100644 package/dmraid/dmraid_library-linking-fix.patch diff --git a/package/dmraid/dmraid-fix-make-remove.patch b/package/dmraid/dmraid-fix-make-remove.patch deleted file mode 100644 index 0d6ae75..0000000 --- a/package/dmraid/dmraid-fix-make-remove.patch +++ /dev/null @@ -1,22 +0,0 @@ -[PATCH]: dmraid: fix make remove for header files - -prefix/include/dmraid is not empty, so we need rm -rf - -Signed-off-by: Peter Korsgaard ---- - 1.0.0.rc15/include/Makefile.in | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: dmraid/1.0.0.rc15/include/Makefile.in -=================================================================== ---- dmraid.orig/1.0.0.rc15/include/Makefile.in -+++ dmraid/1.0.0.rc15/include/Makefile.in -@@ -24,7 +24,7 @@ install: install_dmraid_headers - - remove_dmraid_headers: - @echo "Removing $(HEADERS) from $(includedir)/dmraid" -- rm -f $(includedir)/dmraid -+ rm -rf $(includedir)/dmraid - - remove: remove_dmraid_headers - diff --git a/package/dmraid/dmraid.mk b/package/dmraid/dmraid.mk index 3fb2375..c262fcc 100644 --- a/package/dmraid/dmraid.mk +++ b/package/dmraid/dmraid.mk @@ -3,10 +3,10 @@ # dmraid # ############################################################# -DMRAID_VERSION:=1.0.0.rc15 +DMRAID_VERSION:=1.0.0.rc16-3 DMRAID_SOURCE:=dmraid-$(DMRAID_VERSION).tar.bz2 DMRAID_SITE:=http://people.redhat.com/~heinzm/sw/dmraid/src -DMRAID_SUBDIR:=$(DMRAID_VERSION) +DMRAID_SUBDIR:=$(DMRAID_VERSION)/dmraid # lib and tools race with parallel make DMRAID_MAKE = $(MAKE1) DMRAID_INSTALL_STAGING = YES diff --git a/package/dmraid/dmraid.patch b/package/dmraid/dmraid.patch deleted file mode 100644 index fbe2894..0000000 --- a/package/dmraid/dmraid.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/1.0.0.rc15/lib/device/scan.c.orig 2008-06-20 09:32:05.000000000 -0500 -+++ b/1.0.0.rc15/lib/device/scan.c 2008-12-01 17:15:25.000000000 -0600 -@@ -69,7 +69,7 @@ - static char *ret = NULL, *sysfs_mp; - - if (!(sysfs_mp = find_sysfs_mp(lc))) -- LOG_ERR(lc, NULL, "finding sysfs mount point"); -+ { log_notice(lc, "finding sysfs mount point"); return NULL; } - - if ((ret = dbg_malloc(strlen(sysfs_mp) + strlen(path) + 1))) - sprintf(ret, "%s%s", sysfs_mp, path); -@@ -315,7 +315,7 @@ - } else { - sysfs = 0; - path = (char *) _PATH_DEV; -- log_print(lc, "carrying on with %s", path); -+ log_notice(lc, "carrying on with %s", path); - } - - if (!(d = opendir(path))) { diff --git a/package/dmraid/dmraid_library-linking-fix.patch b/package/dmraid/dmraid_library-linking-fix.patch deleted file mode 100644 index a1c33c7..0000000 --- a/package/dmraid/dmraid_library-linking-fix.patch +++ /dev/null @@ -1,15 +0,0 @@ -Why on earth are we trying to link against the libdir in DESTDIR? - -Signed-Off-By: Nigel Kukard -diff -ur dmraid_vanilla/1.0.0.rc15/tools/Makefile.in dmraid_library-linking-fix/1.0.0.rc15/tools/Makefile.in ---- dmraid_vanilla/1.0.0.rc15/tools/Makefile.in 2008-09-17 13:24:00.000000000 +0000 -+++ dmraid_library-linking-fix/1.0.0.rc15/tools/Makefile.in 2009-06-01 10:50:52.000000000 +0000 -@@ -56,7 +56,7 @@ - - dmraid: $(OBJECTS) $(top_srcdir)/lib/libdmraid.a - $(CC) -o $@ $(OBJECTS) $(LDFLAGS) -L$(top_srcdir)/lib \ -- -L$(DESTDIR)$(libdir) $(DMRAIDLIBS) $(LIBS) -+ $(DMRAIDLIBS) $(LIBS) - - install_dmraid_tools: $(TARGETS) - @echo "Installing $(TARGETS) in $(sbindir)"; \ diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk index 52326ea..f0622e3 100644 --- a/package/lvm2/lvm2.mk +++ b/package/lvm2/lvm2.mk @@ -17,11 +17,12 @@ LVM2_BINS = \ pvresize pvs pvscan vgcfgbackup vgcfgrestore \ vgchange vgck vgconvert vgcreate vgdisplay \ vgexport vgextend vgimport vgmerge vgmknodes \ - vgreduce vgremove vgrename vgs vgscan vgsplit + vgreduce vgremove vgrename vgs vgscan vgsplit \ + dmeventd # Make sure that binaries and libraries are installed with write # permissions for the owner. -LVM2_CONF_OPT += --enable-write_install +LVM2_CONF_OPT += --enable-write_install --enable-cmdlib --enable-dmeventd # LVM2 uses autoconf, but not automake, and the build system does not # take into account the CC passed at configure time.