Commit Graph

265 Commits

Author SHA1 Message Date
Josh Stone
bdc2be1e01 Trim extra_targets on RHEL
Resolves: RHEL-41260
2024-07-25 16:54:21 -07:00
Nikita Popov
a80eac446a Update to Rust 1.79.0
Resolves: RHEL-30071
2024-06-27 16:36:01 +02:00
Nikita Popov
880f2254ef Update to Rust 1.78.0
Related: RHEL-30071
2024-06-27 07:40:34 +00:00
Troy Dawson
4c9f8c7a4f Bump release for June 2024 mass rebuild 2024-06-24 09:23:13 -07:00
Josh Stone
02558073b7 Rebuild with LLVM 18
Resolves: RHEL-27726
2024-05-08 17:08:00 -07:00
Jesus Checa Hidalgo
9b68285126 Update gating config for rhel 10
Replace baseos-ci.brew-build.tier1-gating.functional test with
baseos-ci.brew-build.tier1-tmt-*.functional. The former was based on
beaker+TCMS which is legacy at this point, while the latter is
based on testing farm.

Related: RHEL-30090
2024-04-30 09:02:43 +02:00
Josh Stone
17595b6c30 Update to 1.77.2.
Resolves: RHEL-30090
Resolves: RHEL-30636
2024-04-19 11:17:24 -07:00
Josh Stone
89eacb88ce Update to 1.76.0. 2024-02-08 09:36:10 -08:00
Josh Stone
d7cd45b9e4 Consolidate 32-bit build compromises. 2024-01-30 16:59:46 -08:00
Yaakov Selkowitz
6501920abb Sync rust-toolset macros to rust-packaging v25.2
This bring RHEL rust-toolset in sync with the latest Fedora
rust-packaging, most importantly:

