public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/redhat-rpm-config] rawhide: Obsolete multilib-rpm-config on RHEL
@ 2026-11-24 17:58 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-24 17:58 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/redhat-rpm-config
Branch : rawhide
Commit : 583fbdf4f9fcec891aca1ef38019b7cffef27a72
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-11-24T17:57:42+00:00
Stats : +18/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/redhat-rpm-config/c/583fbdf4f9fcec891aca1ef38019b7cffef27a72?branch=rawhide
Log:
Obsolete multilib-rpm-config on RHEL
As of RHEL 10 no multilib arches are supported, so multilib-rpm-config
serves no practical purpose. This avoids having to choose between carrying
a useless package or conditionalizing every multilib-aware package.
https://github.com/fedora-eln/eln/issues/525
---
diff --git a/macros.ml b/macros.ml
new file mode 100644
index 0000000..957229a
--- /dev/null
+++ b/macros.ml
@@ -0,0 +1,4 @@
+# This is for RHEL only, which no longer supports multilib arches
+# Fedora uses the multilib-rpm-config package because of ix86/x86_64
+%multilib_fix_c_header :
+%multilib_capable false
diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec
index ded055f..a2c2b2e 100644
--- a/redhat-rpm-config.spec
+++ b/redhat-rpm-config.spec
@@ -53,6 +53,7 @@ Source155: macros.ldconfig
Source156: macros.vpath
Source157: macros.shell-completions
Source158: macros.rpmautospec
+Source159: macros.ml
# Build policy scripts
# this comes from https://github.com/rpm-software-management/rpm/pull/344
@@ -147,6 +148,12 @@ Conflicts: gcc < 8.0.1-0.22
# Replaced by macros.rpmautospec shipped by us
Obsoletes: rpmautospec-rpm-macros < 0.6.3-2
+# RHEL 10 has no multilib architectures, but Fedora does
+%if 0%{?rhel}
+Obsoletes: multilib-rpm-config < 2
+Provides: multilib-rpm-config = 1
+%endif
+
Provides: system-rpm-config = %{version}-%{release}
%global rrcdir /usr/lib/rpm/redhat
@@ -163,6 +170,10 @@ Red Hat specific rpm configuration files.
# of source numbers in install section
%setup -c -T
cp -p %{sources} .
+%if ! 0%{?rhel}
+rm macros.ml
+%endif
+
%install
mkdir -p %{buildroot}%{rrcdir}
@@ -248,6 +259,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora common.lua
%{_rpmconfigdir}/macros.d/macros.dwz
%{_rpmconfigdir}/macros.d/macros.fedora-misc
%{_rpmconfigdir}/macros.d/macros.ldconfig
+%if 0%{?rhel}
+%{_rpmconfigdir}/macros.d/macros.ml
+%endif
%{_rpmconfigdir}/macros.d/macros.rpmautospec
%{_rpmconfigdir}/macros.d/macros.shell-completions
%{_rpmconfigdir}/macros.d/macros.vpath
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-24 17:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 17:58 [rpms/redhat-rpm-config] rawhide: Obsolete multilib-rpm-config on RHEL Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox