ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/valgrind.spec
Revision: 1.9
Committed: Fri Mar 16 11:02:49 2007 UTC (18 years, 1 month ago) by muzaffar
Branch: MAIN
CVS Tags: apFor1412, apFor1411, CMSSW_1_4_10, apForCMSSW1410, CMSSW_1_4_9, apForCMSSW149, apForCMSSW148, CMSSW_1_4_8-slc3ap, CMSSW_1_4_8-slc3, CMSSW_1_4_7-slc3, ap-20071013, ap20071012b, ap20071012a, CMSSW_1_4_6-slc3, CMSSW_1_5_4, CMSSW_1_5_3, dl070725, dl070719, CMSSW_1_5_2, CMSSW_1_5_1, dl070629t2, dl070629, CMSSW_1_5_0-ignominy470, CMSSW_1_4_5-slc4, CMSSW_1_4_5-slc3, CMSSW_1_4_4-slc3, CMSSW_1_5_0, dl070621, CMSSW_1_5_0_pre6, CMSSW_1_4_4-slc4, dl070616, ap-144-slc3, ap-144-slc4, nrFWLITE_150pre5_noseal_newboost, dl070615, dl070614xdaq, dl070614, ap-143g483-slc3, ap-143g483-slc4, CMSSW_1_4_3-slc4, CMSSW_1_4_3-slc3, CMSSW_1_5_0_pre5, dl070602t2, dl070602, CMSSW_1_5_0_pre4, nrFWLITE_150pre4, CMSSW_1_4_2-slc4, CMSSW_1_4_2-slc3, dl070522_150pre4cand, CMSSW_1_4_1-slc4, CMSSW_1_4_1-slc3, CMSSW_1_5_0_pre3, pe20070518c, pe20070518b, pe20070518a, CMSSW_1_4_0_DAQ1-slc3, CMSSW_1_4_0_DAQ1-slc4, pe20070517-for150p3ext, ap-140daq1-1-slc3, ap-140daq1-1-slc4, ap-140-1-slc3, ap-140-1-slc4, CMSSW_1_4_0_pre7-slc3, CMSSW_1_4_0_pre7, CMSSW_1_5_0_pre2, dl070505t4, dl070505t3, dl070505t2, dl070505, ap-140p7-1-slc4, ap-140p7-1-slc3, ap-140p6-1-slc4, ap-140p5-1-slc3, ap-140p5-1-slc4, dl070501, CMSSW_1_5_0_pre1, dl070428_for140pre5_slc3, dl070428_for140pre5slc4t2, dl070428_for140pre5slc4, pe20070428b, pe20070428a, CMSSW_1_4_0_pre4, CMSSW_1_4_0_pre4-slc3, pe20070425c-for150p1, pe20070525b-slc4, pe20070525a, pe20070424b-slc3, pe20070424b-slc4, pe20070424a-slc4, pe20070424a-slc3, pe20070424-slc3, pe20070424-slc4, pe20070423b-slc3, pe20070423b-slc4, pe20070423a-slc3, pe20070423a-slc4, pe20070422b-slc4, pe20070422b-slc3, pe20070422a-slc4, pe20070422a-slc3, dl070407, dl070406t2, dl070406, CMSSW_1_4_0_pre3-slc3, CMSSW_1_4_0_pre3, nrCMSSW_1_4_0_pre3_rc0, nrCMSSW_1_4_0_pre3_rc0-slc4, nr070403_cms147-slc4, nr070403_cms147, nrCMSSW_1_4_0_pre2_rc3, nrCMSSW_1_4_0_pre2_rc3-slc4, nrCMSSW_1_4_0_pre2_rc2-slc4, nrCMSSW_1_4_0_pre2_rc2, nrCMSSW_1_4_0_pre2_rc1, nrCMSSW_1_4_0_pre2_rc1-slc4, nrCMSSW_1_4_0_pre2_rc0-slc3, nrCMSSW_1_4_0_pre2_rc0
Changes since 1.8: +5 -1 lines
Log Message:
valgrind 3.2.3 spec file

File Contents

# User Rev Content
1 muzaffar 1.9 ### RPM external valgrind 3.2.3-cms1
2 eulisse 1.1 ## BUILDIF case $(uname):$(uname -m) in Linux:i*86 ) 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