Skip to content

Commit

Permalink
Merge pull request #8727 from cms-sw/132x-scram-chgs
Browse files Browse the repository at this point in the history
[13.2] Backport scram/buildrules/gsl env changes
  • Loading branch information
smuzaffar authored Sep 28, 2023
2 parents 82610b7 + 230c710 commit f94bf2d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
3 changes: 1 addition & 2 deletions SCRAMV1.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM lcg SCRAMV1 V3_00_61
### RPM lcg SCRAMV1 V3_00_62
## NOCOMPILER
## NO_VERSION_SUFFIX

Expand Down Expand Up @@ -66,7 +66,6 @@ if [ ! -d $RPM_INSTALL_PREFIX/etc/scramrc ] ; then
echo 'CMSSW=$SCRAM_ARCH/cms/cmssw/CMSSW_*' > $RPM_INSTALL_PREFIX/etc/scramrc/cmssw.map
echo 'CMSSW=$SCRAM_ARCH/cms/cmssw-patch/CMSSW_*' > $RPM_INSTALL_PREFIX/etc/scramrc/cmssw-patch.map
echo 'CORAL=$SCRAM_ARCH/cms/coral/CORAL_*' > $RPM_INSTALL_PREFIX/etc/scramrc/coral.map
[ ! -f $RPM_INSTALL_PREFIX/%{OldDB} ] || grep '%{OldDB} *$' $RPM_INSTALL_PREFIX/%{OldDB} | awk '{print $2}' | sed 's|%{OldDB}.*||' > $RPM_INSTALL_PREFIX/etc/scramrc/links.db
fi

touch $RPM_INSTALL_PREFIX/etc/scramrc/site.cfg
Expand Down
12 changes: 2 additions & 10 deletions SCRAMV2.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM lcg SCRAMV2 V2_2_9_pre17
### RPM lcg SCRAMV2 V2_2_9_pre19
## NOCOMPILER
## NO_VERSION_SUFFIX

Expand All @@ -9,7 +9,7 @@ Provides: perl(BuildSystem::TemplateStash)
Provides: perl(Cache::CacheUtilities)
Provides: perl(BuildSystem::ToolManager)

%define tag fce83e9b457c3c34373e4e2c1eec7854f33e17fa
%define tag 158cdbe2c93768caf002fdb06e9c51ce6c5c1b56
%define branch SCRAMV2
%define github_user cms-sw
Source: git+https://github.com/%{github_user}/SCRAM.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
Expand Down Expand Up @@ -63,14 +63,6 @@ echo "SCRAMV1_VERSION='%v'" >> $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.
echo "set SCRAMV1_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh
echo "set SCRAMV1_VERSION='%v'" >> $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh

if [ ! -d $RPM_INSTALL_PREFIX/etc/scramrc ] ; then
mkdir -p $RPM_INSTALL_PREFIX/etc/scramrc
touch $RPM_INSTALL_PREFIX/etc/scramrc/links.db
echo 'CMSSW=$SCRAM_ARCH/cms/cmssw/CMSSW_*' > $RPM_INSTALL_PREFIX/etc/scramrc/cmssw.map
echo 'CMSSW=$SCRAM_ARCH/cms/cmssw-patch/CMSSW_*' > $RPM_INSTALL_PREFIX/etc/scramrc/cmssw-patch.map
echo 'CORAL=$SCRAM_ARCH/cms/coral/CORAL_*' > $RPM_INSTALL_PREFIX/etc/scramrc/coral.map
fi

if [ ! -d $RPM_INSTALL_PREFIX/%{cmsplatf}/%{scramv1_dir} ] ; then
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/%{scramv1_dir}
rsync --links --ignore-existing --recursive $RPM_INSTALL_PREFIX/%{pkgrel}/ $RPM_INSTALL_PREFIX/%{cmsplatf}/%{scramv1_dir}/
Expand Down
2 changes: 1 addition & 1 deletion scram-project-build.file
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ BuildRequires: dwz
%endif

%if "%{?configtag:set}" != "set"
%define configtag V09-00-02
%define configtag V09-01-03
%endif

%if "%{?buildarch:set}" != "set"
Expand Down
5 changes: 4 additions & 1 deletion scram-tools.file/tools/gcc/gcc-cxxcompiler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
<flags CXXFLAGS="-Werror=switch -fdiagnostics-show-option"/>
<flags CXXFLAGS="-Wno-unused-local-typedefs -Wno-attributes -Wno-psabi"/>
<flags LTO_FLAGS="@LTO_FLAGS@"/>
<flags PGO_FLAGS="@PGO_FLAGS@"/>
<flags PGO_FLAGS="-fprofile-prefix-path=$(LOCALTOP) -fprofile-update=prefer-atomic -fprofile-correction"/>
<flags PGO_FLAGS="-fprofile-dir=%q{CMSSW_PGO_DIRECTORY}/PGO-Profiles/cmssw/%q{CMSSW_CPU_TYPE}"/>
<flags PGO_GENERATE_FLAGS="-fprofile-generate"/>
<flags PGO_USE_FLAGS="-fprofile-use -fprofile-partial-training -Wno-missing-profile"/>
<flags LDFLAGS="@GCC_LDFLAGS@"/>
<flags CXXSHAREDFLAGS="@GCC_SHAREDFLAGS@"/>
<flags LD_UNIT="@GCC_LD_UNIT@"/>
Expand Down
1 change: 1 addition & 0 deletions scram-tools.file/tools/gsl/gsl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<environment name="INCLUDE" default="$GSL_BASE/include"/>
</client>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<runtime name="PATH" value="$GSL_BASE/bin" type="path"/>
<use name="OpenBLAS"/>
<use name="root_cxxdefaults"/>
</tool>

0 comments on commit f94bf2d

Please sign in to comment.