-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'IB/CMSSW_12_3_X/geant4_vecgeom' into Geant4_10.7.9
- Loading branch information
Showing
104 changed files
with
1,371 additions
and
1,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/third_party/ijar/mapped_file_unix.cc b/third_party/ijar/mapped_file_unix.cc | ||
index 6e3a908..030e9ca 100755 | ||
--- a/third_party/ijar/mapped_file_unix.cc | ||
+++ b/third_party/ijar/mapped_file_unix.cc | ||
@@ -19,6 +19,7 @@ | ||
#include <sys/mman.h> | ||
|
||
#include <algorithm> | ||
+#include <limits> | ||
|
||
#include "third_party/ijar/mapped_file.h" | ||
|
||
diff --git a/third_party/ijar/zlib_client.h b/third_party/ijar/zlib_client.h | ||
index ed66163..c4b051e 100755 | ||
--- a/third_party/ijar/zlib_client.h | ||
+++ b/third_party/ijar/zlib_client.h | ||
@@ -16,6 +16,7 @@ | ||
#define THIRD_PARTY_IJAR_ZLIB_CLIENT_H_ | ||
|
||
#include <limits.h> | ||
+#include <limits> | ||
|
||
#include "third_party/ijar/common.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %i/etc/scram.d | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/cmsswdata.xml | ||
<tool name="cmsswdata" version="%v"> | ||
<client> | ||
<environment name="CMSSWDATA_BASE" default="%{cmsroot}/%{cmsplatf}/%{pkgcategory}"/> | ||
<environment name="CMSSW_DATA_PATH" default="$CMSSWDATA_BASE"/> | ||
EOF_TOOLFILE | ||
|
||
cat << \EOF_TOOLFILE > %i/searchpath.xml | ||
</client> | ||
<runtime name="CMSSW_DATA_PATH" value="$CMSSWDATA_BASE" type="path"/> | ||
EOF_TOOLFILE | ||
|
||
for toolbase in `echo %pkgreqs | tr ' ' '\n' | grep 'cms/data-'` ; do | ||
toolver=`basename $toolbase` | ||
pack=`echo $toolbase | cut -d/ -f2 | sed 's|data-||;s|-|/|'` | ||
echo " <flags CMSSW_DATA_PACKAGE=\"$pack=$toolver\"/>" >> %i/etc/scram.d/cmsswdata.xml | ||
echo " <runtime name=\"CMSSW_SEARCH_PATH\" default=\"%{cmsroot}/%{cmsplatf}/$toolbase\" type=\"path\"/>" >> %i/searchpath.xml | ||
done | ||
|
||
cat %i/searchpath.xml >> %i/etc/scram.d/cmsswdata.xml | ||
echo " </tool>" >> %i/etc/scram.d/cmsswdata.xml | ||
rm -f %i/searchpath.xml | ||
|
||
%post | ||
%{relocateConfig}etc/scram.d/*.xml | ||
echo "%{BaseTool}_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh | ||
echo "set %{BaseTool}_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh | ||
echo "%{BaseTool}_PKGREQUIRED='%pkgreqs'" >> $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh | ||
echo "set %{BaseTool}_PKGREQUIRED='%pkgreqs'" >> $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh | ||
|
||
for DATA_PATH in %directpkgreqs; do | ||
PKG_DIR=$(echo $DATA_PATH | cut -d/ -f2) | ||
[ $(echo $PKG_DIR | grep '^data-' | wc -l) -eq 1 ] || continue | ||
PKG_DIR=$(echo $PKG_DIR | sed 's|^data-||;s|-|/|') | ||
SOURCE=$RPM_INSTALL_PREFIX/%{cmsplatf}/$DATA_PATH | ||
DES_PATH=$(echo $DATA_PATH | cut -d/ -f1,2)/$(echo $DATA_PATH | cut -d/ -f3 | tr '-' '\n' | grep '^V[0-9][0-9]$\|^[0-9][0-9]$' | tr '\n' '-' | sed 's|-$||') | ||
PKG_DATA=$(echo $PKG_DIR | cut -d/ -f1) | ||
if [ ! -e $RPM_INSTALL_PREFIX/share/$DES_PATH/$PKG_DIR ] ; then | ||
rm -rf $RPM_INSTALL_PREFIX/share/$DES_PATH | ||
mkdir -p $RPM_INSTALL_PREFIX/share/$DES_PATH | ||
if [ -L $SOURCE/$PKG_DATA ] ; then | ||
ln -fs ../../../../%{cmsplatf}/$DATA_PATH/$PKG_DATA $RPM_INSTALL_PREFIX/share/$DES_PATH/$PKG_DATA | ||
else | ||
echo "Moving $DATA_PATH in share" | ||
rsync -aq --no-t --size-only $SOURCE/$PKG_DATA/ $RPM_INSTALL_PREFIX/share/$DES_PATH/$PKG_DATA/ | ||
fi | ||
fi | ||
if [ ! -L $SOURCE/$PKG_DATA ] ; then | ||
rm -rf $SOURCE/$PKG_DATA && ln -fs ../../../../share/$DES_PATH/$PKG_DATA $SOURCE/$PKG_DATA | ||
fi | ||
done |
Oops, something went wrong.