The package rpms/scancode-toolkit.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/scancode-toolkit.git/commit/?id=5d9f....
Change: +ExcludeArch: %{ix86}
Thanks.
Full change: ============
commit 5d9f9132a2479688f5afba0077d2158d6a4d8870 Author: Maxwell G maxwell@gtmx.me Date: Mon Mar 24 15:54:07 2025 -0500
Properly handle license cache
diff --git a/scancode-toolkit.spec b/scancode-toolkit.spec index 0e84edc..3268bf1 100644 --- a/scancode-toolkit.spec +++ b/scancode-toolkit.spec @@ -1,3 +1,8 @@ +# This is built as an arched package, as its includes a cache as a Python +# pickle file which is apparently not an architecture-independent format (fails +# on s390x). Still, this needs does not produce any debug data. +%global debug_package %{nil} + Name: scancode-toolkit Version: 32.2.0 Release: %autorelease @@ -13,7 +18,9 @@ Source: %vcs/archive/v%{version}/%{name}-%{version}.tar.gz # which I don't want to package. Patch: 0001-Revert-Added-docs-server-script-dark-mode-copybutton.patch
-BuildArch: noarch +# scancode has dependencies that are not compatible with ix86 +ExcludeArch: %{ix86} + BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(sphinx) @@ -44,6 +51,16 @@ sed -i 's|(fallback_version = ")[^"]*|\1%{version}|' pyproject.toml %pyproject_buildrequires -t
%build +# NOTE: Upstream's wheels include the license cache as a Python pickle, so +# let's build that here. Without this file, scancode tries to write the cache +# to site-packages itself which it doesn't have permissions for. +# TODO: Upstream's approach to caching is problematic. +# It treats pickles as a portable data format and tries to write a new cache to +# site-packages if the cache is invalid or does not exist. +# See https://github.com/aboutcode-org/scancode-toolkit/issues/3497. +# This should be fixed to prefer a user-writable cache directory. +PYTHONPATH="$(pwd)/src" %{python3} -m licensedcode.reindex +test -f src/licensedcode/data/cache/license_index/index_cache %pyproject_wheel
# generate html docs
arch-excludes@lists.fedoraproject.org