Skip to content

Commit

Permalink
added cms_oracleocci_abi_hack-fake for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Mar 5, 2018
1 parent 34c2727 commit 6ca3faf
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 2 deletions.
36 changes: 36 additions & 0 deletions cms_oracleocci_abi_hack-fake-toolfile.spec
@@ -0,0 +1,36 @@
### RPM cms cms_oracleocci_abi_hack-fake-toolfile 1.1
Requires: cms_oracleocci_abi_hack-fake

%define cms_oracleocci_libname cms_oracleocci_abi_hack
%define isdarwin %(case %{cmsos} in (osx*) echo 1 ;; (*) echo 0 ;; esac)
%define soext so
%if %isdarwin
%define soext dylib
%endif

%prep

%build

%install

mkdir -p %i/etc/scram.d
if [ -e ${CMS_ORACLEOCCI_ABI_HACK_FAKE_ROOT}/lib/lib%{cms_oracleocci_libname}.%{soext} ] ; then
export CMS_ORACLEOCCI_LIB='<lib name="%{cms_oracleocci_libname}"/>'
export CMS_ORACLEOCCI_LIBDIR='<environment name="LIBDIR" value="$ORACLEOCCI_BASE/lib"/>'
export CMS_ORACLEOCCI_LD_PRELOAD='<runtime name="CMS_ORACLEOCCI_LIB" value="$LIBDIR/lib%{cms_oracleocci_libname}.%{soext}"/>'
fi
cat << \EOF_TOOLFILE >%i/etc/scram.d/oracleocci.xml
<tool name="oracleocci" version="@TOOL_VERSION@">
@CMS_ORACLEOCCI_LIB@
<use name="oracleocci-official"/>
<client>
<environment name="ORACLEOCCI_BASE" default="@TOOL_ROOT@"/>
<environment name="INCLUDE" value="$ORACLEOCCI_BASE/include"/>
@CMS_ORACLEOCCI_LIBDIR@
</client>
@CMS_ORACLEOCCI_LD_PRELOAD@
</tool>
EOF_TOOLFILE

## IMPORT scram-tools-post
17 changes: 17 additions & 0 deletions cms_oracleocci_abi_hack-fake.spec
@@ -0,0 +1,17 @@
### RPM cms cms_oracleocci_abi_hack-fake 20180210
%define tag 88b2a965305226df1822a14af8fe7174ee5f1614
Source: git+https://github.com/cms-sw/cms_oracleocci_abi_hack.git?obj=master/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
Requires: oracle-fake
BuildRequires: gmake

%prep
%setup -n %{n}-%{realversion}

%build
export INCLUDE_DIR=${ORACLE_FAKE_ROOT}/include
export LIB_DIR=${ORACLE_FAKE_ROOT}/lib
make %{makeprocesses}

%install
[ -d build/lib ] && cp -r build/lib %{i}/lib
cp -r build/include %{i}/include
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Expand Up @@ -187,6 +187,7 @@ Requires: glibc-toolfile
%else
Requires: tkonlinesw-fake-toolfile
Requires: oracle-fake-toolfile
Requires: cms_oracleocci_abi_hack-fake-toolfile
%endif
%endif

Expand Down
4 changes: 2 additions & 2 deletions oracle-fake-toolfile.spec
Expand Up @@ -25,8 +25,8 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/oracle.xml
</tool>
EOF_TOOLFILE

cat << \EOF_TOOLFILE >%i/etc/scram.d/oracleocci.xml
<tool name="oracleocci" version="@TOOL_VERSION@">
cat << \EOF_TOOLFILE >%i/etc/scram.d/oracleocci-official.xml
<tool name="oracleocci-official" version="@TOOL_VERSION@">
<lib name="occi"/>
<use name="oracle"/>
</tool>
Expand Down

0 comments on commit 6ca3faf

Please sign in to comment.