Martin Banas
d112b143d7
Disable baseosci gating as the new osci fmf way has been verified to work
2025-07-02 12:59:12 +02:00
Martin Banas
985585428a
Enable OSCI gating via fmf in TMT
2025-07-02 08:37:44 +02:00
Nikita Popov
308a854b33
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.
Resolves: RHEL-87637
2025-06-11 17:13:17 +00:00
Jesus Checa Hidalgo
9c66b68329
Point clang tests to the correct repo
...
Related: RHEL-87637
2025-06-10 13:40:06 +02:00
Mikolaj Izdebski
86f458081d
Add java_arches macro
...
Resolves: RHEL-70841
2024-12-11 06:39:14 +01:00
Michal Domonkos
1323c4d6de
Fix auto soname requires on non-versioned targets
...
RPM's macro engine itself understands backslash escapes so we need to
double-escape these, otherwise we may accidentally match symlink targets
that contain the substring "so" in their names, such as:
libechosounder.so -> libechosounder2.so
~~
^ this is currently matched
Whereas we only want these to be processed:
libechosounder.so -> libechosounder.so.2
~~~~~
^ this should be matched
Resolves: RHEL-28767
2024-07-19 14:30:20 +02:00
Miro Hrončok
0cd67ff078
brp-mangle-shebangs: Strip env flags when mangling shebangs
...
For example, mangle "#!/usr/bin/env -S vd" to "#!/usr/bin/vd".
Backported from commit 65de6e6beb990dfb880ac1263698f5b109a1d62e in
Fedora.
Resolves: RHEL-26961
2024-07-19 14:22:47 +02:00
Miro Hrončok
74cfcb57bf
brp-python-bytecompile: Pass --invalidation-mode=timestamp to compileall
...
Resolves: RHEL-22139
2024-01-18 22:57:25 +01:00
Nikita Popov
f567673967
Use correct format specifier in brp-llvm-compile-lto-elf
...
Related: RHEL-11165
2023-10-02 09:33:55 +02:00
Nikita Popov
54595832f2
Fix the fix for brp-llvm-compile-lto-elf
...
Unfortunately the last change to fix hardlink handling broke the
script in a different way, due to use of the wrong quote style.
One step forward, two steps back.
Related: rhbz#2234024
2023-09-29 09:53:52 +02:00
Florian Weimer
4e2cd49713
Enable PIC mode for assembler files (RHEL-6298)
...
Backport from Fedora.
Resolves: RHEL-6298
2023-09-26 08:56:42 +02:00
Florian Weimer
7ff35836ed
Rebuild against more recent downstream branch ( #2234024 )
...
Related: #2234024
2023-09-13 10:51:44 +02:00
Nikita Popov
d3f5380a6d
Fix brp-llvm-compile-lto-elf parallelism with hardlinks
...
Deduplicate the files by inode, so each hardlink is only processed
once, thus avoiding race conditions.
Resolves: rhbz#2234024
2023-08-25 15:54:11 +02:00
Nikita Popov
1b3b6ded14
Add llvm dependency if clang toolchain used
...
Also remove the in-repo test for this functionality. This was not
actually enabled, and is the wrong test kind to boot (tmt rather
than sti). The actual test for this lives in the corresponding
tests repository.
Resolves: rhbz#2193406
2023-05-08 10:53:09 +02:00
Nikita Popov
bc835f7074
Change clang LTO default to ThinLTO
...
Resolves: rhbz#2178788
2023-04-19 14:27:13 +02:00
Miro Hrončok
446d35133d
Add pyproject-srpm-macros to the default buildroot
2023-02-13 16:35:18 +01:00
Nick Clifton
fb76cc62ed
Fix triggers for the installation and removal of gcc-plugin-annobin.
...
Resolves : #2167713
2023-02-07 13:59:06 +00:00
Timm Bäder
f14ea70dac
Ship brp-llvm-compile-lto-elf script
...
Resolves: rhbz#2022522
2022-11-02 10:51:33 +01:00
Nick Clifton
a334cde621
Pass "--remove section .gnu.build.attributes" to the find-debuginfo script.
...
Resolves: rhbz#2099613
2022-06-27 15:12:00 +01:00
Martin Cermak
3587595ca2
CI gating: Enable osci.brew-build.rebuild.validation
...
Enable osci.brew-build.rebuild.validation. This test runs a side-tag
rebuild of various components such as the kernel and possibly others
in order to check the sanity of redhat-rpm-config.
Related: #2008544
2022-06-22 13:07:30 +02:00
Peter Georg
179101e553
Detect compressed kernel modules
...
- Resolves : #2008544
2022-06-15 13:54:32 +02:00
Nick Clifton
ab82f58ead
Extend copyright date (unimportant change used to trigger a rebuild)
...
Resolves : #2030671
2022-02-18 10:10:51 +00:00
Nick Clifton
2bebe738a3
Use the correct package names for the triggers.
...
Resolves : #2030671
2022-02-17 13:26:34 +00:00
Nick Clifton
33b2a7ca43
Fix bugs in plugin selection script.
...
Resolves : #2030671
2022-02-15 12:54:47 +00:00
Nick Clifton
67fd7f7326
Select between gcc-built and annobin-built versions of the annobin plugin.
...
Resolves : #2030671
2022-02-01 15:08:31 +00:00
Nick Clifton
179fb4f26d
Add new files.
...
Resolves : #2030671
2022-02-01 14:35:55 +00:00
Nick Clifton
a981ac7ed2
Allow redhat-rpm-config to select between two different versions of the annobin plugin for gcc
...
Resolves : #2030671
2022-02-01 14:24:48 +00:00
Miro Hrončok
9a446ffeac
brp-mangle-shebangs: also mangle shebangs of JavaScript executables
...
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2030427
Unfortunately, the MIME type of JavaScript executables is not text/... but
application/javascript. See RFC 4329.
After considering various approaches to fix this problem, including:
1) limiting the number of characters `file` reads
2) using `eu-elfclassify` instead of `file`
This seems like the most sensible approach to fix this one particular problem.
If more instances are found problematic in the future, we'll keep adding the
MIME types.
See the linked bugzilla, the eu-elfclassify pull request [1],
and the devel mailing list thread [2] for details about this problem and
the considered solutions.
[1]: https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/145
[2]: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/K3QCBUXYR6ZA34I777X6F2RYJKKECJLM/
2021-12-08 19:36:23 +01:00
592dfe0cd1
Make vpath builddir not include arch-specific info
...
A number of cases have cropped up where things like documentation
builds fail with out of tree builds because tools like Doxygen like
encoding the build path into the documentation metadata.
This causes failures in Koji and other places where noarch documentation
subpackages from archful packages fail because they fail the comparison
check due to this.
Reference commit: e0cfcc0fc7
Resolves: rhbz#1984679
Signed-off-by: Neal Gompa <ngompa@centosproject.org>
2021-12-02 08:56:57 -05:00
Florian Weimer
aac42452fc
buildflags.md: Documentation updates ( #2005080 )
...
Resolves : #2005080
2021-11-16 18:02:48 +01:00
Florian Weimer
4e35bb887b
buildflags.md: Document downstream build flags
...
Related: #2005080
2021-11-16 17:57:16 +01:00
Florian Weimer
4358269192
buildflags.md: Remove 32-bit Arm references
...
Related: #2005080
2021-11-16 17:51:47 +01:00
Florian Weimer
bcaccca1b6
buildflags.md: Document source tree patching during %configure
...
Based on Fedora commit aee37a70c1
.
Related: #2005080
2021-11-16 17:49:33 +01:00
Florian Weimer
33f39cb8c3
buildflags.md: Document the post-processing on ELF files
...
From Fedora commit ff647eda53
.
This leaves a stale reference to __brp_llvm_compile_lto_elf,
which will come alive with #2022522 .
Related: #2005080
2021-11-16 17:48:23 +01:00
Florian Weimer
6ec24c5e1f
buildflags.md: Document -fasynchronous-unwind-tables as generic option
...
Based on Fedora commit 65028a4d00
.
Adjusted for lack of armhfp downstream and typo.
Related: #2005080
2021-11-16 17:13:04 +01:00
Florian Weimer
ca2114d8e5
buildflags.md: Mentioned that annobin is only on for gcc
...
Based on Fedora commit 23e5f0dbd6
.
Adjusted for the lack of armhfp downstream.
Related: #2005080
2021-11-16 17:10:17 +01:00
Florian Weimer
7e8a277485
buildflags.md: Treat -fstack-clash-protection as a generic flag
...
Based on Fedora commit a3cf0d66a7
.
Adjusted for the lack of armhfp downstream.
Related: #2005080
2021-11-16 17:08:01 +01:00
Florian Weimer
6528b59204
buildflags.md: Document LTO and how to disable it
...
From Fedora commit f824dc72a1
.
Related: #2005080
2021-11-16 17:04:11 +01:00
Florian Weimer
f8406551a0
buildflags.md: Move toolchain selection documentation from macros file
...
From Fedora commit a9123ea1ac
.
Related: #2005080
2021-11-16 17:01:27 +01:00
Florian Weimer
4ca70eae08
buildflags.md: Mention optional -fcommon under compiler flags
...
From Fedora commit ac57cc99aa
.
Related: #2005080
2021-11-16 16:59:38 +01:00
Florian Weimer
739df788ba
buildflags.md: Document _ld_as_needed, --as-needed
...
From Fedora commit 92959df563
.
Related: #2005080
2021-11-16 16:58:48 +01:00
Florian Weimer
e5a16881e1
buildflags.md: Drop mentions of ppc64
...
The ppc64 architecture is no longer built.
From Fedora commit 92261d7c20
.
Related: #2005080
2021-11-16 16:57:24 +01:00
Florian Weimer
422e4af866
redhat-rpm-config: Enable x86-64-v2 baseline for Clang/LLVM ( #1890170 )
...
Resolves : #1890170
2021-08-24 16:31:48 +02:00
Mohan Boddu
5aaba902dd
Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
...
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-10 00:35:56 +00:00
vdanek
4954c886f4
fix RHEL gating configuration
2021-08-02 21:49:32 +02:00
Florian Weimer
95a3d5d4a4
Activate GCC annobin plugin during LTO linking ( #1983727 )
...
Resolves : #1983727
2021-07-30 13:07:12 +02:00
Florian Weimer
4dd0b33150
aarch64: Do not build with -mbranch-protection=standard ( #1984652 )
...
Resolves : #1984652
2021-07-22 18:57:50 +02:00
Michal Domonkos
b62d15d955
Bump release for a rebuild in a sidetag
...
Related: #1959924
2021-05-25 15:58:48 +02:00
Michal Domonkos
ad6e5a346b
Bump release for a rebuild in a sidetag
...
Related: #1959924
2021-05-25 15:29:53 +02:00
Michal Domonkos
16bbde78a3
Drop kmod.attr
...
Also move this file to kernel-srpm-macros. Note that we need to require
a new kernel-srpm-macros release now, since that's where kmod.attr is
going to end up.
Related: #1959924
2021-05-24 12:26:52 +02:00