Skip to content

Commit 659047b

Browse files
grooverdansvoj
authored andcommitted
MDEV-11386: Advance Toochain library cache workaround (temporary)
Due to the way Advance Toolchain before 10.0-3 and 8.0-8 is packaged, shared libraries installed after the library cache advance-toolchain-atX.Y-runtime package aren't updated in /opt/atX.Y/etc/ld.so.cache. This results in mysqld, configured with RUNPATH set to /opt/atX.Y/lib64, resulting in the Advance Toolchain loader being used and if libraries such as jemalloc, libssl or any other library that mysqld uses is installed after Advance Toolchain, these libraries aren't in the cache and therefore won't be found in the RPM postinstall when mysqld is executed by mysql_install_db. Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
1 parent 71f53bf commit 659047b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

support-files/rpm/server-postin.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ if [ $1 = 1 ] ; then
3131
# The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
3232
usermod --gid %{mysqld_group} %{mysqld_user} 2> /dev/null || true
3333

34+
# Temporary Workaround for MDEV-11386 - will be corrected in Advance Toolchain 10.0-3 and 8.0-8
35+
for ldconfig in /opt/at*/sbin/ldconfig; do
36+
test -x $ldconfig && $ldconfig
37+
done
38+
3439
# Change permissions so that the user that will run the MySQL daemon
3540
# owns all database files.
3641
chown -R %{mysqld_user}:%{mysqld_group} $datadir

0 commit comments

Comments
 (0)