summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind_3.10.1.bb')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind_3.10.1.bb108
1 files changed, 0 insertions, 108 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb b/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
deleted file mode 100644
index 95b3966c69..0000000000
--- a/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
+++ /dev/null
@@ -1,108 +0,0 @@
1SUMMARY = "Valgrind memory debugger and instrumentation framework"
2HOMEPAGE = "http://valgrind.org/"
3BUGTRACKER = "http://valgrind.org/support/bug_reports.html"
4LICENSE = "GPLv2 & GPLv2+ & BSD"
5LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \
6 file://include/pub_tool_basics.h;beginline=1;endline=29;md5=e7071929a50d4b0fc27a3014b315b0f7 \
7 file://include/valgrind.h;beginline=1;endline=56;md5=92df8a1bde56fe2af70931ff55f6622f \
8 file://COPYING.DOCS;md5=8fdeb5abdb235a08e76835f8f3260215"
9
10X11DEPENDS = "virtual/libx11"
11DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)} \
12 ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'boost', '', d)} \
13 "
14
15SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
16 file://fixed-perl-path.patch \
17 file://Added-support-for-PPC-instructions-mfatbu-mfatbl.patch \
18 file://sepbuildfix.patch \
19 file://glibc.patch \
20 file://force-nostabs.patch \
21 file://remove-arm-variant-specific.patch \
22 file://remove-ppc-tests-failing-build.patch \
23 file://valgrind-remove-rpath.patch \
24 file://enable.building.on.4.x.kernel.patch \
25 file://add-ptest.patch \
26 file://pass-maltivec-only-if-it-supported.patch \
27 file://run-ptest \
28 file://0001-valgrind-Enable-rt_sigpending-syscall-on-ppc64-linux.patch \
29 file://11_mips-link-tool.patch \
30 "
31
32SRC_URI[md5sum] = "60ddae962bc79e7c95cfc4667245707f"
33SRC_URI[sha256sum] = "fa253dc26ddb661b6269df58144eff607ea3f76a9bcfe574b0c7726e1dfcb997"
34
35COMPATIBLE_HOST = '(i.86|x86_64|arm|mips|powerpc|powerpc64).*-linux'
36
37PR = "r1"
38
39inherit autotools ptest
40
41EXTRA_OECONF = "--enable-tls --without-mpicc"
42EXTRA_OECONF += "${@['--enable-only32bit','--enable-only64bit'][d.getVar('SITEINFO_BITS', True) != '32']}"
43
44# valgrind checks host_cpu "armv7*)", so we need to over-ride the autotools.bbclass default --host option
45EXTRA_OECONF_append_arm = " --host=armv7${HOST_VENDOR}-${HOST_OS}"
46
47EXTRA_OEMAKE = "-w"
48
49CFLAGS_append_libc-uclibc = " -D__UCLIBC__ "
50
51do_install_append () {
52 install -m 644 ${B}/default.supp ${D}/${libdir}/valgrind/
53}
54
55RDEPENDS_${PN} += "perl"
56
57# valgrind needs debug information for ld.so at runtime in order to
58# redirect functions like strlen.
59RRECOMMENDS_${PN} += "${TCLIBC}-dbg"
60
61RDEPENDS_${PN}-ptest += " sed perl glibc-utils perl-module-file-glob"
62
63do_compile_ptest() {
64 oe_runmake check CFLAGS="${CFLAGS} -O0" CXXFLAGS="${CXXFLAGS} -O0"
65}
66
67
68do_install_ptest() {
69 chmod +x ${B}/tests/vg_regtest
70
71 # The test application binaries are not automatically installed.
72 # Grab them from the build directory.
73 #
74 # The regression tests require scripts and data files that are not
75 # copied to the build directory. They must be copied from the
76 # source directory.
77 saved_dir=$PWD
78 for parent_dir in ${S} ${B} ; do
79 cd $parent_dir
80
81 # exclude shell or the package won't install
82 rm -rf none/tests/shell* 2>/dev/null
83
84 subdirs="tests cachegrind/tests callgrind/tests drd/tests helgrind/tests massif/tests memcheck/tests none/tests"
85
86 # Get the vg test scripts, filters, and expected files
87 for dir in $subdirs ; do
88 find $dir | cpio -pvdu ${D}${PTEST_PATH}
89 done
90 cd $saved_dir
91 done
92
93 # clean out build artifacts before building the rpm
94 find ${D}${PTEST_PATH} \
95 \( -name "Makefile*" \
96 -o -name "*.o" \
97 -o -name "*.c" \
98 -o -name "*.S" \
99 -o -name "*.h" \) \
100 -exec rm {} \;
101
102 # needed by massif tests
103 cp ${B}/massif/ms_print ${D}${PTEST_PATH}/massif/ms_print
104
105 # handle multilib
106 sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest
107}
108