summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-08-05 19:50:07 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-08-05 19:50:07 +0000
commit941cc41369745316c6287b61517020774ee79aef (patch)
tree9cea06c5d6c9f078873a7c2f2d0ccaff07fc0c48 /sys-block
parentRemove older ebuilds. Remove most keywords from 1.5.6. (diff)
downloadhistorical-941cc41369745316c6287b61517020774ee79aef.tar.gz
historical-941cc41369745316c6287b61517020774ee79aef.tar.bz2
historical-941cc41369745316c6287b61517020774ee79aef.zip
Fix building with GLIBC 2.10+ wrt #278182.
Package-Manager: portage-2.2_rc36/cvs/Linux x86_64
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/scsirastools/ChangeLog8
-rw-r--r--sys-block/scsirastools/Manifest15
-rw-r--r--sys-block/scsirastools/files/scsirastools-1.5.6-glibc-2.10.patch87
-rw-r--r--sys-block/scsirastools/scsirastools-1.5.6.ebuild16
4 files changed, 105 insertions, 21 deletions
diff --git a/sys-block/scsirastools/ChangeLog b/sys-block/scsirastools/ChangeLog
index 03b0c0b7f698..dd7e1d248599 100644
--- a/sys-block/scsirastools/ChangeLog
+++ b/sys-block/scsirastools/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-block/scsirastools
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/scsirastools/ChangeLog,v 1.7 2008/06/29 07:53:32 tove Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/scsirastools/ChangeLog,v 1.8 2009/08/05 19:50:07 ssuominen Exp $
+
+ 05 Aug 2009; Samuli Suominen <ssuominen@gentoo.org>
+ scsirastools-1.5.6.ebuild, +files/scsirastools-1.5.6-glibc-2.10.patch:
+ Fix building with GLIBC 2.10+ wrt #278182.
29 Jun 2008; Torsten Veller <tove@gentoo.org> scsirastools-1.5.4.ebuild,
scsirastools-1.5.6.ebuild:
diff --git a/sys-block/scsirastools/Manifest b/sys-block/scsirastools/Manifest
index 84f7d750547e..e14249f5dae8 100644
--- a/sys-block/scsirastools/Manifest
+++ b/sys-block/scsirastools/Manifest
@@ -1,16 +1,7 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+AUX scsirastools-1.5.6-glibc-2.10.patch 3881 RMD160 f31e3d706a9676841c3a25ebfaa8e99be3e29fd3 SHA1 56dba9da173852eaffcc882b7a2719c7cdca9eea SHA256 61de850cfca403beb76c2cfaaf3a9c01b45bc5a6a0080c1e4ccf799975df5fd9
DIST scsirastools-1.5.4.tar.gz 632340 RMD160 6e3d797b4c0d3274108ce65e3aa60f2f4da559e5 SHA1 93c5f67fb10bc0ea7c8888557b0afeda21bd6bf4 SHA256 d22c4917d8d2277710ea6bd4742874a62fc5666154ee6715966216daa865297c
DIST scsirastools-1.5.6.tar.gz 549895 RMD160 1ec760e644d43fb9d31204b79075df66511fc95a SHA1 a94afd4c8666cde2ccc5f4c8c985634ead2d68a9 SHA256 fc3663bdd78ef14c75cc45d1922329a1be80a433627b4936593175f728b5b48a
EBUILD scsirastools-1.5.4.ebuild 1597 RMD160 2af4b3831a40687a39f52820841818f6f94f0df3 SHA1 1f393f59e36bf49123679f819a308c78259ef21d SHA256 92769beb47ba679bcb6ed1bf8597cd569370a24291c3f01ff966491cde55b418
-EBUILD scsirastools-1.5.6.ebuild 1609 RMD160 e49573c5b731e881b6b475ae5bcdb30f5c1da3d1 SHA1 8a879a9203c9e96aaa58ba1cc3d49fa8d4139678 SHA256 ea2aad81c202a01b85a350f5fc06cf259b88ffa8f8fe8a9dc28f461db764eeae
-MISC ChangeLog 1241 RMD160 d7ffb1c67aa00829b71d9a6d4156ad5b0b18a401 SHA1 3e74fa65cf8ded2e7b4ac6b6adfeea87b2ba70a8 SHA256 a4ff7c02b479b2223b44a79a5c83c6943a6202bc5055b1eb8a898ffb1613c9ad
+EBUILD scsirastools-1.5.6.ebuild 1660 RMD160 88ddb1668752c9b21435e542994b420dfbf85cde SHA1 8bad1b4122cd9bf4d8d5d60f099c36e292562166 SHA256 9d5cf27f4f60136962a86beede34b7cf49ce6539336f7b5d6133df6818380a7d
+MISC ChangeLog 1419 RMD160 a92654b27cb3d5f949c7776db7092aa87996e5bc SHA1 27b3d4d77c2cb69cbb40ec158bfe2bff61510005 SHA256 2754de094c720ffc623ebbacb556cee4a4d1eb7f029ee922d05d881d84d04cc6
MISC metadata.xml 223 RMD160 ffa99612cf27469c417944deed0e0c9155e64331 SHA1 607c637402dd253406aa6ee684471a702c5d1a99 SHA256 d6bb9ba68629616062b4433ab3b8fb01dfcafae5bb47804d9e06cdd6c66daa44
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkhnP4IACgkQV3J2n04Eauw8/gCgwyIy5ed5Yw4nLDC4lL93DeTM
-M4wAn0unBzr/5QCF0XUBDQgr11BguVet
-=9XNA
------END PGP SIGNATURE-----
diff --git a/sys-block/scsirastools/files/scsirastools-1.5.6-glibc-2.10.patch b/sys-block/scsirastools/files/scsirastools-1.5.6-glibc-2.10.patch
new file mode 100644
index 000000000000..de874bad2911
--- /dev/null
+++ b/sys-block/scsirastools/files/scsirastools-1.5.6-glibc-2.10.patch
@@ -0,0 +1,87 @@
+diff -ur scsirastools-1.5.6.orig/src/getmd.c scsirastools-1.5.6/src/getmd.c
+--- scsirastools-1.5.6.orig/src/getmd.c 2007-02-02 21:16:38.000000000 +0200
++++ scsirastools-1.5.6/src/getmd.c 2009-08-05 22:51:00.000000000 +0300
+@@ -81,7 +81,7 @@
+ } else return (-1); /*not found*/
+ }
+
+-static int getline(FILE * fd, char *buf, int len)
++static int get_line(FILE * fd, char *buf, int len)
+ {
+ int i;
+ int ch;
+@@ -119,7 +119,7 @@
+ sraidstr = strlen(raidstr);
+ strcpy(mdpart, "/dev/sda1"); /* default */
+ strcpy(rdev, "/dev/md0"); /* default */
+- while ((rlen = getline(fd, buf, 80)) > 0) { /* process each line */
++ while ((rlen = get_line(fd, buf, 80)) > 0) { /* process each line */
+ buf[rlen] = 0; /* stringify */
+ /* look for raiddev string */
+ i = findmatch(buf, rlen, raidstr, sraidstr, 0);
+diff -ur scsirastools-1.5.6.orig/src/sgraidmon.c scsirastools-1.5.6/src/sgraidmon.c
+--- scsirastools-1.5.6.orig/src/sgraidmon.c 2007-10-16 01:15:15.000000000 +0300
++++ scsirastools-1.5.6/src/sgraidmon.c 2009-08-05 22:51:00.000000000 +0300
+@@ -330,7 +330,7 @@
+ rdev[0] = 0; /* default rdev (mddev) */
+ strcpy(mdpart, "/dev/sdz1"); /* default mdpart */
+ foundit = 0;
+- while ((rlen = getline(fd, buf, 80)) > 0) { /* process each line */
++ while ((rlen = get_line(fd, buf, 80)) > 0) { /* process each line */
+ buf[rlen] = 0; /* stringify */
+ /* check for comment */
+ if (buf[0] == '#') continue;
+@@ -392,7 +392,7 @@
+ if (fd == NULL) return (np);
+ sraidstr = strlen(raidstr);
+ sdevstr = strlen(devstr);
+- while ((rlen = getline(fd, buf, 80)) > 0) { /* process each line */
++ while ((rlen = get_line(fd, buf, 80)) > 0) { /* process each line */
+ buf[rlen] = 0; /* stringify */
+ /* check for comment */
+ if (buf[0] == '#') continue;
+diff -ur scsirastools-1.5.6.orig/src/sgsafte.c scsirastools-1.5.6/src/sgsafte.c
+--- scsirastools-1.5.6.orig/src/sgsafte.c 2007-09-13 00:45:29.000000000 +0300
++++ scsirastools-1.5.6/src/sgsafte.c 2009-08-05 22:51:00.000000000 +0300
+@@ -231,7 +231,7 @@
+ rdev[0] = 0; /* default rdev (mddev) */
+ strcpy(mdpart, "/dev/sdz1"); /* default mdpart */
+ foundit = 0;
+- while ((rlen = getline(fd, buf, 80)) > 0) { /* process each line */
++ while ((rlen = get_line(fd, buf, 80)) > 0) { /* process each line */
+ buf[rlen] = 0; /* stringify */
+ /* look for raiddev string */
+ i = findmatch(buf, rlen, raidstr, sraidstr, 0);
+@@ -284,7 +284,7 @@
+ fd = fopen(raidfile, "r");
+ if (fd == NULL) return (np);
+ sraidstr = strlen(raidstr);
+- while ((rlen = getline(fd, buf, 80)) > 0) { /* process each line */
++ while ((rlen = get_line(fd, buf, 80)) > 0) { /* process each line */
+ buf[rlen] = 0; /* stringify */
+ /* look for raiddev string */
+ i = findmatch(buf, rlen, raidstr, sraidstr, 0);
+diff -ur scsirastools-1.5.6.orig/src/sgsubmon.c scsirastools-1.5.6/src/sgsubmon.c
+--- scsirastools-1.5.6.orig/src/sgsubmon.c 2007-10-16 17:03:39.000000000 +0300
++++ scsirastools-1.5.6/src/sgsubmon.c 2009-08-05 22:51:00.000000000 +0300
+@@ -159,7 +159,7 @@
+ return;
+ }
+
+-int getline(FILE * fd, char *buf, int len)
++int get_line(FILE * fd, char *buf, int len)
+ {
+ int i;
+ int ch;
+diff -ur scsirastools-1.5.6.orig/src/sgsubmon.h scsirastools-1.5.6/src/sgsubmon.h
+--- scsirastools-1.5.6.orig/src/sgsubmon.h 2007-09-13 00:38:28.000000000 +0300
++++ scsirastools-1.5.6/src/sgsubmon.h 2009-08-05 22:50:59.000000000 +0300
+@@ -124,7 +124,7 @@
+ void itoh(uchar * chp, int len, char *str);
+ void dumpbufr(FILE * fdout, uchar * bufp, int mlen, char *hdr);
+ void dump_buf(FILE * fdout, uchar * bufp, int mlen, char *hdr, char fascii);
+-int getline(FILE * fd, char *buf, int len) ;
++int get_line(FILE * fd, char *buf, int len) ;
+ int findmatch(char *buffer,int sbuf, char *pattern,int spattern,char figncase);
+ int fillstr(char *to, uchar *from,int len);
+ int IsSATA(int idev);
diff --git a/sys-block/scsirastools/scsirastools-1.5.6.ebuild b/sys-block/scsirastools/scsirastools-1.5.6.ebuild
index aa5ce69ef7f4..a0a7878ba7ad 100644
--- a/sys-block/scsirastools/scsirastools-1.5.6.ebuild
+++ b/sys-block/scsirastools/scsirastools-1.5.6.ebuild
@@ -1,20 +1,21 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/scsirastools/scsirastools-1.5.6.ebuild,v 1.2 2008/06/29 07:53:32 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-block/scsirastools/scsirastools-1.5.6.ebuild,v 1.3 2009/08/05 19:50:07 ssuominen Exp $
-inherit autotools
+inherit autotools eutils
DESCRIPTION="Serviceability for SCSI Disks and Arrays"
HOMEPAGE="http://scsirastools.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE=""
-DEPEND="virtual/libc
- sys-apps/rescan-scsi-bus
- sys-apps/sg3_utils"
-#RDEPEND=""
+
+RDEPEND="sys-apps/rescan-scsi-bus
+ sys-apps/sg3_utils"
+DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
@@ -25,6 +26,7 @@ src_unpack() {
-e '/^SUBDIRS/s,files,,' \
"${S}"/Makefile.am || die "sed Makefile.am failed"
cd "${S}"
+ epatch "${FILESDIR}"/${P}-glibc-2.10.patch
eautoreconf
# i386 ELF binaries in tarball = bad
rm -f "${S}"/files/alarms*