public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libcdio] rawhide: Fix multilib header hack ✨
@ 2026-11-11 17:13 Adrian Reber
0 siblings, 0 replies; only message in thread
From: Adrian Reber @ 2026-11-11 17:13 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libcdio
Branch : rawhide
Commit : 3dea4c9d31b188dd80fe7c0b1a83e7b9adf72c15
Author : Adrian Reber <adrian@lisas.de>
Date : 2026-11-04T08:20:26+00:00
Stats : +2/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/libcdio/c/3dea4c9d31b188dd80fe7c0b1a83e7b9adf72c15?branch=rawhide
Log:
Fix multilib header hack ✨
`uname -i` returns "unknown" on Fedora, so the case statement matched
no branch and the hack silently did nothing. The arch-specific
cdio_config.h was therefore shipped under the shared name, which made
libcdio-devel.i686 and libcdio-devel.x86_64 conflict again (#477288).
Use %{_arch} instead. Its values map exactly onto the branches of the
cdio_config.h wrapper, so the arch list stays as it is; aarch64,
ppc64le and riscv64 are deliberately left out because they have no
wrapper branch and need no multilib.
Signed-off-by: Adrian Reber <adrian@lisas.de>
---
diff --git a/libcdio.spec b/libcdio.spec
index a71ecfc..7bfc899 100644
--- a/libcdio.spec
+++ b/libcdio.spec
@@ -64,9 +64,9 @@ cp %{SOURCE2} .
%make_install
# multilib header hack; taken from postgresql.spec
-case `uname -i` in
+case %{_arch} in
i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 )
- mv $RPM_BUILD_ROOT%{_includedir}/cdio/cdio_config.h $RPM_BUILD_ROOT%{_includedir}/cdio/cdio_config_`uname -i`.h
+ mv $RPM_BUILD_ROOT%{_includedir}/cdio/cdio_config.h $RPM_BUILD_ROOT%{_includedir}/cdio/cdio_config_%{_arch}.h
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/cdio
;;
*)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-11 17:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 17:13 [rpms/libcdio] rawhide: Fix multilib header hack ✨ Adrian Reber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox