summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-14 04:32:20 +0000
committerMike Frysinger <vapier@gentoo.org>2009-01-14 04:32:20 +0000
commit7716b34a2ffffc75be5d91f344572e32254174ba (patch)
tree66a6b3460a5084e23592f9a4fbbe6197554837be /dev-util/pretrace
parentFix building with newer glibc #247936 by Diego E. Pettenò. (diff)
downloadgentoo-2-7716b34a2ffffc75be5d91f344572e32254174ba.tar.gz
gentoo-2-7716b34a2ffffc75be5d91f344572e32254174ba.tar.bz2
gentoo-2-7716b34a2ffffc75be5d91f344572e32254174ba.zip
Fix by Bandan for building with newer glibc #227923.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64)
Diffstat (limited to 'dev-util/pretrace')
-rw-r--r--dev-util/pretrace/ChangeLog8
-rw-r--r--dev-util/pretrace/files/pretrace-0.4-build.patch15
-rw-r--r--dev-util/pretrace/pretrace-0.4.ebuild21
3 files changed, 30 insertions, 14 deletions
diff --git a/dev-util/pretrace/ChangeLog b/dev-util/pretrace/ChangeLog
index 6424df840cb6..cab0f840e04e 100644
--- a/dev-util/pretrace/ChangeLog
+++ b/dev-util/pretrace/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-util/pretrace
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/pretrace/ChangeLog,v 1.13 2008/09/25 14:32:29 hawking Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/pretrace/ChangeLog,v 1.14 2009/01/14 04:32:20 vapier Exp $
+
+ 14 Jan 2009; Mike Frysinger <vapier@gentoo.org>
+ +files/pretrace-0.4-build.patch, pretrace-0.4.ebuild:
+ Fix by Bandan for building with newer glibc #227923.
25 Sep 2008; Ali Polatel <hawking@gentoo.org> metadata.xml,
-pretrace-0.3.ebuild, -pretrace-0.3-r1.ebuild, pretrace-0.4.ebuild:
diff --git a/dev-util/pretrace/files/pretrace-0.4-build.patch b/dev-util/pretrace/files/pretrace-0.4-build.patch
new file mode 100644
index 000000000000..4d7056fa83f7
--- /dev/null
+++ b/dev-util/pretrace/files/pretrace-0.4-build.patch
@@ -0,0 +1,15 @@
+fix building with newer glibc
+
+http://bugs.gentoo.org/227923
+
+--- pretrace.h
++++ pretrace.h
+@@ -20,3 +20,8 @@
+ #include <sys/time.h>
+ # define RANDOMIZE(x) { struct timeval tv; gettimeofday(&tv, NULL); x = tv.tv_usec; }
+ #endif
++
++#include <unistd.h>
++#ifndef ARG_MAX
++# define ARG_MAX sysconf(_SC_ARG_MAX)
++#endif
diff --git a/dev-util/pretrace/pretrace-0.4.ebuild b/dev-util/pretrace/pretrace-0.4.ebuild
index 2b55af160305..a77373278a7f 100644
--- a/dev-util/pretrace/pretrace-0.4.ebuild
+++ b/dev-util/pretrace/pretrace-0.4.ebuild
@@ -1,32 +1,29 @@
-# 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/dev-util/pretrace/pretrace-0.4.ebuild,v 1.5 2008/09/25 14:32:29 hawking Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/pretrace/pretrace-0.4.ebuild,v 1.6 2009/01/14 04:32:20 vapier Exp $
-inherit toolchain-funcs flag-o-matic multilib
+inherit eutils multilib
-DESCRIPTION="Start dynamically linked applications under debugging environment"
+DESCRIPTION="start dynamically linked applications under debugging environment"
HOMEPAGE="http://dev.inversepath.com/trac/pretrace"
SRC_URI="http://dev.inversepath.com/pretrace/libpretrace-${PV}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
-DEPEND="virtual/libc"
+
S="${WORKDIR}/lib${P}"
src_unpack() {
unpack ${A}
+ cd "${S}"
epatch "${FILESDIR}"/${P}--as-needed.diff
-}
-
-src_compile() {
- emake || die
+ epatch "${FILESDIR}"/${P}-build.patch #227923
}
src_install() {
- dodir /usr/share/man/man{3,8}
- dodir /usr/bin
-
+ dodir /usr/bin /usr/share/man/man{3,8}
einstall LIBDIR="${D}/usr/$(get_libdir)" PREFIX="${D}/usr" || die
prepalldocs
}