Revision: | 1.15 |
Committed: | Fri Nov 2 18:24:54 2007 UTC (17 years, 6 months ago) by elmer |
Branch: | MAIN |
CVS Tags: | nr080215g491p01dbg, dl080120, dl080115, NR080108_geant491-dbg-global, sm20080101a-newscram, pe20071226b-for180p6, pe20071226a-for180p6, ge20071224, ge20071223, ge20071221, pe20071220b-for180p6, ge20071220, pe20071220-for180p6, ge20071217, CMSSW_1_8_0_pre5, pe20071216-for180p5, ge20071216, ge20071213, ge20071212-perfreport, ge20071212, ge20071211, ge20071210a, ge20071210, pe20071207-for180p4g491c3, NR071206_geant491cand3-global, ge20071207, pe20071206-for180test1, CMSSW_1_8_0_pre4-412, CMSSW_1_8_0_pre4, pe20071205b-for180p4-412, pe20071205b-for180p4, pe20071205-for180p4, ge20071205, CMSSW_1_8_0_pre3a-412, ge20071203, pe20071202-for180p3a-gcc412, CMSSW_1_8_0_pre3a, pe20071201b-for180p3a, pe20071201-for180p3a, V00-06-08, ge20071128, pe20071130-for180p3, pe20071129-for180p3, ge20071127a-leopard, ge20071127-leopard, pe20071127a-ports-412, ge20071126-new-bootstrap, CMSSW_1_8_0_pre2, CMSSW_1_8_0_pre0-amd64, CMSSW_1_8_0_pre0, pe20071123e-ports-412, pe20071123d-ports-412, pe20071123c-ports-422, pe20071123c-ports-412, pe20071123c-ports, pe20071123b-ports-422, pe20071123b-ports-412, pe20071123b-ports, pe20071123a-ports-422, pe20071123a-ports-412, pe20071123a-ports, ge20071122-new-bootstrap, pe20071121a-ports-422, pe20071121a-ports-412, pe20071121a-ports, pe20071112c-ports-422, pe20071112c-ports-412, pe20071112c-ports, pe20071112b-ports-412, pe20071112b-ports, pe20071112a-ports, pe20071105c-ports, pe20071105b-ports, pe20071105a-ports, pe20071103e-ports, pe20071103d-ports, pe20071103c-ports, pe20071103b-ports, pe20071103a-ports, pe20071102b-ports |
Changes since 1.14: | +1 -1 lines |
Log Message: | Update to -CMS18 |
# | User | Rev | Content |
---|---|---|---|
1 | elmer | 1.15 | ### RPM external valgrind 3.2.3-CMS18 |
2 | elmer | 1.10 | ## BUILDIF case $(uname):$(uname -m) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) true ;; * ) false ;; esac |
3 | sashby | 1.7 | %define realversion %(echo %v | cut -d- -f1) |
4 | Source: http://www.valgrind.org/downloads/%{n}-%{realversion}.tar.bz2 | ||
5 | muzaffar | 1.9 | Patch1: valgrind-vg323-p2-global |
6 | Patch2: valgrind-vg323-p2-dump | ||
7 | sashby | 1.7 | |
8 | %prep | ||
9 | %setup -n %n-%realversion | ||
10 | muzaffar | 1.9 | %patch1 -p0 |
11 | %patch2 -p0 | ||
12 | sashby | 1.7 | # CMS patch for segment sizes: |
13 | perl -p -i -e 's!VG_N_SEGMENTS 5000!VG_N_SEGMENTS 20000!; s!VG_N_SEGNAMES 1000!VG_N_SEGNAMES 4000!; s!VG_MAX_SEGNAMELEN 1000!VG_MAX_SEGNAMELEN 4000!' coregrind/m_aspacemgr/aspacemgr.c; | ||
14 | |||
15 | pwd | ||
16 | |||
17 | eulisse | 1.2 | %build |
18 | ./configure --prefix=%i | ||
19 | make %makeprocesses | ||
20 | eulisse | 1.4 | %install |
21 | make install | ||
22 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' $(grep -r -e "^#!.*perl.*" %i | cut -d: -f 1) | ||
23 | elmer | 1.8 | # I don't see how to make perl options work nicely with env, so drop the -w |
24 | # in these two scripts | ||
25 | perl -p -i -e 's|perl -w|perl|' %i/bin/callgrind_annotate | ||
26 | perl -p -i -e 's|perl -w|perl|' %i/bin/callgrind_control | ||
27 | muzaffar | 1.14 | |
28 | # SCRAM ToolBox toolfile | ||
29 | mkdir -p %i/etc/scram.d | ||
30 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n | ||
31 | <Tool name=valgrind version=%v> | ||
32 | <Client> | ||
33 | <Environment name=VALGRIND_BASE default="%i"></Environment> | ||
34 | <Environment name=INCLUDE default="$VALGRIND_BASE/include"></Environment> | ||
35 | </Client> | ||
36 | <Runtime name=PATH value="$VALGRIND_BASE/bin" type=path> | ||
37 | <Runtime name=VALGRIND_LIB value="$VALGRIND_BASE/lib/valgrind"> | ||
38 | </Tool> | ||
39 | EOF_TOOLFILE | ||
40 | |||
41 | %post | ||
42 | %{relocateConfig}etc/scram.d/%n |