summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Kolmodin <kolmodin@gentoo.org>2010-01-26 20:50:40 +0000
committerLennart Kolmodin <kolmodin@gentoo.org>2010-01-26 20:50:40 +0000
commit9aa50713a38cf8271e9be82abf65a0de368e0ed3 (patch)
treec3502891caf3b511e985034781c16f2bdd61241e /eclass/haskell-cabal.eclass
parentAnother sieve bump (diff)
downloadgentoo-2-9aa50713a38cf8271e9be82abf65a0de368e0ed3.tar.gz
gentoo-2-9aa50713a38cf8271e9be82abf65a0de368e0ed3.tar.bz2
gentoo-2-9aa50713a38cf8271e9be82abf65a0de368e0ed3.zip
haskell-cabal.eclass: Don't strip executables, let portage do it.
Diffstat (limited to 'eclass/haskell-cabal.eclass')
-rw-r--r--eclass/haskell-cabal.eclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
index fed53721cd45..083a895cdd08 100644
--- a/eclass/haskell-cabal.eclass
+++ b/eclass/haskell-cabal.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.17 2009/10/28 23:46:16 kolmodin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.18 2010/01/26 20:50:40 kolmodin Exp $
#
# Original authors: Andres Loeh <kosmikus@gentoo.org>
# Duncan Coutts <dcoutts@gentoo.org>
@@ -195,6 +195,16 @@ cabal-configure() {
cabalconf="${cabalconf} --disable-library-for-ghci"
fi
+ if version_is_at_least "1.4" "$(cabal-version)"; then
+ # disable executable stripping for the executables, as portage will
+ # strip by itself, and pre-stripping gives a QA warning.
+ # cabal versions previous to 1.4 does not strip executables, and does
+ # not accept the flag.
+ # this fixes numerous bugs, amongst them;
+ # bug #251881, bug #251882, bug #251884, bug #251886, bug #299494
+ cabalconf="${cabalconf} --disable-executable-stripping"
+ fi
+
if version_is_at_least "1.2.0" "$(cabal-version)"; then
cabalconf="${cabalconf} --docdir=/usr/share/doc/${PF}"
# As of Cabal 1.2, configure is quite quiet. For diagnostic purposes