Commit Graph

870 Commits

Author SHA1 Message Date
f84dec20b9
Fix -mno-omit-leaf-frame-pointer usage on riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-07-10 20:32:45 +03:00
bf545d70ef
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-07-10 20:31:36 +03:00
Florian Weimer
ed9ad0e79d Enable DT_RELR for aarch64 2024-06-07 18:29:06 +02:00
Daan De Meyer
b8adb5cfa6 Use --config=xxx instead of two separate arguments
Due to a bug in meson (https://github.com/mesonbuild/meson/issues/13278),
--config is erronously stripped from LDFLAGS if it's a separate argument.
Let's make it a single argument instead to work around the issue in meson.
2024-05-31 23:37:06 +02:00
Miro Hrončok
9dbac25eb3 Fixup/adapt brp-llvm-compile-lto-elf test for RPM 4.20+
Ensure %_sourcedir and %_builddir are absolute paths,
as %mkbuilddir will change directories and relative paths will no longer be the same.

Explicitly disable debuginfo packages,
as the test does not work with them
yet they were only implicitly disabled by not using %setup
(which no longer works that way in RPM 4.20+).

Co-authored-by: Michal Domonkos <mdomonko@redhat.com>
2024-05-29 15:34:02 +02:00
Miro Hrončok
89546cd879 Fixup/adapt auto-set-build-flags test for RPM 4.20+
Don't assume the build happens directly in $PWD,
this is no longer true.
Instead, properly %prep the sources.

Explicitly disable debuginfo packages,
as the test does not work with them
yet they were only implicitly disabled by not using %setup
(which no longer works that way in RPM 4.20+ and %setup is now used anyway).

Co-authored-by: Michal Domonkos <mdomonko@redhat.com>
2024-05-29 13:31:28 +02:00
Michal Domonkos
7a1571ee80 Drop the now obsolete %install debuginfo hack
The %install override is no longer needed or compatible with 4.20.0
(4.19.91 being the latest pre-release snapshot in Rawhide) now that a
proper mechanism is implemented in RPM itself that that takes care of
debuginfo enablement, see:

- https://github.com/rpm-software-management/rpm/issues/2204
- https://rpm.org/wiki/Releases/4.20.0
2024-05-22 12:50:05 +02:00
Jens Petersen
f7d9eeb359 Drop dependency on ghc-srpm-macros for RHEL
Other changes are just grouping and sorting all the rhel excluded packages

Resolves: RHEL-33354
2024-05-22 11:54:17 +02:00
Timm Bäder
ae9fb22dce Add redhat-hardened-clang-ld.cfg
To pass -pie when linking with clang.
2024-05-21 22:23:48 +00:00
6a21e2ac0a
Add riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-05-15 15:34:21 +03:00
2e8dc48b09
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-05-15 15:26:26 +03:00
Zbigniew Jędrzejewski-Szmek
a2f31272a9 Change summary to say that this package is "Red Hat family"
It's confusing to see a package that says that it's for Red Hat installed
in a Fedora installation. For historical reasons, this package is named
"redhat-*", and it'd be complicated to change this [1]. By saying that this
is for the "Red Hat _family_" we also give another broader interpratation
to the package name.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1829430

The hyphenation is hard: "Red Hat" is spelled with a space, but we need
hyphens to connect the modifiers to it.
2024-05-14 04:07:04 +00:00
Zbigniew Jędrzejewski-Szmek
043a40a714 Pull in build-reproducibility-srpm-macros
That package provides the file with the macros and will pull in
add-determinism or add-determinism-nopython as appropriate.

(The name is made kept fairly generic in case we want to add
additional parts to it leter, not just a call to add-determinism.)
2024-05-10 18:19:51 +00:00
Zbigniew Jędrzejewski-Szmek
6522bbd275 Include %__os_install_post_build_reproducibility 2024-05-10 18:19:51 +00:00
Zbigniew Jędrzejewski-Szmek
3a0ac39354 Fix file listings
rpmbuild was complaining about duplicates.
2024-05-09 13:03:24 +02:00
Zbigniew Jędrzejewski-Szmek
6f22ccfb07 Restore version in Obsoletes for rpmautospec-rpm-macros
Omitting the version is against Packaging Guidelines and causes a
noisy warning to be emitted for every build.
2024-05-09 12:56:47 +02:00
Tom Stellard
7f43bf95e8 Fix url for clang and gcc tests 2024-05-06 19:49:05 +00:00
Nikita Popov
fed29a69be Use Fat LTO with Clang
Currently, when the clang toolchain is used, we use the
brp-llvm-compile-lto-to-elf script to post-process any shipped
object files or static libraries to convert the LLVM bitcode they
contain into ELF object code.

With LLVM 18, Clang has introduced support for fat LTO objects
(https://llvm.org/docs/FatLTO.html), which work essentially the
same way as with GCC: If `-ffat-lto-objects` is passed, then the
objects will contain both the ELF code, as well as the LLVM
bitcode in a special section.

This redhat-rpm-config change enables the use of fat LTO and
drops the brp-llvm-compile-lto-to-elf script. Instead, the
brp-strip-lto script used by GCC also strips the LLVM section
name now.

This is part of https://fedoraproject.org/wiki/Changes/LLVM-18.
2024-04-11 17:31:09 +09:00
Florian Weimer
b7d1bfae1f Enable TLS descriptors on x86-64 (GCC only)
Part of: <https://fedoraproject.org/wiki/Changes/GNUToolchainF40>
2024-03-14 11:21:58 +01:00
Omair Majid
c758552a10 Define %dotnet_arches with a list of .NET-compatible architectures
Contributes to https://bugzilla.redhat.com/show_bug.cgi?id=2170536
2024-03-12 14:23:45 -04:00
Miro Hrončok
65de6e6beb brp-mangle-shebangs: Strip env flags when mangling shebangs
- For example, mangle "#!/usr/bin/env -S vd" to "#!/usr/bin/vd"
- Fixes: rhbz#2265038
2024-02-20 10:16:44 +01:00
Florian Weimer
3b9bfae367 Correct advise for disabling debuginfo packages (#2264161) 2024-02-14 14:09:55 +01:00
Frédéric Bérat
7e8252c3e9 gnuconfig: sync with upstream git 2024-02-14 10:45:25 +01:00
Yaakov Selkowitz
b7cdf93185 Loosen rust-srpm-macros requirement
https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/277
reverted the requirement for rust-srpm-macros to define %build_rustflags.
Since RHEL's rust package will provide that as a subpackage with its
own versioning scheme rather than rust-packaging's, the version constraint
needs to be dropped.
2024-02-06 11:56:45 -05:00
Jonathan Wright
c94d80a6dd simplify microarch macros for x86_64 2024-02-05 10:38:06 -06:00
7dbc18f441
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-02-01 11:06:08 +02:00
Florian Weimer
13bd1aaf1a Drop -fcf-protection for i686 because there won't be kernel support 2024-01-16 11:35:28 +01:00
Nils Philippsen
c0295c50b3 Obsolete rpmautospec-rpm-macros without version
This is so redhat-rpm-config will obsolete any version of
rpmautospec-rpm-macros in Fedora <= 39.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-01-16 10:40:26 +01:00
Nick Clifton
a455b31b14 Add redhat-hardened-ld-errors file 2024-01-15 13:01:37 +00:00
Nick Clifton
f3416f1436 Add hardening feature to convert linker warning messages into errors.
https://fedoraproject.org/wiki/Changes/Linker_Error_On_Security_Issues
2024-01-15 12:35:44 +00:00
Florian Weimer
b13edec098 Switch C type safety level to 3 (GCC 14 default), and adjust for GCC 14
No conflict because except for %global build_type_safety 0,
the package is still compatibility with GCC 13 (but does not
enforce the type safety levels anymore).
2024-01-15 12:26:03 +01:00
Jan Grulich
a15ac4695e Don't pull in qt5-srpm-macros on RHEL 10 2024-01-11 08:04:50 +01:00
8acac96087
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-01-09 11:44:21 +02:00
Yaakov Selkowitz
19a840bac0 Define RUSTFLAGS only when rust macros are installed
Now that rust-packaging absorbed rust-srpm-macros in Fedora, RHEL rust
will need to provide an srpm-macros subpackage so that no part of
rust-packaging will be pulled into RHEL 10.  This will then allow
rust-packaging (minus macros.rust-srpm) to exist in EPEL.
2024-01-04 21:31:25 -05:00
Florian Weimer
4daef93aa9 Missing packed relative relocation support on aarch64, s390x (#2256645) 2024-01-03 19:20:52 +01:00
Florian Weimer
5fca01af52 Pack relative ELF relocations by default
Leftover from the Fedora 39 toolchain changes.
2024-01-02 17:13:11 +01:00
Jan200101
363ddf0a1c
Add zig-srpm-macros 2023-12-26 21:53:47 +01:00
db66d1e06a
Disable LTO (GCC, Clang) globally for riscv64
While the change is not correct for upstream. We temporary disable LTO
to lower build times and thus increase general build throughput.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-11-30 10:33:37 +02:00
05712f91e2
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-11-30 10:28:05 +02:00
Neal Gompa
9446afdb0a Bump release and add changelog entry 2023-11-03 17:44:18 -04:00
Stephen Gallagher
a65dee421c ELN: Enable frame pointers for RHEL 11+
This will be active during the initial years of ELN development tracking
RHEL 11. It may be reverted in the final Fedora cycle prior to branching
if RHEL management decides to do so.

See
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/ODSVQKC2HHO5W3JD63DW3C53DG5WATUA/
for details.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2023-11-03 14:49:49 -04:00
Miro Hrončok
3c3493dc40 Docs: Fix a typo in %global build_type_safety_c 2023-10-24 12:27:24 +02:00
ae5fb62828
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-10-12 17:06:09 +03:00
Florian Weimer
75f13b0ffd Disable -fstack-clash-protection on riscv64 (#2242327) 2023-10-05 17:53:18 +02:00
Nikita Popov
1c5e204554 Use correct format specifier in brp-llvm-compile-lto-elf
Related: RHEL-11165
2023-10-05 17:51:39 +02:00
Nikita Popov
820c23a121 Also test brp-llvm-compile-lto-elf on object file
This serves the dual purpose on making sure that plain object
files can also be converted to ELF, and that the script handles
more than a single file.
2023-09-29 09:33:12 +02:00
Nikita Popov
88a50692ec Fix brp-llvm-compile-lto-elf parallelism with hardlinks (#2234024)
Deduplicate the files by inode, so each hardlink is only processed
once, thus avoiding race conditions.
2023-09-29 09:27:19 +02:00
Florian Weimer
a2798ac4c1 Switch %build_type_safety_c to 1 (#2142177) 2023-09-26 18:42:49 +02:00
Maxwell G
df12b70625
Split out forge macros to forge-srpm-macros package 2023-09-07 16:08:23 +00:00
Florian Weimer
0c097001d1 Add support for x86_64_v2, x86_64_v3, x86_64_v4 (#2233093) 2023-08-29 10:58:30 +02:00