Skip to content

Commit 73d3abb

Browse files
Add a post and postun for mariadb-connector-c, ensuring ldconfig is run (#13580)
When installing the mariadb-connector-c package, the new libraries that are installed as part of the package are not immediately known by ld. Call ldconfig as part of package installation and removal to ensure the ld cache is refreshed Co-authored-by: Andy Zaugg <azaugg@linkedin.com>
1 parent f93449c commit 73d3abb

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

SPECS/mariadb-connector-c/mariadb-connector-c.spec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Summary: The MariaDB Native Client library (C driver)
44
Name: mariadb-connector-c
55
Version: 3.3.8
6-
Release: 2%{?dist}
6+
Release: 3%{?dist}
77
License: LGPLv2+
88
Vendor: Microsoft Corporation
99
Distribution: Azure Linux
@@ -155,6 +155,9 @@ pushd unittest/libmariadb/
155155
%ctest || :
156156
popd
157157

158+
%post -p /sbin/ldconfig
159+
160+
%postun -p /sbin/ldconfig
158161

159162
%files
160163
%{_libdir}/libmariadb.so.3
@@ -207,6 +210,9 @@ popd
207210
# NEW: PR submitted, problem explained, waiting on upstream response
208211

209212
%changelog
213+
* Thu Apr 10 2025 Andy Zaugg <azaugg@linkedin.com> - 3.3.8-3
214+
- Run ldconfig as part of post install to ensure new libs are in ld cache
215+
210216
* Tue Apr 09 2024 Daniel McIlvaney <damcilva@microsoft.com> - 3.3.8-2
211217
- Remove multilib handling since azl doesn't support it
212218

0 commit comments

Comments
 (0)