Commit 5065981c authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack mssql-server.sh: fix packing (ALT bug 42559)

parent 102f841e
......@@ -4,6 +4,8 @@
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
# we need libssl/libcrypto-devel due libssl.so/libcrypto.so using (ALT bug 35559)
REQUIRES="python3 pbzip2 bzip2 gdb libnuma libkrb5 libsss_nss_idmap cyrus-sasl2 libsasl2-plugin-gssapi procps"
......@@ -11,8 +13,16 @@ REQUIRES="python3 pbzip2 bzip2 gdb libnuma libkrb5 libsss_nss_idmap cyrus-sasl2
subst "s|su -p |su |" $BUILDROOT/opt/mssql/lib/mssql-conf/invokesqlservr.sh
subst "1iAutoProv:no\nAutoReq:yes,nopython,nopython3\n# Converted from original package requires\nRequires:$REQUIRES\n" $SPEC
subst "s|Руѝѝкий|Русский|" $BUILDROOT/opt/mssql/lib/mssql-conf/loc/mo/mssql-conf-ru_RU.mo
# fix typo
subst "s|Руѝѝкий|Русский|" $BUILDROOT/opt/mssql/lib/mssql-conf/mssqlconfhelper.py
# Set correct path to sysctl
subst 's|sysctl|/sbin/sysctl|' $BUILDROOT/opt/mssql/bin/crash-support-functions.sh
subst 's|/usr/bin/basename|/bin/basename|' $BUILDROOT/opt/mssql/bin/*.sh
remove_dir /usr/lib/.build-id
for i in $BUILDROOT/opt/mssql/lib/libunwind-x86_64.so.8 ; do
a= patchelf --set-rpath "$ORIGIN/" $i
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment