Add %_configure_use_runstatedir to disable --runstatedir
This commit is contained in:
parent
ac9b7aed66
commit
f857d65cdd
@ -124,6 +124,16 @@ are set as well during libtool-. This can be switched off using:
|
|||||||
|
|
||||||
Further patching happens in LTO mode, see below.
|
Further patching happens in LTO mode, see below.
|
||||||
|
|
||||||
|
### Other autotools compatibility settings
|
||||||
|
|
||||||
|
During `%configure`, `--runstatedir` is automatically passed to the
|
||||||
|
`configure` script if support for this option is detected. This
|
||||||
|
detection can fail if the package has multiple `configure` scripts
|
||||||
|
that invoke each other, and only some of them support `--runstatedir`.
|
||||||
|
To disable passing `--runstatedir`, use:
|
||||||
|
|
||||||
|
%undefine _configure_use_runstatedir
|
||||||
|
|
||||||
### Disabling Link-Time Optimization
|
### Disabling Link-Time Optimization
|
||||||
|
|
||||||
By default, builds use link-time optimization. In this build mode,
|
By default, builds use link-time optimization. In this build mode,
|
||||||
|
5
macros
5
macros
@ -154,6 +154,9 @@ print(result)
|
|||||||
# way to turn it back off.
|
# way to turn it back off.
|
||||||
# %_configure_disable_silent_rules 1
|
# %_configure_disable_silent_rules 1
|
||||||
|
|
||||||
|
# Pass --runstatedir to configure.
|
||||||
|
%_configure_use_runstatedir 1
|
||||||
|
|
||||||
# This fixes various easy resolved configure tests that are compromised by LTO.
|
# This fixes various easy resolved configure tests that are compromised by LTO.
|
||||||
#
|
#
|
||||||
# We use this within the standard %configure macro, but also make it available
|
# We use this within the standard %configure macro, but also make it available
|
||||||
@ -217,7 +220,7 @@ print(result)
|
|||||||
--libdir=%{_libdir} \\\
|
--libdir=%{_libdir} \\\
|
||||||
--libexecdir=%{_libexecdir} \\\
|
--libexecdir=%{_libexecdir} \\\
|
||||||
--localstatedir=%{_localstatedir} \\\
|
--localstatedir=%{_localstatedir} \\\
|
||||||
$(grep -q "runstatedir=DIR" %{_configure} && echo '--runstatedir=%{_runstatedir}') \\\
|
%{?_configure_use_runstatedir:$(grep -q "runstatedir=DIR" %{_configure} && echo '--runstatedir=%{_runstatedir}')} \\\
|
||||||
--sharedstatedir=%{_sharedstatedir} \\\
|
--sharedstatedir=%{_sharedstatedir} \\\
|
||||||
--mandir=%{_mandir} \\\
|
--mandir=%{_mandir} \\\
|
||||||
--infodir=%{_infodir}
|
--infodir=%{_infodir}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# 2) When making changes, increment the version (in baserelease) by 1.
|
# 2) When making changes, increment the version (in baserelease) by 1.
|
||||||
# rpmdev-bumpspec and other tools update the macro below, which is used
|
# rpmdev-bumpspec and other tools update the macro below, which is used
|
||||||
# in Version: to get the desired effect.
|
# in Version: to get the desired effect.
|
||||||
%global baserelease 234
|
%global baserelease 235
|
||||||
|
|
||||||
Summary: Red Hat specific rpm configuration files
|
Summary: Red Hat specific rpm configuration files
|
||||||
Name: redhat-rpm-config
|
Name: redhat-rpm-config
|
||||||
@ -221,6 +221,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua
|
|||||||
%doc buildflags.md
|
%doc buildflags.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Dec 10 2022 Florian Weimer <fweimer@redhat.com> - 235-1
|
||||||
|
- Add %%_configure_use_runstatedir to disable --runstatedir configure option
|
||||||
|
|
||||||
* Fri Nov 4 2022 Tom Stellard <tstellar@redhat.com> - 234-1
|
* Fri Nov 4 2022 Tom Stellard <tstellar@redhat.com> - 234-1
|
||||||
- Remove unsupported arches from rpmrc
|
- Remove unsupported arches from rpmrc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user