Bug 2001328 - missing call to ldconfig in RPM scriptlets
Summary: missing call to ldconfig in RPM scriptlets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tulio Magno Quites Machado Filho
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-05 14:48 UTC by Fabio Valentini
Modified: 2024-03-06 02:26 UTC (History)
14 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-03-05 03:11:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fabio Valentini 2021-09-05 14:48:38 UTC
llvm12 installs a config snippet to /etc/ld.so.conf.d/ to add the compat libraries for llvm 12 into the search path.

Packages that do this still need to explicitly call ldconfig in their RPM scriptlets, because file triggers do only activate for installing things into %{_libdir} directly.

The "%ldconfig_scriptlets" macro does not help in this case, because it expands to an empty string on all current Fedora releases, so this probably needs to be handled "manually" / the old way with an explicit %pre/post/trans/un scriptlet.

This issue manifests only in some cases (I think probably depending on the exact installation order in an RPM transaction), but if it happens, this missing ldconfig call results in programs not being able to find llvm 12 libraries, for example, rustc sometimes fails with this error:

error: process didn't exit successfully: `/usr/bin/rustc -vV` (exit status: 127)
--- stderr
/usr/bin/rustc: error while loading shared libraries: libLLVM-12.so: cannot open shared object file: No such file or directory

Running "ldconfig" manually in the mock chroot makes this error go away, until the mock chroot is cleaned and reinstalled, and then it happens again.

(I'm not sure why this is the case, but this error only happens in mock builds that use QEMU-emulated s390x chroots, both locally, and in COPR, but not consistently. koji does not seem to be affected at all, so maybe this is impacted by a race condition, as well.)

Comment 1 Ben Cotton 2022-02-08 21:41:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Ben Cotton 2023-04-25 16:44:26 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Fabio Valentini 2023-04-25 17:02:33 UTC
This issue is still present in rawhide.

Comment 4 Fedora Release Engineering 2023-08-16 07:04:52 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 5 Fedora Admin user for bugzilla script actions 2023-10-03 12:09:11 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 6 Fedora Admin user for bugzilla script actions 2023-11-09 12:26:02 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 7 Jens Petersen 2024-02-12 13:51:03 UTC
If rust is still affected by this, perhaps this should be moved to the llvm package instead?

Comment 8 Jens Petersen 2024-02-12 14:42:37 UTC
Moving this to llvm since that is what rust is actually using (linked against)

Comment 9 Fabio Valentini 2024-02-12 15:22:12 UTC
Right - as far as I can tell, it affects *all* versions of llvm, including the compat packages.
This used to be a problem with llvm12 when Rust used llvm12, but it is not specific to Rust.

The fact that installing LLVM doesn't cause problems in most cases seems to be pure luck, as the RPM ldconfig trigger seems to trigger for unrelated reasons, even if installing llvm doesn't do it when it should.

Comment 10 Tulio Magno Quites Machado Filho 2024-03-01 19:02:46 UTC
I proposed a fix at https://src.fedoraproject.org/rpms/llvm/pull-request/192
This will have to be backported to compat packages later.

Comment 11 Fedora Update System 2024-03-05 01:44:19 UTC
FEDORA-2024-a075b55246 (llvm17-17.0.6-7.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-a075b55246

Comment 12 Fedora Update System 2024-03-05 03:11:18 UTC
FEDORA-2024-a075b55246 (llvm17-17.0.6-7.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2024-03-06 02:18:38 UTC
FEDORA-2024-b536b520c2 (llvm16-16.0.6-8.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b536b520c2

Comment 14 Fedora Update System 2024-03-06 02:20:32 UTC
FEDORA-2024-2b1a16c9ea (llvm15-15.0.7-8.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2b1a16c9ea

Comment 15 Fedora Update System 2024-03-06 02:23:27 UTC
FEDORA-2024-b536b520c2 (llvm16-16.0.6-8.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-03-06 02:26:25 UTC
FEDORA-2024-2b1a16c9ea (llvm15-15.0.7-8.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.