public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Adrian Reber <adrian@lisas.de>
To: git-commits@fedoraproject.org
Subject: [rpms/libcdio] rawhide: Fix multilib header hack ✨
Date: Wed, 11 Nov 2026 17:13:15 GMT [thread overview]
Message-ID: <179441719591.1.4710039732990614404.rpms-libcdio-3dea4c9d31b1@fedoraproject.org> (raw)
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
;;
*)
reply other threads:[~2026-11-11 17:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179441719591.1.4710039732990614404.rpms-libcdio-3dea4c9d31b1@fedoraproject.org \
--to=adrian@lisas.de \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox