public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mariadb-connector-c] rawhide: [cleanup] Remove deprecated 'ldconfig' scriptlets from '-test' subpackage
@ 2026-06-24 8:08 Michal Schorm
0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-06-24 8:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mariadb-connector-c
Branch : rawhide
Commit : 16a7609a46aced687ede16403ffe5d1d74cd5c5e
Author : Michal Schorm <mschorm@redhat.com>
Date : 2026-06-24T00:40:24+02:00
Stats : +0/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/mariadb-connector-c/c/16a7609a46aced687ede16403ffe5d1d74cd5c5e?branch=rawhide
Log:
[cleanup] Remove deprecated 'ldconfig' scriptlets from '-test' subpackage
Remove the explicit '%post'/'%postun' 'ldconfig' calls from the '-test'
subpackage. Since Fedora 28, glibc's 'transfiletriggerin' on '/usr/lib64'
handles 'ldconfig' automatically. The '-test' subpackage's 'libcctap.so'
lives under '/usr/lib64/mariadb/connector-c/tests/' which matches the
trigger prefix, so 'ldconfig' is called by file triggers after install
and uninstall.
The main package (shipping 'libmariadb.so.3' in '/usr/lib64') already
relies entirely on file triggers with no explicit 'ldconfig' scriptlets.
This also removes an unnecessary 'Requires: /usr/bin/ldconfig' that the
'-p' scriptlet form generates.
Verified in a 'fedora:rawhide' container ('podman'):
- 'rpmbuild --rebuild': all 9 RPMs built successfully
- 'rpm -q --scripts mariadb-connector-c-test': empty (no scriptlets)
- 'ldconfig -p | grep libmariadb': found (file trigger works)
- 'ldconfig -p | grep libcctap': found (file trigger works for
non-standard path via 'ld.so.conf.d' entry)
- All 20 test binaries loaded 'libcctap.so' and executed (exit 0)
Co-Authored-By: Claude AI <noreply@anthropic.com>
---
diff --git a/mariadb-connector-c.spec b/mariadb-connector-c.spec
index 165f03d..2f03c92 100644
--- a/mariadb-connector-c.spec
+++ b/mariadb-connector-c.spec
@@ -195,12 +195,6 @@ install -D -p -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{nam
%ctest --test-dir %{__cmake_builddir}/unittest/libmariadb/
%endif
-%if %{with testsuite}
-%post -n %{name}-test -p /usr/bin/ldconfig
-
-%postun -n %{name}-test -p /usr/bin/ldconfig
-%endif
-
%files
%{_libdir}/libmariadb.so.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-24 8:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 8:08 [rpms/mariadb-connector-c] rawhide: [cleanup] Remove deprecated 'ldconfig' scriptlets from '-test' subpackage Michal Schorm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox