summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-17 03:40:40 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-17 03:40:40 +0000
commit63bea79584c6f30cb07eb45e40126ec1d8ff7480 (patch)
tree34107c45ad354818e8387b9129407bdc0e3d9690 /sys-fs
parentold (diff)
downloadgentoo-2-63bea79584c6f30cb07eb45e40126ec1d8ff7480.tar.gz
gentoo-2-63bea79584c6f30cb07eb45e40126ec1d8ff7480.tar.bz2
gentoo-2-63bea79584c6f30cb07eb45e40126ec1d8ff7480.zip
Fix segfault #119245 by Nathan Blomquist.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/mdadm/ChangeLog8
-rw-r--r--sys-fs/mdadm/files/digest-mdadm-2.2-r11
-rw-r--r--sys-fs/mdadm/files/mdadm-2.2-update-segv.patch16
-rw-r--r--sys-fs/mdadm/mdadm-2.2-r1.ebuild44
4 files changed, 68 insertions, 1 deletions
diff --git a/sys-fs/mdadm/ChangeLog b/sys-fs/mdadm/ChangeLog
index b3d9632976d2..50d38800e208 100644
--- a/sys-fs/mdadm/ChangeLog
+++ b/sys-fs/mdadm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-fs/mdadm
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.21 2006/01/11 05:02:17 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.22 2006/01/17 03:40:40 vapier Exp $
+
+*mdadm-2.2-r1 (17 Jan 2006)
+
+ 17 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/mdadm-2.2-update-segv.patch, +mdadm-2.2-r1.ebuild:
+ Fix segfault #119245 by Nathan Blomquist.
*mdadm-2.2 (11 Jan 2006)
diff --git a/sys-fs/mdadm/files/digest-mdadm-2.2-r1 b/sys-fs/mdadm/files/digest-mdadm-2.2-r1
new file mode 100644
index 000000000000..a6a8374d21f2
--- /dev/null
+++ b/sys-fs/mdadm/files/digest-mdadm-2.2-r1
@@ -0,0 +1 @@
+MD5 c8df672f809aa4a43a88a2516d421d6e mdadm-2.2.tar.bz2 106815
diff --git a/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch b/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch
new file mode 100644
index 000000000000..1c1e37ecf4b2
--- /dev/null
+++ b/sys-fs/mdadm/files/mdadm-2.2-update-segv.patch
@@ -0,0 +1,16 @@
+Fix segfault when update is NULL
+
+http://bugs.gentoo.org/119245
+http://www.mail-archive.com/linux-raid@vger.kernel.org/msg03242.html
+
+--- Assemble.c
++++ Assemble.c
+@@ -219,7 +219,7 @@
+ }
+ if (dfd >= 0) close(dfd);
+
+- if (ident->uuid_set && (!update && strcmp(update, "uuid")!= 0) &&
++ if (ident->uuid_set && update && strcmp(update, "uuid")!= 0 &&
+ (!super || same_uuid(info.uuid, ident->uuid, tst->ss->swapuuid)==0)) {
+ if ((inargv && verbose >= 0) || verbose > 0)
+ fprintf(stderr, Name ": %s has wrong uuid.\n",
diff --git a/sys-fs/mdadm/mdadm-2.2-r1.ebuild b/sys-fs/mdadm/mdadm-2.2-r1.ebuild
new file mode 100644
index 000000000000..35708ffabfc8
--- /dev/null
+++ b/sys-fs/mdadm/mdadm-2.2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-2.2-r1.ebuild,v 1.1 2006/01/17 03:40:40 vapier Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
+HOMEPAGE="http://cgi.cse.unsw.edu.au/~neilb/mdadm"
+SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~mips"
+IUSE="static"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=sys-apps/portage-2.0.51"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-update-segv.patch #119245
+ epatch "${FILESDIR}"/${PN}-1.9.0-dont-make-man.patch
+ use static && append-ldflags -static
+}
+
+src_compile() {
+ emake \
+ CWFLAGS="-Wall" \
+ CXFLAGS="${CFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ exeinto /$(get_libdir)/rcscripts/addons
+ doexe "${FILESDIR}"/raid-{start,stop}.sh || die "addon failed"
+ dodoc INSTALL TODO "ANNOUNCE-${PV}"
+
+ insinto /etc
+ newins mdadm.conf-example mdadm.conf
+ newinitd "${FILESDIR}"/mdadm.rc mdadm
+}