Skip to content

Commit 96bb3d7

Browse files
committed
wip Oracle ldconfig
1 parent 0c50e82 commit 96bb3d7

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/actions/apt-x64/action.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,28 @@ runs:
126126
rm /opt/oracle/instantclient/sdk/include/ldap.h
127127
# fix debug build warning: zend_signal: handler was replaced for signal (2) after startup
128128
echo DISABLE_INTERRUPT=on > /opt/oracle/instantclient/network/admin/sqlnet.ora
129-
sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig'
129+
if [ -f /etc/alpine-release ]; then
130+
echo "TODO SETUP"
131+
132+
$ORACLE_INSTANTCLIENT_LIBPATH=/opt/oracle/instantclient
133+
134+
ls -lah $ORACLE_INSTANTCLIENT_LIBPATH
135+
136+
if ! test -e /usr/lib/libresolv.so.2 && test -e /lib/libc.so.6; then
137+
ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2
138+
fi
139+
installOracleInstantClient_ldconf=/etc/ld-musl-x86_64.path
140+
if test -e "$installOracleInstantClient_ldconf"; then
141+
if ! cat "$installOracleInstantClient_ldconf" | grep -q "$ORACLE_INSTANTCLIENT_LIBPATH"; then
142+
cat "$ORACLE_INSTANTCLIENT_LIBPATH" | awk -v suffix=":$ORACLE_INSTANTCLIENT_LIBPATH" '{print NR==1 ? $0suffix : $0}' >"$ORACLE_INSTANTCLIENT_LIBPATH"
143+
fi
144+
else
145+
echo "/lib64:/lib:/usr/local/lib:/usr/lib:$ORACLE_INSTANTCLIENT_LIBPATH" >"$installOracleInstantClient_ldconf"
146+
fi
147+
148+
149+
150+
151+
else
152+
sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig'
153+
fi

0 commit comments

Comments
 (0)