summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-28 21:36:14 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-28 21:36:14 +0000
commitc0e031c4fb4133b96d5b909432266ded45a924e1 (patch)
tree7f8be734fc092fa0926d8d37aa1c17f83a79ab73 /sys-fs
parentAdded man page fix, removed coreutils-5.0 (diff)
downloadgentoo-2-c0e031c4fb4133b96d5b909432266ded45a924e1.tar.gz
gentoo-2-c0e031c4fb4133b96d5b909432266ded45a924e1.tar.bz2
gentoo-2-c0e031c4fb4133b96d5b909432266ded45a924e1.zip
Update the lseek patch to fix mkraid issues on amd64 #93694 by Radek "rush" Senfeld.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/raidtools/ChangeLog9
-rw-r--r--sys-fs/raidtools/files/digest-raidtools-1.00.3-r61
-rw-r--r--sys-fs/raidtools/files/raidtools-1.00.3-PIC.patch9
-rw-r--r--sys-fs/raidtools/raidtools-1.00.3-r6.ebuild55
4 files changed, 71 insertions, 3 deletions
diff --git a/sys-fs/raidtools/ChangeLog b/sys-fs/raidtools/ChangeLog
index 08e6053d27fa..54d8a41b9b3e 100644
--- a/sys-fs/raidtools/ChangeLog
+++ b/sys-fs/raidtools/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-fs/raidtools
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/ChangeLog,v 1.20 2005/05/19 22:16:16 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/ChangeLog,v 1.21 2005/05/28 21:36:14 vapier Exp $
+
+*raidtools-1.00.3-r6 (28 May 2005)
+
+ 28 May 2005; Mike Frysinger <vapier@gentoo.org>
+ files/raidtools-1.00.3-PIC.patch, +raidtools-1.00.3-r6.ebuild:
+ Update the lseek patch to fix mkraid issues on amd64 #93694 by Radek "rush"
+ Senfeld.
*raidtools-1.00.3-r5 (19 May 2005)
diff --git a/sys-fs/raidtools/files/digest-raidtools-1.00.3-r6 b/sys-fs/raidtools/files/digest-raidtools-1.00.3-r6
new file mode 100644
index 000000000000..8b9f5451a2c5
--- /dev/null
+++ b/sys-fs/raidtools/files/digest-raidtools-1.00.3-r6
@@ -0,0 +1 @@
+MD5 cb41f8093cd7381ee07adb2951cc53fa raidtools-1.00.3.tar.gz 167779
diff --git a/sys-fs/raidtools/files/raidtools-1.00.3-PIC.patch b/sys-fs/raidtools/files/raidtools-1.00.3-PIC.patch
index 756ff21a4049..65518a2836f9 100644
--- a/sys-fs/raidtools/files/raidtools-1.00.3-PIC.patch
+++ b/sys-fs/raidtools/files/raidtools-1.00.3-PIC.patch
@@ -1,5 +1,10 @@
Fix building with -fPIC
http://bugs.gentoo.org/show_bug.cgi?id=34712
+(note: this is outdated since we fixed the PIC issues in our linux-headers
+ebuilds when doing syscall()'s on x86)
+
+Fix running on amd64
+http://bugs.gentoo.org/show_bug.cgi?id=93694
--- raidtools-1.00.3/raid_io.c
+++ raidtools-1.00.3/raid_io.c
@@ -8,7 +13,7 @@ http://bugs.gentoo.org/show_bug.cgi?id=34712
#undef F
-#if !(defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__))
-+#if !(defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__) || defined(__PIC__))
++#if !(defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__) || defined(__x86_64__) || defined(__PIC__))
# ifndef __NR__llseek
# ifdef __sparc__
# define __NR__llseek 236
@@ -17,7 +22,7 @@ http://bugs.gentoo.org/show_bug.cgi?id=34712
int retval;
-#if defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__)
-+#if defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__) || defined(__PIC__)
++#if defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__) || defined(__x86_64__) || defined(__PIC__)
return lseek(fd, offset, SEEK_SET);
#else
retval = _llseek (fd, ((unsigned long long) offset) >> 32,
diff --git a/sys-fs/raidtools/raidtools-1.00.3-r6.ebuild b/sys-fs/raidtools/raidtools-1.00.3-r6.ebuild
new file mode 100644
index 000000000000..9fdfec12088e
--- /dev/null
+++ b/sys-fs/raidtools/raidtools-1.00.3-r6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/raidtools-1.00.3-r6.ebuild,v 1.1 2005/05/28 21:36:14 vapier Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Linux RAID 0/1/4/5 utilities"
+HOMEPAGE="http://people.redhat.com/mingo/raidtools/"
+SRC_URI="http://people.redhat.com/mingo/raidtools/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE=""
+
+# We link statically with popt so that libpopt can
+# live in /usr but keep critical raid binaries in /
+DEPEND="dev-libs/popt"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc33.patch
+ epatch "${FILESDIR}"/${P}-2.6.Headers.patch
+ epatch "${FILESDIR}"/${P}-mkraid.patch
+ epatch "${FILESDIR}"/${P}-s390x.patch
+ epatch "${FILESDIR}"/${P}-raidstop.patch
+ epatch "${FILESDIR}"/${P}-PIC.patch
+ epatch "${FILESDIR}"/${P}-quiet-raidstart.patch
+
+ # Buffer overflow fix
+ sed -i -e "/define MAX_LINE_LENGTH/s:100:1000:" common.h
+ # Don't create device nodes (pisses off selinux) #73928
+ sed -i \
+ -e '/^CFLAGS/s:-O2:@CFLAGS@:' \
+ -e "s:mknod:echo mknod means MonKey NOD:" \
+ Makefile.in || die "sed Makefile.in failed"
+}
+
+src_install() {
+ make install ROOTDIR="${D}" || die
+ insinto /$(get_libdir)/rcscripts/addons
+ doins "${FILESDIR}"/raid-start.sh || die "addon failed"
+
+ exeinto /etc/cron.daily
+ newexe "${FILESDIR}"/raidtools.cron raidtools
+
+ doman *.8 *.5
+ dodoc README *raidtab raidreconf-HOWTO reconf.notes retry summary \
+ Software-RAID.HOWTO/Software-RAID.HOWTO.txt
+ dohtml Software-RAID.HOWTO/Software-RAID.HOWTO.html
+ docinto config
+ dodoc *.sample
+}