The package rpms/rust-backtrace.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-backtrace.git/commit/?id=689....
Change:
-%ifarch %{ix86} ppc64le aarch64 s390x
Thanks.
Full change:
============
commit 68934b7e90d35c117420eca14563ee34d3aaeee6
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Tue Aug 9 14:34:59 2022 +0200
Update to version 0.3.66; Fixes RHBZ#2076300
diff --git a/.gitignore b/.gitignore
index d49e300..a9e1a78 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,3 +24,4 @@
/backtrace-0.3.59.crate
/backtrace-0.3.61.crate
/backtrace-0.3.64.crate
+/backtrace-0.3.66.crate
diff --git a/backtrace-fix-metadata-auto.diff b/backtrace-fix-metadata-auto.diff
new file mode 100644
index 0000000..8341996
--- /dev/null
+++ b/backtrace-fix-metadata-auto.diff
@@ -0,0 +1,21 @@
+--- backtrace-0.3.66/Cargo.toml 1970-01-01T00:00:01+00:00
++++ backtrace-0.3.66/Cargo.toml 1970-01-01T00:00:01+00:00
+@@ -121,18 +121,5 @@
+ std = []
+ unix-backtrace = []
+ verify-winapi = [
+- "winapi/dbghelp",
+- "winapi/handleapi",
+- "winapi/libloaderapi",
+- "winapi/memoryapi",
+- "winapi/minwindef",
+- "winapi/processthreadsapi",
+- "winapi/synchapi",
+- "winapi/tlhelp32",
+- "winapi/winbase",
+- "winapi/winnt",
+ ]
+
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3.9"
+-optional = true
diff --git a/backtrace-fix-metadata.diff b/backtrace-fix-metadata.diff
index 504279f..4981696 100644
--- a/backtrace-fix-metadata.diff
+++ b/backtrace-fix-metadata.diff
@@ -1,6 +1,14 @@
---- backtrace-0.3.64/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ backtrace-0.3.64/Cargo.toml 2022-02-03T14:55:24.935091+00:00
-@@ -42,11 +42,6 @@
+--- backtrace-0.3.66/Cargo.toml 1970-01-01T00:00:01+00:00
++++ backtrace-0.3.66/Cargo.toml 2022-08-09T09:33:39.983784+00:00
+@@ -25,6 +25,7 @@
+ readme = "README.md"
+ license = "MIT/Apache-2.0"
+ repository = "https://github.com/rust-lang/backtrace-rs"
++exclude = ["/ci/"]
+
+ [[example]]
+ name = "backtrace"
+@@ -44,11 +45,6 @@
[[test]]
name = "smoke"
@@ -12,23 +20,3 @@
required-features = ["std"]
edition = "2018"
-@@ -96,19 +91,9 @@
- version = "1.0.67"
-
- [features]
--coresymbolication = []
--dbghelp = []
- default = ["std"]
--dladdr = []
- gimli-symbolize = []
--kernel32 = []
- libbacktrace = []
--libunwind = []
- serialize-rustc = ["rustc-serialize"]
- serialize-serde = ["serde"]
- std = []
--unix-backtrace = []
--verify-winapi = ["winapi/dbghelp", "winapi/handleapi",
"winapi/libloaderapi", "winapi/memoryapi",
"winapi/minwindef", "winapi/processthreadsapi",
"winapi/synchapi", "winapi/tlhelp32", "winapi/winbase",
"winapi/winnt"]
--[target."cfg(windows)".dependencies.winapi]
--version = "0.3.9"
--optional = true
diff --git a/rust-backtrace.spec b/rust-backtrace.spec
index e92677d..8a4c24a 100644
--- a/rust-backtrace.spec
+++ b/rust-backtrace.spec
@@ -1,26 +1,28 @@
-# Generated by rust2rpm 20
+# Generated by rust2rpm 22
%bcond_without check
%global debug_package %{nil}
%global crate backtrace
-Name: rust-%{crate}
-Version: 0.3.64
+Name: rust-backtrace
+Version: 0.3.66
Release: %autorelease
Summary: Library to acquire a stack trace (backtrace) at runtime in a Rust
program
# Upstream license specification: MIT/Apache-2.0
-License: MIT or ASL 2.0
+License: MIT OR Apache-2.0
URL:
https://crates.io/crates/backtrace
Source: %{crates_source}
-# Initial patched metadata
-# * Drop windows-specific dependencies and features
-# * Drop deprecated/internal features
-Patch0: backtrace-fix-metadata.diff
+# Automatically generated patch to strip foreign dependencies
+Patch: backtrace-fix-metadata-auto.diff
+# Manually created patch for downstream crate metadata changes
+# * drop accuracy test (requires crates to be built in dylib mode)
+# * exclude files for upstream CI
+Patch: backtrace-fix-metadata.diff
ExclusiveArch: %{rust_arches}
-BuildRequires: rust-packaging
+BuildRequires: rust-packaging >= 21
%global _description %{expand:
Library to acquire a stack trace (backtrace) at runtime in a Rust program.}
@@ -37,10 +39,10 @@ This package contains library source intended for building other
packages which
use the "%{crate}" crate.
%files devel
-%license LICENSE-APACHE LICENSE-MIT
-%doc README.md
-%{cargo_registry}/%{crate}-%{version_no_tilde}/
-%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/ci/
+%license %{crate_instdir}/LICENSE-APACHE
+%license %{crate_instdir}/LICENSE-MIT
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
@@ -52,7 +54,7 @@ This package contains library source intended for building other
packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cpp_demangle-devel
Summary: %{summary}
@@ -64,7 +66,7 @@ This package contains library source intended for building other
packages which
use the "cpp_demangle" feature of the "%{crate}" crate.
%files -n %{name}+cpp_demangle-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+gimli-symbolize-devel
Summary: %{summary}
@@ -76,7 +78,7 @@ This package contains library source intended for building other
packages which
use the "gimli-symbolize" feature of the "%{crate}" crate.
%files -n %{name}+gimli-symbolize-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+libbacktrace-devel
Summary: %{summary}
@@ -88,7 +90,7 @@ This package contains library source intended for building other
packages which
use the "libbacktrace" feature of the "%{crate}" crate.
%files -n %{name}+libbacktrace-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rustc-serialize-devel
Summary: %{summary}
@@ -100,7 +102,7 @@ This package contains library source intended for building other
packages which
use the "rustc-serialize" feature of the "%{crate}" crate.
%files -n %{name}+rustc-serialize-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serde-devel
Summary: %{summary}
@@ -112,7 +114,7 @@ This package contains library source intended for building other
packages which
use the "serde" feature of the "%{crate}" crate.
%files -n %{name}+serde-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serialize-rustc-devel
Summary: %{summary}
@@ -124,7 +126,7 @@ This package contains library source intended for building other
packages which
use the "serialize-rustc" feature of the "%{crate}" crate.
%files -n %{name}+serialize-rustc-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serialize-serde-devel
Summary: %{summary}
@@ -136,7 +138,7 @@ This package contains library source intended for building other
packages which
use the "serialize-serde" feature of the "%{crate}" crate.
%files -n %{name}+serialize-serde-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+std-devel
Summary: %{summary}
@@ -148,7 +150,7 @@ This package contains library source intended for building other
packages which
use the "std" feature of the "%{crate}" crate.
%files -n %{name}+std-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
@@ -168,12 +170,9 @@ rm -r tests/accuracy/
%if %{with check}
%check
#
https://github.com/rust-lang/backtrace-rs/issues/204
-%ifarch %{ix86} ppc64le aarch64 s390x
- %cargo_test || :
-%else
- # some tests can't find symbols in release mode
- %cargo_test -- -- --skip smoke_test_frames
-%endif
+# * smoke_test_frames: fails on all architectures
+# * backtrace_new_unresolved_should_start_with_call_site_trace: fails on aarch64,
ppc64le, s390x
+%cargo_test -- -- --skip smoke_test_frames --skip
backtrace_new_unresolved_should_start_with_call_site_trace
%endif
%changelog
diff --git a/rust2rpm.conf b/rust2rpm.conf
new file mode 100644
index 0000000..aede82b
--- /dev/null
+++ b/rust2rpm.conf
@@ -0,0 +1,9 @@
+[DEFAULT]
+unwanted-features =
+ coresymbolication
+ dbghelp
+ dladdr
+ kernel32
+ libunwind
+ unix-backtrace
+ verify-winapi
diff --git a/sources b/sources
index e981e91..5205a85 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (backtrace-0.3.64.crate) =
37435cca0587c1c7b511536478ff448914d423c9cf6152ec8bb884c19d1c2466c377b270ebce2028960b4a380f3152fbfeb940de943ef4071ed271c7cd576f2e
+SHA512 (backtrace-0.3.66.crate) =
7370ce52d0b949a6faa05f91225f60928e42e52c00ed2ba4054ef7efd41cd65c77b0e67c8afb9d5bf834eb4b1451b642720521e17d1954be810e3c5fc70bf646
commit bce065ef876ae38a23f62087bd164e56d7e88f53
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sat Jul 23 02:52:42 2022 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>