* Fedora's new style (-v vendor) vendoring is implemented. The old RHEL
style (-V #) vendoring is still supported, at least until we can convert
everything in ELN.

* Automatic generation of bundled provides using %cargo_vendor_manifest.
However, instead of depending on cargo2rpm, a very stripped-down version
of just its parse-vendor-manifest command is provided as a private
script, along with a fileattr to call it.

Other changes incorporated in this commit:

* -Cstrip=none added to %build_rustflags.

* --profile rpm is used instead of --release.

* Errors in spawned commands are now caught.

* Comments and whitespace are synced for easier comparison with Fedora.

* --target all is dropped from license and vendor macros, to avoid false
  alarms from windows crates.
2024-01-29 03:05:57 +00:00
Yaakov Selkowitz
8c1ae0e762 Provide rust-srpm-macros in RHEL
rust-srpm-macros is a dependency of redhat-rpm-config so that Rust-based
SRPMs can rely on these particular macros.  In RHEL 9 and earlier,
rust-srpm-macros was a separate source package which was included in
RHEL.  Since then, it became a subpackage of rust-packaging in Fedora.

In order to not pull in any part of rust-packaging into RHEL 10, thereby
allowing it to be maintained separately in EPEL, those macros are
provided here instead.
2024-01-29 03:05:57 +00:00
Fedora Release Engineering
6c6aaa4382 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 17:48:12 +00:00
Josh Stone
6f2eb1990e Rename x/xk macros for older rpm compat 2024-01-03 16:22:01 -08:00
Josh Stone
162f7919e2 Update to 1.75.0. 2023-12-31 11:00:36 -08:00
Josh Stone
a057e85147 Update to 1.74.1. 2023-12-07 09:56:29 -08:00
Josh Stone
6a528e9169 Update to 1.74.0. 2023-11-16 08:50:29 -08:00
Josh Stone
69f0d33100 Detect non-stable channels from the version 2023-11-16 08:28:54 -08:00
Yaakov Selkowitz
6b33462485 Sync rust-toolset macros from rust-packaging
This updates the RHEL/ELN rust-toolset macros to the state of
macros.rust and macros.cargo from Fedora rust-packaging v24, with
the following exceptions:

* %__cargo_to_rpm, as cargo2rpm is not shipped in RHEL;

* %cargo_registry, %cargo_instdir, and %cargo_generate_buildrequires
which are for building and/or consuming "library" crates which are not
built in RHEL;

* %__cargo_is_{bin,lib} and the is-lib conditional section of
%cargo_install, as they use cargo2rpm, and only "binary" crates are
built in RHEL;

* Dropped RUSTC_BOOTSTRAP and -Z avoid-dev-deps, as they are overly
broad and should not be needed with vendored builds (rust-packaging#23);

* Dropped rustflags that are already set by default (rust-packaging#24).
2023-11-15 13:20:52 -05:00
Josh Stone
9746593522 Use thin-LTO and PGO for rustc itself. 2023-10-26 09:01:56 -07:00
Josh Stone
4740f18b01 Loosen the search for older libclang_rt.profile 2023-10-05 15:45:24 -07:00
Josh Stone
0b6ffb1d4a Update to 1.73.0.
Drop el7 conditionals from the spec.
2023-10-05 09:24:56 -07:00
Daniel P. Berrangé
afbd2cf0c4 ensure rustfmt pulls in exact matching rust evr
/usr/bin/rustfmt is linking to an internal rust library and this
results in load errors if rustfmt and rust are at different evrs:

$ rustfmt
rustfmt: error while loading shared libraries: librustc_driver-69c69b1255476b63.so: cannot open shared object file: No such file or directory
$ rpm -q rust rustfmt
rust-1.72.0-1.fc38.x86_64
rustfmt-1.72.1-1.fc38.x86_64

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-10-04 10:50:58 +01:00
Josh Stone
fbe7f8404b Switch to unbundled wasi-libc on Fedora
Also, use emmalloc instead of CC0 dlmalloc when bundling wasi-libc.
2023-09-29 14:56:44 -07:00
Josh Stone
938db5293e Fix the profiler runtime with compiler-rt-17 2023-09-27 12:05:39 -07:00
Josh Stone
68e85e4428 Simplify the target definitions 2023-09-27 12:05:39 -07:00
Josh Stone
b2411fce72 Drop noarch from embedded x86_64 targets and use lld 2023-09-25 13:45:57 -07:00
Daniel P. Berrangé
9f66968c10 add 'x86_64-unknown-uefi' build target
This target will facilitate the use of Rust in the UEFI environment

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-09-25 11:36:55 -07:00
Daniel P. Berrangé
58662257c8 add 'x86_64-unknown-none' build target
The coconut-svsm project which provides a low level firmware for AMD
SEV-SNP virtual machines uses 'x86_64-unknown-none' as its build
target and has recently removed the requirement to use rust nightly[1].

Thus adding 'x86_64-unknown-none' as a build target will enable us to
build coconut-svsm in Fedora using the standard Rust toolchain packages.

[1] https://github.com/coconut-svsm/svsm/pull/81
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-09-25 11:36:00 -07:00
Yaakov Selkowitz
da52e5d316 Fix ELN build
ELN (RHEL 10) tracks rawhide and currently also has llvm-17.
2023-09-25 11:35:03 -07:00
Josh Stone
b1db162b38 Update to 1.72.1.
Migrated to SPDX license
2023-09-19 10:09:40 -07:00
Josh Stone
0764fad18b Update to 1.72.0. 2023-08-24 11:15:39 -07:00
Josh Stone
1265039e13 Disable profiler_builtins for EPEL7
We don't have compiler-rt available there.
2023-08-07 16:39:57 -07:00
Josh Stone
cd2d5f3610 Update to 1.71.1.
Security fix for CVE-2023-38497
2023-08-07 14:57:21 -07:00
Josh Stone
8cfe070190 Relax the suspicious_double_ref_op lint
Enable the profiler runtime for native hosts
2023-07-25 17:53:22 -07:00
Fedora Release Engineering
2f56a4c918 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 18:41:30 +00:00
Josh Stone
386b9914c9 Update to 1.71.0. 2023-07-17 09:24:25 -07:00
Josh Stone
356401c7f1 Override default target CPUs to match distro settings 2023-06-23 15:31:28 -07:00
Josh Stone
6fff218b19 Update to 1.70.0. 2023-06-01 12:46:43 -07:00
Josh Stone
ff66501ce9 Apply set_build_flags on rhel 2023-05-24 08:58:17 -07:00
Jesus Checa Hidalgo
8745dbe4c6 Add rpminspect.yaml config file
Added suppresion for reduced debuginfo in i386 builds.
2023-05-08 11:47:54 +00:00
Josh Stone
777115da9e Fix debuginfo with LLVM 16 2023-05-05 13:28:08 -07:00
Josh Stone
41fd9d7898 Build with LLVM 15 on Fedora 38+ 2023-05-01 10:07:31 -07:00
Josh Stone
77613da92c Update to 1.69.0.
Obsolete rust-analysis.
2023-04-20 09:47:54 -07:00
Josh Stone
7ac7a42b5e Update to 1.68.2. 2023-03-28 10:11:01 -07:00
Josh Stone
b4bb093ae0 Update to 1.68.1. 2023-03-23 08:42:27 -07:00
Josh Stone
a07799699f Update to 1.68.0. 2023-03-09 08:52:34 -08:00
David Michael
b85b429e00 Add a virtual Provides to rust-std-static with the target triple
This supports depending on a variable target using something like
the following since the other target stdlib subpackages are named
by this convention.

    BuildRequires:  rust-std-static-%{cargo_target}
2023-03-07 10:34:35 -08:00
Orion Poplawski
7f5b9608ec Make rust-toolset noarch 2023-03-06 15:11:28 -08:00
Orion Poplawski
375b75425b Ship rust-toolset for EPEL7 2023-03-06 15:11:28 -08:00
Josh Stone
f50b7f0c26 fedpkg new-sources 2023-02-09 16:56:40 -08:00