diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2012-01-08 14:43:32 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-01-08 14:43:32 -0500 |
commit | 0748e9e370a8540a27f849571256851e962c19e0 (patch) | |
tree | 31145a402a13cf76af7bae856faa867b97fc7caa /dev-util | |
parent | sys-kernel/rsbac-sources: moved to tree (diff) | |
download | blueness-0748e9e370a8540a27f849571256851e962c19e0.tar.gz blueness-0748e9e370a8540a27f849571256851e962c19e0.tar.bz2 blueness-0748e9e370a8540a27f849571256851e962c19e0.zip |
dev-util/valgrind: moved to tree, bug #397429
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/valgrind/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/valgrind/Manifest | 20 | ||||
-rw-r--r-- | dev-util/valgrind/files/valgrind-3.6.0-local-labels.patch | 24 | ||||
-rw-r--r-- | dev-util/valgrind/files/valgrind-3.7.0-automake-1.11.2.patch | 37 | ||||
-rw-r--r-- | dev-util/valgrind/files/valgrind-3.7.0-fix-gcc-regex.patch | 35 | ||||
-rw-r--r-- | dev-util/valgrind/files/valgrind-3.7.0-fno-stack-protector.patch | 12 | ||||
-rw-r--r-- | dev-util/valgrind/files/valgrind-3.7.0-non-exec-stack.patch | 138 | ||||
-rw-r--r-- | dev-util/valgrind/files/valgrind-3.7.0-respect-flags.patch | 13 | ||||
-rw-r--r-- | dev-util/valgrind/metadata.xml | 23 | ||||
-rw-r--r-- | dev-util/valgrind/valgrind-3.7.0-r2.ebuild | 88 |
10 files changed, 0 insertions, 398 deletions
diff --git a/dev-util/valgrind/ChangeLog b/dev-util/valgrind/ChangeLog deleted file mode 100644 index c555d56..0000000 --- a/dev-util/valgrind/ChangeLog +++ /dev/null @@ -1,8 +0,0 @@ -# ChangeLog for dev-util/valgrind -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - - 07 Jan 2012; Anthony G. Basile <blueness@gentoo.org> - files/valgrind-3.7.0-automake-1.11.2.patch: - Testing patch from https://bugs.kde.org/show_bug.cgi?id=290719 - diff --git a/dev-util/valgrind/Manifest b/dev-util/valgrind/Manifest deleted file mode 100644 index 9b544fd..0000000 --- a/dev-util/valgrind/Manifest +++ /dev/null @@ -1,20 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - -AUX valgrind-3.6.0-local-labels.patch 1388 RMD160 e9c0064d1e857f1e616c5d9ca7a03e78eae3d5ab SHA1 173820d5671f56c864850c2d8df9d6d301dfda38 SHA256 34ae13eda378677f1e662e0813f138de9b897d6592d20872c58ed8ac1bcf7def -AUX valgrind-3.7.0-automake-1.11.2.patch 1436 RMD160 f0c1275c3eaebf8765232dde57557903ba1e07bc SHA1 1604c3060d51dd7ebbe554901ec19632924d4520 SHA256 c5cf935bcb74c1e890183602d34a3d86eae65844cfe034e517dc3667e48b278d -AUX valgrind-3.7.0-fix-gcc-regex.patch 1723 RMD160 f4fdc113f58d7151315f6a65a262471d4f8a75db SHA1 7ed537bcc935a40001a3d11fbff353e9cee342d5 SHA256 3a587d7dcc1ed447cc006cfef0cfb3597f17c96ac8adc7adbdc14d313a1d6852 -AUX valgrind-3.7.0-fno-stack-protector.patch 554 RMD160 df9a699ff35cf867e17b04a200c5e68015955167 SHA1 ed6368061d47448a597f6a2a9635f66e244b5a13 SHA256 83ed90a0e8a8b06dca8aad4e7f1a12e3c84621d502427c0913b72740b310f479 -AUX valgrind-3.7.0-non-exec-stack.patch 5644 RMD160 86178ee97653b2b4074e98e2342c5104583fa759 SHA1 8074a41b2e8915fa3a63ce827a14088949057bed SHA256 4de10480b6e27379083203df3cfedccdace68d0aad611440478ca2f1b2f89751 -AUX valgrind-3.7.0-respect-flags.patch 360 RMD160 b3ca9a393a68d312fa12cd272720e67c8661cfc4 SHA1 2ca0d9474bd4a81d45981bc8433359832d1ce8b9 SHA256 6b1e5938ecafc29428a698296423c71924848b1e746d6ee8a0f1dd91141f1019 -DIST valgrind-3.7.0.tar.bz2 6624216 RMD160 6ffbf04a8ff4eb2555d1a6bd87c0656828830761 SHA1 b412f49895bb8a78fc314047119760b5d36e5b5e SHA256 5d62c0330f1481fe2c593249192fa68ff454c19c34343978cc9ce91aa324cbf6 -EBUILD valgrind-3.7.0-r2.ebuild 2827 RMD160 2bd96b971686e20678b49de02f9a705db9c7ca2f SHA1 c24fc712b76261be8161a3939f9ae443b983ef45 SHA256 abae11fa86b3c4d8f445d7337e1078b563952b7b09bf70c216c260065bbe850e -MISC ChangeLog 285 RMD160 8c9003156bddb7e8ea454ad564e3047112450385 SHA1 175ba4f2588f532bcab97e199c4c663569c7bf91 SHA256 559c7ad8bcf2de8fdb4bc9271ac63c3c53bf0460918ac0ea65570339f133b942 -MISC metadata.xml 980 RMD160 7441340fd2659400fb15d857446dac8f7b3f1176 SHA1 07af40cb309fcd80ca639dea5110b1109ce72427 SHA256 513a0d653dfae858a7f426745bd0abe5dcbc8748d468310fdce156e0e21e2cd0 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) - -iEYEAREIAAYFAk8HnBMACgkQl5yvQNBFVTWhkACeLaA7lEqlDnWpKGAX3HuWHGVP -hdoAoJ9TyjVRonsLFbejG8Qjhw7P0Z4u -=wU7A ------END PGP SIGNATURE----- diff --git a/dev-util/valgrind/files/valgrind-3.6.0-local-labels.patch b/dev-util/valgrind/files/valgrind-3.6.0-local-labels.patch deleted file mode 100644 index 68e6822..0000000 --- a/dev-util/valgrind/files/valgrind-3.6.0-local-labels.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- coregrind/m_libcassert.c 2010-10-21 04:19:45.000000000 +0800 -+++ coregrind/m_libcassert.c 2010-10-24 20:23:17.800001876 +0800 -@@ -81,8 +81,8 @@ - { UInt cia, r1, lr; \ - __asm__ __volatile__( \ - "mflr 0;" /* r0 = lr */ \ -- "bl m_libcassert_get_ip;" /* lr = pc */ \ -- "m_libcassert_get_ip:\n" \ -+ "bl 0f;" /* lr = pc */ \ -+ "0:\n" \ - "mflr %0;" /* %0 = pc */ \ - "mtlr 0;" /* restore lr */ \ - "mr %1,1;" /* %1 = r1 */ \ -@@ -100,8 +100,8 @@ - { ULong cia, r1, lr; \ - __asm__ __volatile__( \ - "mflr 0;" /* r0 = lr */ \ -- "bl .m_libcassert_get_ip;" /* lr = pc */ \ -- ".m_libcassert_get_ip:\n" \ -+ "bl 0f;" /* lr = pc */ \ -+ "0:\n" \ - "mflr %0;" /* %0 = pc */ \ - "mtlr 0;" /* restore lr */ \ - "mr %1,1;" /* %1 = r1 */ \ diff --git a/dev-util/valgrind/files/valgrind-3.7.0-automake-1.11.2.patch b/dev-util/valgrind/files/valgrind-3.7.0-automake-1.11.2.patch deleted file mode 100644 index b0b57bf..0000000 --- a/dev-util/valgrind/files/valgrind-3.7.0-automake-1.11.2.patch +++ /dev/null @@ -1,37 +0,0 @@ -From: Gregorio Guidi <gregorio.guidi@gmail.com> - -Retain the old behavior of the build system even with automake 1.11.2. - -Reported-by: Oleg Bulatov <dmage@bk.ru> -X-Gentoo-Bug: 397429 -X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=397429 -X-KDE-Bug: 290719 -X-KDE-Bug-URL: https://bugs.kde.org/show_bug.cgi?id=290719 -Signed-off-by: Anthony G. Basile <blueness@gentoo.org> - -diff -Nur valgrind-3.7.0.orig/coregrind/Makefile.am valgrind-3.7.0/coregrind/Makefile.am ---- valgrind-3.7.0.orig/coregrind/Makefile.am 2011-10-27 12:55:06.000000000 +0200 -+++ valgrind-3.7.0/coregrind/Makefile.am 2012-01-06 17:23:48.717115986 +0100 -@@ -495,7 +495,8 @@ - m_gdbserver/powerpc-altivec64l.xml - - # so as to make sure these get copied into the install tree --pkglib_DATA = $(GDBSERVER_XML_FILES) -+vgdatadir = $(pkglibdir) -+vgdata_DATA = $(GDBSERVER_XML_FILES) - - # so as to make sure these get copied into the tarball - EXTRA_DIST += $(GDBSERVER_XML_FILES) -diff -Nur valgrind-3.7.0.orig/Makefile.am valgrind-3.7.0/Makefile.am ---- valgrind-3.7.0.orig/Makefile.am 2011-10-26 23:24:45.000000000 +0200 -+++ valgrind-3.7.0/Makefile.am 2012-01-06 17:23:17.445114847 +0100 -@@ -61,7 +61,8 @@ - # default.supp, as it is built from the base .supp files at compile-time. - dist_noinst_DATA = $(SUPP_FILES) - --pkglib_DATA = default.supp -+vgdatadir = $(pkglibdir) -+vgdata_DATA = default.supp - - pkgconfigdir = $(libdir)/pkgconfig - pkgconfig_DATA = valgrind.pc diff --git a/dev-util/valgrind/files/valgrind-3.7.0-fix-gcc-regex.patch b/dev-util/valgrind/files/valgrind-3.7.0-fix-gcc-regex.patch deleted file mode 100644 index feabf06..0000000 --- a/dev-util/valgrind/files/valgrind-3.7.0-fix-gcc-regex.patch +++ /dev/null @@ -1,35 +0,0 @@ -Index: configure.in -=================================================================== ---- configure.in (revision 12273) -+++ configure.in (revision 12274) -@@ -98,18 +98,21 @@ - # We don't want gcc < 3.0 - AC_MSG_CHECKING([for a supported version of gcc]) - --# Try to get the gcc version, sed-ing out some unexpected stuff --# that appears with the default gcc on OSX 10.6 and 10.7 respectively. --# Without this, the version number comes out as 686, 10 or 11 :-( -+# Obtain the compiler version. - # --# i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) --# i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) -+# A few examples of how the ${CC} --version output looks like: - # -+# Arch Linux: i686-pc-linux-gnu-gcc (GCC) 4.6.2 -+# Debian Linux: gcc (Debian 4.3.2-1.1) 4.3.2 -+# openSUSE: gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585] -+# Exherbo Linux: x86_64-pc-linux-gnu-gcc (Exherbo gcc-4.6.2) 4.6.2 -+# OS/X 10.6: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) -+# OS/X 10.7: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) -+# Clang: clang version 2.9 (tags/RELEASE_29/final) -+# - [gcc_version=`${CC} --version \ -- | head -n 1 \ -- | $SED 's/i686-apple-darwin10//' \ -- | $SED 's/i686-apple-darwin11//' \ -- | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`] -+ | $SED -n -e 's/[^ ]*gcc[^ ]* ([^)]*) \([0-9.]*\).*$/\1/p' \ -+ -e 's/[^ ]*clang version \([0-9.]*\).*$/\1/p'`] - - is_clang="notclang" - if test "x`${CC} --version | head -n 1 | $SED 's/\(clang\) version.*/\1/'`" = "xclang" ; then diff --git a/dev-util/valgrind/files/valgrind-3.7.0-fno-stack-protector.patch b/dev-util/valgrind/files/valgrind-3.7.0-fno-stack-protector.patch deleted file mode 100644 index 6af4553..0000000 --- a/dev-util/valgrind/files/valgrind-3.7.0-fno-stack-protector.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur valgrind-3.7.0.orig//Makefile.all.am valgrind-3.7.0/Makefile.all.am ---- valgrind-3.7.0.orig//Makefile.all.am 2011-10-26 17:24:45.000000000 -0400 -+++ valgrind-3.7.0/Makefile.all.am 2011-11-10 16:18:18.000000000 -0500 -@@ -82,7 +82,7 @@ - # performance and get whatever useful warnings we can out of gcc. - # -fno-builtin is important for defeating LLVM's idiom recognition - # that somehow causes VG_(memset) to get into infinite recursion. --AM_CFLAGS_BASE = \ -+AM_CFLAGS_BASE = -fno-stack-protector \ - -O2 -g \ - -Wall \ - -Wmissing-prototypes \ diff --git a/dev-util/valgrind/files/valgrind-3.7.0-non-exec-stack.patch b/dev-util/valgrind/files/valgrind-3.7.0-non-exec-stack.patch deleted file mode 100644 index d6cc26d..0000000 --- a/dev-util/valgrind/files/valgrind-3.7.0-non-exec-stack.patch +++ /dev/null @@ -1,138 +0,0 @@ -diff -Naur valgrind-3.7.0.orig//coregrind/Makefile.am valgrind-3.7.0/coregrind/Makefile.am ---- valgrind-3.7.0.orig//coregrind/Makefile.am 2011-11-10 20:02:47.000000000 -0500 -+++ valgrind-3.7.0/coregrind/Makefile.am 2011-11-10 20:03:00.000000000 -0500 -@@ -292,14 +292,6 @@ - m_demangle/demangle.c \ - m_demangle/dyn-string.c \ - m_demangle/safe-ctype.c \ -- m_dispatch/dispatch-x86-linux.S \ -- m_dispatch/dispatch-amd64-linux.S \ -- m_dispatch/dispatch-ppc32-linux.S \ -- m_dispatch/dispatch-ppc64-linux.S \ -- m_dispatch/dispatch-arm-linux.S \ -- m_dispatch/dispatch-s390x-linux.S \ -- m_dispatch/dispatch-x86-darwin.S \ -- m_dispatch/dispatch-amd64-darwin.S \ - m_gdbserver/m_gdbserver.c \ - m_gdbserver/inferiors.c \ - m_gdbserver/m_gdbserver.c \ -@@ -322,8 +314,6 @@ - m_initimg/initimg-pathscan.c \ - m_mach/mach_basics.c \ - m_mach/mach_msg.c \ -- m_mach/mach_traps-x86-darwin.S \ -- m_mach/mach_traps-amd64-darwin.S \ - m_replacemalloc/replacemalloc_core.c \ - m_scheduler/scheduler.c \ - m_scheduler/sema.c \ -@@ -335,14 +325,6 @@ - m_sigframe/sigframe-s390x-linux.c \ - m_sigframe/sigframe-x86-darwin.c \ - m_sigframe/sigframe-amd64-darwin.c \ -- m_syswrap/syscall-x86-linux.S \ -- m_syswrap/syscall-amd64-linux.S \ -- m_syswrap/syscall-ppc32-linux.S \ -- m_syswrap/syscall-ppc64-linux.S \ -- m_syswrap/syscall-arm-linux.S \ -- m_syswrap/syscall-s390x-linux.S \ -- m_syswrap/syscall-x86-darwin.S \ -- m_syswrap/syscall-amd64-darwin.S \ - m_syswrap/syswrap-main.c \ - m_syswrap/syswrap-generic.c \ - m_syswrap/syswrap-linux.c \ -@@ -361,6 +343,24 @@ - m_ume/main.c \ - m_ume/script.c - -+COREGRIND_SOURCES_COMMON += \ -+ m_dispatch/dispatch-@VGCONF_ARCH_PRI@-@VGCONF_OS@.S \ -+ m_syswrap/syscall-@VGCONF_ARCH_PRI@-@VGCONF_OS@.S -+ -+if VGCONF_HAVE_PLATFORM_SEC -+COREGRIND_SOURCES_COMMON += \ -+ m_dispatch/dispatch-@VGCONF_ARCH_SEC@-@VGCONF_OS@.S \ -+ m_syswrap/syscall-@VGCONF_ARCH_SEC@-@VGCONF_OS@.S -+endif -+ -+if VGCONF_OS_IS_DARWIN -+COREGRIND_SOURCES_COMMON += \ -+ m_start-@VGCONF_ARCH_PRI@-darwin.S \ -+ m_start-@VGCONF_ARCH_SEC@-darwin.S \ -+ m_mach/mach_traps-@VGCONF_ARCH_PRI@-darwin.S \ -+ m_mach/mach_traps-@VGCONF_ARCH_SEC@-darwin.S -+endif -+ - libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ - $(COREGRIND_SOURCES_COMMON) - nodist_libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ -diff -Naur valgrind-3.7.0.orig//coregrind/m_dispatch/dispatch-amd64-linux.S valgrind-3.7.0/coregrind/m_dispatch/dispatch-amd64-linux.S ---- valgrind-3.7.0.orig//coregrind/m_dispatch/dispatch-amd64-linux.S 2011-10-26 17:24:42.000000000 -0400 -+++ valgrind-3.7.0/coregrind/m_dispatch/dispatch-amd64-linux.S 2011-11-10 20:07:40.000000000 -0500 -@@ -349,11 +349,11 @@ - ret - .size VG_(run_a_noredir_translation), .-VG_(run_a_noredir_translation) - -+#endif // defined(VGP_amd64_linux) -+ - /* Let the linker know we don't need an executable stack */ - .section .note.GNU-stack,"",@progbits - --#endif // defined(VGP_amd64_linux) -- - /*--------------------------------------------------------------------*/ - /*--- end ---*/ - /*--------------------------------------------------------------------*/ -diff -Naur valgrind-3.7.0.orig//coregrind/m_dispatch/dispatch-x86-linux.S valgrind-3.7.0/coregrind/m_dispatch/dispatch-x86-linux.S ---- valgrind-3.7.0.orig//coregrind/m_dispatch/dispatch-x86-linux.S 2011-10-26 17:24:42.000000000 -0400 -+++ valgrind-3.7.0/coregrind/m_dispatch/dispatch-x86-linux.S 2011-11-10 20:04:07.000000000 -0500 -@@ -320,12 +320,11 @@ - ret - .size VG_(run_a_noredir_translation), .-VG_(run_a_noredir_translation) - -- -+#endif // defined(VGP_x86_linux) -+ - /* Let the linker know we don't need an executable stack */ - .section .note.GNU-stack,"",@progbits - --#endif // defined(VGP_x86_linux) -- - /*--------------------------------------------------------------------*/ - /*--- end ---*/ - /*--------------------------------------------------------------------*/ -diff -Naur valgrind-3.7.0.orig//coregrind/m_syswrap/syscall-amd64-linux.S valgrind-3.7.0/coregrind/m_syswrap/syscall-amd64-linux.S ---- valgrind-3.7.0.orig//coregrind/m_syswrap/syscall-amd64-linux.S 2011-11-10 20:02:47.000000000 -0500 -+++ valgrind-3.7.0/coregrind/m_syswrap/syscall-amd64-linux.S 2011-11-10 20:03:00.000000000 -0500 -@@ -205,11 +205,11 @@ - ML_(blksys_finished): .quad 5b - .previous - -+#endif // defined(VGP_amd64_linux) -+ - /* Let the linker know we don't need an executable stack */ - .section .note.GNU-stack,"",@progbits - --#endif // defined(VGP_amd64_linux) -- - /*--------------------------------------------------------------------*/ - /*--- end ---*/ - /*--------------------------------------------------------------------*/ -diff -Naur valgrind-3.7.0.orig//coregrind/m_syswrap/syscall-x86-linux.S valgrind-3.7.0/coregrind/m_syswrap/syscall-x86-linux.S ---- valgrind-3.7.0.orig//coregrind/m_syswrap/syscall-x86-linux.S 2011-11-10 20:02:47.000000000 -0500 -+++ valgrind-3.7.0/coregrind/m_syswrap/syscall-x86-linux.S 2011-11-10 20:03:00.000000000 -0500 -@@ -164,12 +164,12 @@ - ML_(blksys_committed): .long 4b - ML_(blksys_finished): .long 5b - .previous -- --/* Let the linker know we don't need an executable stack */ --.section .note.GNU-stack,"",@progbits - - #endif // defined(VGP_x86_linux) - -+/* Let the linker know we don't need an executable stack */ -+.section .note.GNU-stack,"",@progbits -+ - /*--------------------------------------------------------------------*/ - /*--- end ---*/ - /*--------------------------------------------------------------------*/ diff --git a/dev-util/valgrind/files/valgrind-3.7.0-respect-flags.patch b/dev-util/valgrind/files/valgrind-3.7.0-respect-flags.patch deleted file mode 100644 index 860e09c..0000000 --- a/dev-util/valgrind/files/valgrind-3.7.0-respect-flags.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -Naur valgrind-3.7.0.orig//mpi/Makefile.am valgrind-3.7.0/mpi/Makefile.am ---- valgrind-3.7.0.orig//mpi/Makefile.am 2011-10-26 17:24:23.000000000 -0400 -+++ valgrind-3.7.0/mpi/Makefile.am 2011-11-10 16:03:14.000000000 -0500 -@@ -7,9 +7,6 @@ - CC = $(MPI_CC) - DEFS = - DEFAULT_INCLUDES = --CPPFLAGS = --CFLAGS = --LDFLAGS = - - EXTRA_DIST = \ - mpiwrap_type_test.c diff --git a/dev-util/valgrind/metadata.xml b/dev-util/valgrind/metadata.xml deleted file mode 100644 index 92870ed..0000000 --- a/dev-util/valgrind/metadata.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer> - <email>blueness@gentoo.org</email> - </maintainer> - <longdescription> - Valgrind is a GPL'd tool to help you find memory-management problems - in your programs. When a program is run under Valgrind's supervision, - all reads and writes of memory are checked, and calls to - malloc/new/free/delete are intercepted. As a result, Valgrind can - detect problems such as - - - Use of uninitialised memory - - Reading/writing memory after it has been free'd - - Reading/writing off the end of malloc'd blocks - - Reading/writing inappropriate areas on the stack - - Memory leaks -- where pointers to malloc'd blocks are lost forever - - Passing of uninitialised and/or unaddressible memory to system calls - - Mismatched use of malloc/new/new [] vs free/delete/delete [] - - Some abuses of the POSIX Pthreads API - </longdescription> -</pkgmetadata> diff --git a/dev-util/valgrind/valgrind-3.7.0-r2.ebuild b/dev-util/valgrind/valgrind-3.7.0-r2.ebuild deleted file mode 100644 index 729a48a..0000000 --- a/dev-util/valgrind/valgrind-3.7.0-r2.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-3.7.0-r1.ebuild,v 1.1 2011/11/23 19:19:48 blueness Exp $ - -EAPI=4 -inherit autotools eutils flag-o-matic toolchain-funcs multilib pax-utils - -DESCRIPTION="An open-source memory debugger for GNU/Linux" -HOMEPAGE="http://www.valgrind.org" -SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="-* ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" -IUSE="mpi" - -DEPEND="mpi? ( virtual/mpi )" -RDEPEND="${DEPEND}" - -src_prepare() { - # Correct hard coded doc location - sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die - - # Respect CFLAGS, LDFLAGS - epatch "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch - - # Changing Makefile.all.am to disable SSP - epatch "${FILESDIR}"/${PN}-3.7.0-fno-stack-protector.patch - - # Yet more local labels, this time for ppc32 & ppc64 - epatch "${FILESDIR}"/${PN}-3.6.0-local-labels.patch - - # Don't build in empty assembly files for other platforms or we'll get a QA - # warning about executable stacks. - epatch "${FILESDIR}"/${PN}-3.7.0-non-exec-stack.patch - - # Fix the regex to get gcc's version - epatch "${FILESDIR}"/${PN}-3.7.0-fix-gcc-regex.patch - - # Fix stricter use of dir variables, bug #397429 - epatch "${FILESDIR}"/${PN}-3.7.0-automake-1.11.2.patch - - # Regenerate autotools files - eautoreconf -} - -src_configure() { - local myconf - - # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression" - # while compiling insn_sse.c in none/tests/x86 - # -fpie valgrind seemingly hangs when built with pie on - # amd64 (bug #102157) - # -fstack-protector more undefined references to __guard and __stack_smash_handler - # because valgrind doesn't link to glibc (bug #114347) - # -ggdb3 segmentation fault on startup - filter-flags -fomit-frame-pointer - filter-flags -fpie - filter-flags -fstack-protector - replace-flags -ggdb3 -ggdb2 - - if use amd64 || use ppc64; then - ! has_multilib_profile && myconf="${myconf} --enable-only64bit" - fi - - # Don't use mpicc unless the user asked for it (bug #258832) - if ! use mpi; then - myconf="${myconf} --without-mpicc" - fi - - econf ${myconf} -} - -src_install() { - emake DESTDIR="${D}" install - dodoc AUTHORS FAQ.txt NEWS README* - - pax-mark m "${D}"/usr/$(get_libdir)/valgrind/*-*-linux -} - -pkg_postinst() { - ewarn "Valgrind will not work if glibc does not have debug symbols." - ewarn "To fix this you can add splitdebug to FEATURES in make.conf" - ewarn "and remerge glibc. See:" - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=214065" - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=274771" - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=388703" -} |