RCS file: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-3.0.1.ebuild,v retrieving revision 1.1 diff -u -b -B -w -p -r1.1 valgrind-3.0.1.ebuild --- valgrind-3.0.1.ebuild 30 Aug 2005 20:01:54 -0000 1.1 +++ valgrind-3.0.1.ebuild 2 Nov 2005 13:06:04 -0000 @@ -20,6 +20,10 @@ src_unpack() { unpack ${A} cd "${S}" + epatch "${FILESDIR}"/valgrind-3.0.1-pic-fix.patch + aclocal + automake + # make sure our CFLAGS are respected einfo "Changing configure to respect CFLAGS" sed -i -e 's:CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure
Created attachment 71926 [details, diff] valgrind-3.0.1-pic-fix.patch Corrects the miscompiled tools
http://bugs.kde.org/show_bug.cgi?id=115549
Created attachment 72002 [details, diff] fix for callgrind since it's valgrind related (and the problem/fix is the same), i'm attaching the patch to this bug. note that the file 'compile' has to be created, i don't know where it normally comes from, maybe there's a better way of producing it, running aclocal/autoconf/etc didn't do much but then i'm not the expert on this ;-). the corresponding ebuild needs the aclocal/automake run of course.
Valgrind fix has been applied. Caleb, please check out the patch in comment #3.
I'm not sure it's relevant anymore with the new release of callgrind.
(In reply to comment #5) > I'm not sure it's relevant anymore with the new release of callgrind. it is, 0.10.1 still doesn't supply -fPIC and happily creates text relocations.
the "compile" file comes from autotools, no need to patch it in
I've added the patch to callgrind-0.10.1-r1, removing the compile part of the patch and changing the directory of the Makefile.am patch from src/ to build30/. This ebuild also provides a build31/ directory, but it uses a bit different nomenclature so I didn't touch that. If we need to add a similar patch to that directory, please reopen and let me know.