summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-08-09 14:21:54 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-08-09 14:21:54 +0000
commitd8888d923a9043c8b10f165a4b2f4752237ff872 (patch)
treef2dd5bc82a5210324f9997e5050a6e963140e5ec /sci-biology/piler
parentMasking dev-db/sqsh for QA removal. (diff)
downloadgentoo-2-d8888d923a9043c8b10f165a4b2f4752237ff872.tar.gz
gentoo-2-d8888d923a9043c8b10f165a4b2f4752237ff872.tar.bz2
gentoo-2-d8888d923a9043c8b10f165a4b2f4752237ff872.zip
Fix building with GLIBC 2.10+ wrt #279628.
(Portage version: 2.2_rc36/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology/piler')
-rw-r--r--sci-biology/piler/ChangeLog6
-rw-r--r--sci-biology/piler/files/piler-1.0-glibc-2.10.patch12
-rw-r--r--sci-biology/piler/piler-1.0.ebuild10
3 files changed, 24 insertions, 4 deletions
diff --git a/sci-biology/piler/ChangeLog b/sci-biology/piler/ChangeLog
index febfd2d46abc..e3c0a686565e 100644
--- a/sci-biology/piler/ChangeLog
+++ b/sci-biology/piler/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-biology/piler
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/piler/ChangeLog,v 1.1 2009/07/25 18:15:30 weaver Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/piler/ChangeLog,v 1.2 2009/08/09 14:21:54 ssuominen Exp $
+
+ 09 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> piler-1.0.ebuild,
+ +files/piler-1.0-glibc-2.10.patch:
+ Fix building with GLIBC 2.10+ wrt #279628.
*piler-1.0 (25 Jul 2009)
diff --git a/sci-biology/piler/files/piler-1.0-glibc-2.10.patch b/sci-biology/piler/files/piler-1.0-glibc-2.10.patch
new file mode 100644
index 000000000000..4c7f124c5e3d
--- /dev/null
+++ b/sci-biology/piler/files/piler-1.0-glibc-2.10.patch
@@ -0,0 +1,12 @@
+diff -ur piler.orig/gff.cpp piler/gff.cpp
+--- piler.orig/gff.cpp 2004-12-18 01:25:29.000000000 +0200
++++ piler/gff.cpp 2009-08-09 17:22:33.000000000 +0300
+@@ -70,7 +70,7 @@
+ const char *Attrs = Fields[8];
+
+ // Truncate attrs if comment found
+- char *Pound = strchr(Attrs, '#');
++ char *Pound = const_cast <char*> (strchr(Attrs, '#'));
+ if (0 != Pound)
+ *Pound = 0;
+
diff --git a/sci-biology/piler/piler-1.0.ebuild b/sci-biology/piler/piler-1.0.ebuild
index 674cd82f6af9..1d392d586281 100644
--- a/sci-biology/piler/piler-1.0.ebuild
+++ b/sci-biology/piler/piler-1.0.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/piler/piler-1.0.ebuild,v 1.1 2009/07/25 18:15:30 weaver Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/piler/piler-1.0.ebuild,v 1.2 2009/08/09 14:21:54 ssuominen Exp $
EAPI="2"
-inherit toolchain-funcs
+inherit eutils toolchain-funcs
DESCRIPTION="Analysis of repetitive DNA found in genome sequences"
HOMEPAGE="http://www.drive5.com/piler/"
@@ -21,7 +21,11 @@ RDEPEND="|| ( sci-biology/muscle
sci-libs/libmuscle )
sci-biology/pals"
-S="${WORKDIR}"
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-glibc-2.10.patch
+}
src_compile() {
emake GPP="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" || die