import redhat-rpm-config-120-1.el8
This commit is contained in:
parent
0ede6a1689
commit
085dc49cd4
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash -efu
|
#! /bin/bash -f
|
||||||
|
|
||||||
## A counterpart of brp-kmod-set-exec-bits that restores original kmod
|
## A counterpart of brp-kmod-set-exec-bits that restores original kmod
|
||||||
## file permissions
|
## file permissions
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash -efux
|
#! /bin/bash -fx
|
||||||
|
|
||||||
## A hack for making brp-strip taking into account kmod files
|
## A hack for making brp-strip taking into account kmod files
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -efu
|
#!/bin/sh -f
|
||||||
# Force creating of DSO symlinks.
|
# Force creating of DSO symlinks.
|
||||||
|
|
||||||
# If using normal root, avoid changing anything.
|
# If using normal root, avoid changing anything.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -eu
|
#!/bin/bash
|
||||||
|
|
||||||
# If using normal root, avoid changing anything.
|
# If using normal root, avoid changing anything.
|
||||||
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
|
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
|
||||||
|
@ -334,3 +334,44 @@ linker flags:
|
|||||||
security exploits, redirecting execution). Therefore, it is
|
security exploits, redirecting execution). Therefore, it is
|
||||||
preferable to turn of lazy binding, although it increases startup
|
preferable to turn of lazy binding, although it increases startup
|
||||||
time.
|
time.
|
||||||
|
|
||||||
|
# Support for extension builders
|
||||||
|
|
||||||
|
Some packages include extension builders that allow users to build
|
||||||
|
extension modules (which are usually written in C and C++) under the
|
||||||
|
control of a special-purpose build system. This is a common
|
||||||
|
functionality provided by scripting languages such as Python and Perl.
|
||||||
|
Traditionally, such extension builders captured the Fedora build flags
|
||||||
|
when these extension were built. However, these compiler flags are
|
||||||
|
adjusted for a specific Fedora release and toolchain version and
|
||||||
|
therefore do not work with a custom toolchain (e.g., different C/C++
|
||||||
|
compilers), and users might want to build their own extension modules
|
||||||
|
with such toolchains.
|
||||||
|
|
||||||
|
The macros `%{extension_cflags}`, `%{extension_cxxflags}`,
|
||||||
|
`%{extension_fflags}`, `%{extension_ldflags}` contain a subset of
|
||||||
|
flags that have been adjusted for compatibility with alternative
|
||||||
|
toolchains, while still preserving some of the compile-time security
|
||||||
|
hardening that the standard Fedora build flags provide.
|
||||||
|
|
||||||
|
The current set of differences are:
|
||||||
|
|
||||||
|
* No GCC plugins (such as annobin) are activated.
|
||||||
|
* No GCC spec files (`-specs=` arguments) are used.
|
||||||
|
|
||||||
|
Additional flags may be removed in the future if they prove to be
|
||||||
|
incompatible with alternative toolchains.
|
||||||
|
|
||||||
|
Extension builders should detect whether they are performing a regular
|
||||||
|
RPM build (e.g., by looking for an `RPM_OPT_FLAGS` variable). In this
|
||||||
|
case, they should use the *current* set of Fedora build flags (that
|
||||||
|
is, the output from `rpm --eval '%{build_cflags}'` and related
|
||||||
|
commands). Otherwise, when not performing an RPM build, they can
|
||||||
|
either use hard-coded extension builder flags (thus avoiding a
|
||||||
|
run-time dependency on `redhat-rpm-config`), or use the current
|
||||||
|
extension builder flags (with a run-time dependency on
|
||||||
|
`redhat-rpm-config`).
|
||||||
|
|
||||||
|
As a result, extension modules built for Fedora will use the official
|
||||||
|
Fedora build flags, while users will still be able to build their own
|
||||||
|
extension modules with custom toolchains.
|
||||||
|
@ -57,6 +57,22 @@
|
|||||||
FCFLAGS="${FCFLAGS:-%{build_fflags}}" ; export FCFLAGS ; \
|
FCFLAGS="${FCFLAGS:-%{build_fflags}}" ; export FCFLAGS ; \
|
||||||
LDFLAGS="${LDFLAGS:-%{build_ldflags}}" ; export LDFLAGS
|
LDFLAGS="${LDFLAGS:-%{build_ldflags}}" ; export LDFLAGS
|
||||||
|
|
||||||
|
# Internal-only. Do not use. Expand a variable and strip the flags
|
||||||
|
# not suitable to extension builders.
|
||||||
|
%__extension_strip_flags() %{lua:
|
||||||
|
local name = rpm.expand("%{1}")
|
||||||
|
local value = " " .. rpm.expand("%{build_" .. name .. "}")
|
||||||
|
local result = string.gsub(value, "%s+-specs=[^%s]+", " ")
|
||||||
|
print(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
# Variants of CFLAGS, CXXFLAGS, FFLAGS, LDFLAGS for use within
|
||||||
|
# extension builders.
|
||||||
|
%extension_cflags %{__extension_strip_flags cflags}
|
||||||
|
%extension_cxxflags %{__extension_strip_flags cxxflags}
|
||||||
|
%extension_fflags %{__extension_strip_flags fflags}
|
||||||
|
%extension_ldflags %{__extension_strip_flags ldflags}
|
||||||
|
|
||||||
# Deprecated names. For backwards compatibility only.
|
# Deprecated names. For backwards compatibility only.
|
||||||
%__global_cflags %{build_cflags}
|
%__global_cflags %{build_cflags}
|
||||||
%__global_cxxflags %{build_cxxflags}
|
%__global_cxxflags %{build_cxxflags}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# valgrind_arches lists what arches Valgrind works on
|
# valgrind_arches lists what arches Valgrind works on
|
||||||
|
|
||||||
%valgrind_arches %{ix86} x86_64 ppc ppc64 ppc64le armv7hl aarch64
|
%valgrind_arches %{ix86} x86_64 ppc ppc64 ppc64le armv7hl aarch64 s390x
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Summary: Red Hat specific rpm configuration files
|
Summary: Red Hat specific rpm configuration files
|
||||||
Name: redhat-rpm-config
|
Name: redhat-rpm-config
|
||||||
Version: 116
|
Version: 120
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
# No version specified.
|
# No version specified.
|
||||||
License: GPL+
|
License: GPL+
|
||||||
@ -147,7 +147,7 @@ install -p -m 755 -t %{buildroot}%{rrcdir} brp-*
|
|||||||
|
|
||||||
install -p -m 755 -t %{buildroot}%{rrcdir} find-*
|
install -p -m 755 -t %{buildroot}%{rrcdir} find-*
|
||||||
mkdir -p %{buildroot}%{rrcdir}/find-provides.d
|
mkdir -p %{buildroot}%{rrcdir}/find-provides.d
|
||||||
install -p -m 644 -t %{buildroot}%{rrcdir}/find-provides.d firmware.prov modalias.prov
|
install -p -m 755 -t %{buildroot}%{rrcdir}/find-provides.d firmware.prov modalias.prov
|
||||||
|
|
||||||
install -p -m 755 -t %{buildroot}%{rrcdir} brp-*
|
install -p -m 755 -t %{buildroot}%{rrcdir} brp-*
|
||||||
|
|
||||||
@ -198,6 +198,19 @@ install -p -m 755 %{SOURCE21} %{buildroot}%{_rpmconfigdir}/kabi.sh
|
|||||||
%{_rpmconfigdir}/macros.d/macros.kmp
|
%{_rpmconfigdir}/macros.d/macros.kmp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
* Thu Jul 04 2019 Florian Festi <ffesti@redhat.com> - 120-1
|
||||||
|
- Fix permission for various build scripts (#1719363)
|
||||||
|
|
||||||
|
* Tue Jun 04 2019 Florian Festi <ffesti@redhat.com> - 119-1
|
||||||
|
- Remove -eu param from shell scripts (#1686413)
|
||||||
|
|
||||||
|
* Mon May 20 2019 Florian Weimer <fweimer@redhat.com> - 118-1
|
||||||
|
- Build flags: Add support for extension builders (#1661186)
|
||||||
|
|
||||||
|
* Wed Apr 17 2019 Panu Matilainen <pmatilai@redhat.com> - 117-1
|
||||||
|
- Add s390x to valgrind supported architectures (#1659106)
|
||||||
|
|
||||||
* Wed Feb 06 2019 Eugene Syromiatnikov <esyr@redhat.com> - 116-1
|
* Wed Feb 06 2019 Eugene Syromiatnikov <esyr@redhat.com> - 116-1
|
||||||
- Forward-port RHEL-specific kmodtool/macros.kmp changes from RHEL 7,
|
- Forward-port RHEL-specific kmodtool/macros.kmp changes from RHEL 7,
|
||||||
update kmodtool script for RHEL 8 (#1658414, #1666162)
|
update kmodtool script for RHEL 8 (#1658414, #1666162)
|
||||||
|
Loading…
Reference in New Issue
Block a user