disable LTO to work around LLVM crashes on ppc64le

epel9
Fabio Valentini 2 years ago
parent 1db05186ff
commit 7b1df641a9
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,25 +1,22 @@
# Generated by rust2rpm 16 # Generated by rust2rpm 23
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
%global crate slog %global crate slog
Name: rust-%{crate} Name: rust-slog
Version: 2.7.0 Version: 2.7.0
Release: 6%{?dist} Release: 7%{?dist}
Summary: Structured, extensible, composable logging for Rust Summary: Structured, extensible, composable logging for Rust
# Upstream license specification: MPL-2.0 OR MIT OR Apache-2.0 License: MPL-2.0 OR MIT OR Apache-2.0
License: MPLv2.0 or MIT or ASL 2.0
URL: https://crates.io/crates/slog URL: https://crates.io/crates/slog
Source: %{crates_source} Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * disable LTO to work around LLVM crashes on ppc64le
Patch: slog-fix-metadata.diff
ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand: %global _description %{expand:
Structured, extensible, composable logging for Rust.} Structured, extensible, composable logging for Rust.}
@ -32,13 +29,16 @@ BuildArch: noarch
%description devel %{_description} %description devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "%{crate}" crate. use the "%{crate}" crate.
%files devel %files devel
%license LICENSE-MPL2 LICENSE-MIT LICENSE-APACHE %license %{crate_instdir}/LICENSE-APACHE
%doc README.md CHANGELOG.md %license %{crate_instdir}/LICENSE-MIT
%{cargo_registry}/%{crate}-%{version_no_tilde}/ %license %{crate_instdir}/LICENSE-MPL2
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel %package -n %{name}+default-devel
Summary: %{summary} Summary: %{summary}
@ -46,11 +46,11 @@ BuildArch: noarch
%description -n %{name}+default-devel %{_description} %description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "default" feature of "%{crate}" crate. use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel %files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+dynamic-keys-devel %package -n %{name}+dynamic-keys-devel
Summary: %{summary} Summary: %{summary}
@ -58,11 +58,11 @@ BuildArch: noarch
%description -n %{name}+dynamic-keys-devel %{_description} %description -n %{name}+dynamic-keys-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "dynamic-keys" feature of "%{crate}" crate. use the "dynamic-keys" feature of the "%{crate}" crate.
%files -n %{name}+dynamic-keys-devel %files -n %{name}+dynamic-keys-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+erased-serde-devel %package -n %{name}+erased-serde-devel
Summary: %{summary} Summary: %{summary}
@ -70,11 +70,11 @@ BuildArch: noarch
%description -n %{name}+erased-serde-devel %{_description} %description -n %{name}+erased-serde-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "erased-serde" feature of "%{crate}" crate. use the "erased-serde" feature of the "%{crate}" crate.
%files -n %{name}+erased-serde-devel %files -n %{name}+erased-serde-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+max_level_debug-devel %package -n %{name}+max_level_debug-devel
Summary: %{summary} Summary: %{summary}
@ -82,11 +82,11 @@ BuildArch: noarch
%description -n %{name}+max_level_debug-devel %{_description} %description -n %{name}+max_level_debug-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "max_level_debug" feature of "%{crate}" crate. use the "max_level_debug" feature of the "%{crate}" crate.
%files -n %{name}+max_level_debug-devel %files -n %{name}+max_level_debug-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+max_level_error-devel %package -n %{name}+max_level_error-devel
Summary: %{summary} Summary: %{summary}
@ -94,11 +94,11 @@ BuildArch: noarch
%description -n %{name}+max_level_error-devel %{_description} %description -n %{name}+max_level_error-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "max_level_error" feature of "%{crate}" crate. use the "max_level_error" feature of the "%{crate}" crate.
%files -n %{name}+max_level_error-devel %files -n %{name}+max_level_error-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+max_level_info-devel %package -n %{name}+max_level_info-devel
Summary: %{summary} Summary: %{summary}
@ -106,11 +106,11 @@ BuildArch: noarch
%description -n %{name}+max_level_info-devel %{_description} %description -n %{name}+max_level_info-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "max_level_info" feature of "%{crate}" crate. use the "max_level_info" feature of the "%{crate}" crate.
%files -n %{name}+max_level_info-devel %files -n %{name}+max_level_info-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+max_level_off-devel %package -n %{name}+max_level_off-devel
Summary: %{summary} Summary: %{summary}
@ -118,11 +118,11 @@ BuildArch: noarch
%description -n %{name}+max_level_off-devel %{_description} %description -n %{name}+max_level_off-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "max_level_off" feature of "%{crate}" crate. use the "max_level_off" feature of the "%{crate}" crate.
%files -n %{name}+max_level_off-devel %files -n %{name}+max_level_off-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+max_level_trace-devel %package -n %{name}+max_level_trace-devel
Summary: %{summary} Summary: %{summary}
@ -130,11 +130,11 @@ BuildArch: noarch
%description -n %{name}+max_level_trace-devel %{_description} %description -n %{name}+max_level_trace-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "max_level_trace" feature of "%{crate}" crate. use the "max_level_trace" feature of the "%{crate}" crate.
%files -n %{name}+max_level_trace-devel %files -n %{name}+max_level_trace-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+max_level_warn-devel %package -n %{name}+max_level_warn-devel
Summary: %{summary} Summary: %{summary}
@ -142,11 +142,11 @@ BuildArch: noarch
%description -n %{name}+max_level_warn-devel %{_description} %description -n %{name}+max_level_warn-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "max_level_warn" feature of "%{crate}" crate. use the "max_level_warn" feature of the "%{crate}" crate.
%files -n %{name}+max_level_warn-devel %files -n %{name}+max_level_warn-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+nested-values-devel %package -n %{name}+nested-values-devel
Summary: %{summary} Summary: %{summary}
@ -154,11 +154,11 @@ BuildArch: noarch
%description -n %{name}+nested-values-devel %{_description} %description -n %{name}+nested-values-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "nested-values" feature of "%{crate}" crate. use the "nested-values" feature of the "%{crate}" crate.
%files -n %{name}+nested-values-devel %files -n %{name}+nested-values-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+nothreads-devel %package -n %{name}+nothreads-devel
Summary: %{summary} Summary: %{summary}
@ -166,11 +166,11 @@ BuildArch: noarch
%description -n %{name}+nothreads-devel %{_description} %description -n %{name}+nothreads-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "nothreads" feature of "%{crate}" crate. use the "nothreads" feature of the "%{crate}" crate.
%files -n %{name}+nothreads-devel %files -n %{name}+nothreads-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+release_max_level_debug-devel %package -n %{name}+release_max_level_debug-devel
Summary: %{summary} Summary: %{summary}
@ -178,11 +178,11 @@ BuildArch: noarch
%description -n %{name}+release_max_level_debug-devel %{_description} %description -n %{name}+release_max_level_debug-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "release_max_level_debug" feature of "%{crate}" crate. use the "release_max_level_debug" feature of the "%{crate}" crate.
%files -n %{name}+release_max_level_debug-devel %files -n %{name}+release_max_level_debug-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+release_max_level_error-devel %package -n %{name}+release_max_level_error-devel
Summary: %{summary} Summary: %{summary}
@ -190,11 +190,11 @@ BuildArch: noarch
%description -n %{name}+release_max_level_error-devel %{_description} %description -n %{name}+release_max_level_error-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "release_max_level_error" feature of "%{crate}" crate. use the "release_max_level_error" feature of the "%{crate}" crate.
%files -n %{name}+release_max_level_error-devel %files -n %{name}+release_max_level_error-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+release_max_level_info-devel %package -n %{name}+release_max_level_info-devel
Summary: %{summary} Summary: %{summary}
@ -202,11 +202,11 @@ BuildArch: noarch
%description -n %{name}+release_max_level_info-devel %{_description} %description -n %{name}+release_max_level_info-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "release_max_level_info" feature of "%{crate}" crate. use the "release_max_level_info" feature of the "%{crate}" crate.
%files -n %{name}+release_max_level_info-devel %files -n %{name}+release_max_level_info-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+release_max_level_off-devel %package -n %{name}+release_max_level_off-devel
Summary: %{summary} Summary: %{summary}
@ -214,11 +214,11 @@ BuildArch: noarch
%description -n %{name}+release_max_level_off-devel %{_description} %description -n %{name}+release_max_level_off-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "release_max_level_off" feature of "%{crate}" crate. use the "release_max_level_off" feature of the "%{crate}" crate.
%files -n %{name}+release_max_level_off-devel %files -n %{name}+release_max_level_off-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+release_max_level_trace-devel %package -n %{name}+release_max_level_trace-devel
Summary: %{summary} Summary: %{summary}
@ -226,11 +226,11 @@ BuildArch: noarch
%description -n %{name}+release_max_level_trace-devel %{_description} %description -n %{name}+release_max_level_trace-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "release_max_level_trace" feature of "%{crate}" crate. use the "release_max_level_trace" feature of the "%{crate}" crate.
%files -n %{name}+release_max_level_trace-devel %files -n %{name}+release_max_level_trace-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+release_max_level_warn-devel %package -n %{name}+release_max_level_warn-devel
Summary: %{summary} Summary: %{summary}
@ -238,11 +238,11 @@ BuildArch: noarch
%description -n %{name}+release_max_level_warn-devel %{_description} %description -n %{name}+release_max_level_warn-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "release_max_level_warn" feature of "%{crate}" crate. use the "release_max_level_warn" feature of the "%{crate}" crate.
%files -n %{name}+release_max_level_warn-devel %files -n %{name}+release_max_level_warn-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+std-devel %package -n %{name}+std-devel
Summary: %{summary} Summary: %{summary}
@ -250,11 +250,11 @@ BuildArch: noarch
%description -n %{name}+std-devel %{_description} %description -n %{name}+std-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "std" feature of "%{crate}" crate. use the "std" feature of the "%{crate}" crate.
%files -n %{name}+std-devel %files -n %{name}+std-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
@ -271,16 +271,13 @@ which use "std" feature of "%{crate}" crate.
%if %{with check} %if %{with check}
%check %check
%ifnarch aarch64
%cargo_test %cargo_test
%else
# rustdoc fails to compile some doctests on aarch64
# https://bugzilla.redhat.com/show_bug.cgi?id=1902663
%cargo_test -- --lib
%endif
%endif %endif
%changelog %changelog
* Thu Dec 15 2022 Fabio Valentini <decathorpe@gmail.com> - 2.7.0-7
- Disable LTO to work around LLVM crashes on ppc64le.
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-6 * Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

@ -0,0 +1,20 @@
--- slog-2.7.0/Cargo.toml 2020-11-30T06:26:08+00:00
+++ slog-2.7.0/Cargo.toml 2022-12-15T13:05:59.148285+00:00
@@ -26,17 +26,6 @@
repository = "https://github.com/slog-rs/slog"
[package.metadata.docs.rs]
features = ["std", "nested-values", "dynamic-keys"]
-[profile.bench]
-opt-level = 3
-lto = true
-debug = false
-debug-assertions = false
-
-[profile.release]
-opt-level = 3
-lto = true
-debug = false
-debug-assertions = false
[[example]]
name = "singlethread"
Loading…
Cancel
Save