> Is using %{_libdir}/x/y/z necessary? What are the reasons? In this particular case, it's the MariaDB stack.
The 'libmariadb.so' is in the '%{_libdir}', but then there are some plugins, some restricted plugins, some test plugins, then the other packages from the stack use it too. We already have a few directories there. The path in question is a new one: %{_libdir}/mariadb/connector-c/tests/<some_lib>.so And the Pavol's question is targeted on using the ldconfig correctly so specifically the 'mariadb-connector-c-test' sub-package testsuite would work out for the box, for which it need the library to be found. Michal -- Michal Schorm Software Engineer Databases Team Red Hat -- On Tue, May 6, 2025 at 11:33 AM Dan Horák <d...@danny.cz> wrote: > > On Tue, 6 May 2025 11:26:02 +0200 > Pavol Sloboda <pslob...@redhat.com> wrote: > > > Hi, > > > > I am currently working on rebasing a package that creates a shared library > > and I want to place it in %{_libdir}/x/y/z. I am using the > > is using %{_libdir}/x/y/z necessary? What are the reasons? > > > Dan > > > /etc/ld.so.conf.d/%[name}.conf file to do so. My question is: > > Do I have to call ldconfig in %post and %postun? > > Because the wiki seems to be conflicted about this. > > On one hand it says: "It is not necessary to call ldconfig when installing > > shared libraries." > > Here: > > https://docs.fedoraproject.org/en-US/packaging-guidelines/#_shared_libraries > > But on the other hand it says ldconfing MUST be called: "Packages which > > place linker configuration files in /etc/ld.so.conf.d MUST call ldconfig in > > %post and %postun (on all Fedora releases) even if they install no actual > > libraries." > > Here: > > https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_snippets > > > > Thank you, > > > > Sloboda Pavol. > -- > _______________________________________________ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org > Do not reply to spam, report it: > https://pagure.io/fedora-infrastructure/new_issue -- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue