summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2009-08-30 21:44:23 +0000
committerSteve Arnold <nerdboy@gentoo.org>2009-08-30 21:44:23 +0000
commit8f4381b928b59e2d4e46d7f0f3720233d540562c (patch)
tree2fefe71d96a1d9a17b08301f5fc691c635f6afe2 /dev-util/duma
parentReenable test_math.py and test_pow.py on alpha (bug #282786). (diff)
downloadgentoo-2-8f4381b928b59e2d4e46d7f0f3720233d540562c.tar.gz
gentoo-2-8f4381b928b59e2d4e46d7f0f3720233d540562c.tar.bz2
gentoo-2-8f4381b928b59e2d4e46d7f0f3720233d540562c.zip
Back-ported several build and QA fixes from 2.5.15 (closes bug 279118).
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/duma')
-rw-r--r--dev-util/duma/ChangeLog5
-rw-r--r--dev-util/duma/duma-2.5.13.ebuild18
2 files changed, 15 insertions, 8 deletions
diff --git a/dev-util/duma/ChangeLog b/dev-util/duma/ChangeLog
index 3af946259f05..08fcdac4e5b7 100644
--- a/dev-util/duma/ChangeLog
+++ b/dev-util/duma/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-util/duma
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/duma/ChangeLog,v 1.10 2009/08/01 20:00:23 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/duma/ChangeLog,v 1.11 2009/08/30 21:44:23 nerdboy Exp $
+
+ 30 Aug 2009; Steve Arnold <nerdboy@gentoo.org> duma-2.5.13.ebuild:
+ Back-ported several build and QA fixes from 2.5.15 (closes bug 279118).
*duma-2.5.15 (01 Aug 2009)
diff --git a/dev-util/duma/duma-2.5.13.ebuild b/dev-util/duma/duma-2.5.13.ebuild
index d42a23c59f9f..96d3b1b2988d 100644
--- a/dev-util/duma/duma-2.5.13.ebuild
+++ b/dev-util/duma/duma-2.5.13.ebuild
@@ -1,11 +1,10 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/duma/duma-2.5.13.ebuild,v 1.5 2009/04/01 00:47:27 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/duma/duma-2.5.13.ebuild,v 1.6 2009/08/30 21:44:23 nerdboy Exp $
-inherit eutils toolchain-funcs versionator
+inherit eutils flag-o-matic multilib toolchain-funcs versionator
MY_P="${PN}_$(replace_all_version_separators '_')"
-S="${WORKDIR}/${MY_P}"
DESCRIPTION="DUMA (Detect Unintended Memory Access) is a memory debugging library."
HOMEPAGE="http://duma.sourceforge.net/"
@@ -21,6 +20,8 @@ DEPEND="virtual/libc"
RDEPEND="${DEPEND}
app-shells/bash"
+S="${WORKDIR}/${MY_P}"
+
pkg_setup() {
#DUMA_OPTIONS="-DDUMA_LIB_NO_LEAKDETECTION"
DUMA_OPTIONS="-DDUMA_USE_FRAMENO"
@@ -44,11 +45,14 @@ src_unpack(){
}
src_compile(){
+ replace-flags O? O0
+ append-flags -Wall -Wextra -U_FORTIFY_SOURCE
+ tc-export AR CC CXX LD RANLIB
+
use amd64 && export DUMA_ALIGNMENT=16
- # append-flags doesn't work here (stupid static makefile) and neither
- # does distcc :(
- make CFLAGS="${DUMA_OPTIONS} ${CFLAGS}" CC=$(tc-getCC) \
- || die "make failed"
+
+ make CPPFLAGS="${DUMA_OPTIONS}" reconfig || die "make reconfig failed"
+ emake CFLAGS="${CFLAGS}" CC=$(tc-getCC) || die "make failed"
}
src_test() {