Revision: | 1.14 |
Committed: | Mon Sep 3 15:28:46 2007 UTC (17 years, 8 months ago) by muzaffar |
Branch: | MAIN |
CVS Tags: | CMSSW_1_7_7, dl080227for176, CMSSW_1_7_5_ONLINE1, CMSSW_1_7_5, CMSSW_1_7_5_g491, CMSSW_1_7_5_ONLINE, nr080115onl175, dl080111, ge20080109-webconddb, ge20080109-sitedb, CMSSW_1_7_4, CMSSW_1_7_3_g490p1, dl071212t2, dl071212, CMSSW_1_7_3, CMSSW_1_7_2, CMSSW_1_7_1, nr071121onl170_xdaq5, nr071120_fwlite170_1, CMSSW_1_7_0_ONLINE, CMSSW_1_7_0, nr071116onlpre13, CMSSW_1_7_0_pre13, dl071114, ap20071113, CMSSW_1_7_0_pre12, CMSSW_1_7_0_pre10_ONLINE, CMSSW_1_7_0_pre11, nr071105a, pe20071102a-ports, CMSSW_1_7_0_pre10, CMSSW_1_7_0_pre9, CMSSW_1_7_0_pre8, CMSSW_1_7_0_pre7, dl071028, dl071024, nr071023_fwlite170p6, pe20071023-170p6-amd64, forTony_001, pe20071021-170p6-zlib, dl071021t2, dl071021, pe20071021a-ports, dl071020, nr071017_170p5onl2, CMSSW_1_7_0_pre6, nr071016_170p5onl1, nr071016onl170p5bs, nr071016onl170p5, pe20071015-xrootd, pe20071014-ports, dl071014, dl071010t2, dl071010, dl071009t2, dl071009, CMSSW_1_7_0_pre5, dl070926t2, dl070926, ap-20070926, CMSSW_1_7_0_pre4, dl070921t2, dl070921, dl070920, CMSSW_1_7_0_pre3, dl070916, dl070912, dl070812, sm070912b, sm070912a, sm070911a, dl070909p3, dl070909, CMSSW_1_7_0_pre2, dl070906, dl070905, sm030907a |
Changes since 1.13: | +17 -1 lines |
Log Message: | new spec files for auto generation of toolfile i.e. no need of scramtoolbox |
# | User | Rev | Content |
---|---|---|---|
1 | muzaffar | 1.14 | ### RPM external valgrind 3.2.3-CMS8 |
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 |