public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mold] rawhide: Improve conformance with packaging guidelines
@ 2026-11-01 10:51 Christoph Erhardt
0 siblings, 0 replies; only message in thread
From: Christoph Erhardt @ 2026-11-01 10:51 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mold
Branch : rawhide
Commit : 217d9885fe17472a7c614edc4f13d02705bf1251
Author : Christoph Erhardt <fedora@sicherha.de>
Date : 2026-11-01T11:25:45+01:00
Stats : +3/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/mold/c/217d9885fe17472a7c614edc4f13d02705bf1251?branch=rawhide
Log:
Improve conformance with packaging guidelines
Depend on the `update-alternatives` binary instead of the `alternatives`
package.
(Note: `%{_sbindir}` resolves to `/usr/bin` on Fedora and `/usr/sbin` on
RHEL. This is expected behavior.)
Touch the `ld` file as prescribed by the guidelines.
[skip changelog]
---
diff --git a/mold.spec b/mold.spec
index 8e4ce88..8f63e31 100644
--- a/mold.spec
+++ b/mold.spec
@@ -63,8 +63,8 @@ BuildRequires: libstdc++-static
BuildRequires: llvm
BuildRequires: perl-interpreter
-Requires(post): alternatives
-Requires(postun): alternatives
+Requires(post): %{_sbindir}/update-alternatives
+Requires(postun): %{_sbindir}/update-alternatives
%description
mold is a faster drop-in replacement for existing Unix linkers.
@@ -91,6 +91,7 @@ rm -r third-party/tbb
%install
%cmake_install
+touch %{buildroot}%{_bindir}/ld
%post
if [ "$1" = 1 ]; then
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-01 10:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-01 10:51 [rpms/mold] rawhide: Improve conformance with packaging guidelines Christoph Erhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox