[Rpm-maint] [rpm-software-management/rpm] %patchlist behavior is strange if put too high in a spec (#752)

Igor Gnatenko notifications at github.com
Tue Jun 18 01:50:13 UTC 2019


```
[…]
# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            https://crates.io/crates/prometheus
Source:         %{crates_source}
%patchlist
# Initial patched metadata
# * Update hyper to 0.12, https://github.com/pingcap/rust-prometheus/commit/05e15b526f730b7ee650b9b6e846cadc0ad99ed6
prometheus-fix-metadata.diff
# Fix tests in release mode, https://github.com/pingcap/rust-prometheus/commit/356220985d3c0f87b545b3f9f8997833e1e9ada1
0001-counter-fix-tests-in-release-mode-246.patch
# Finish migration to new hyper
0002-Update-hyper-example-to-work-with-hyper-0.12-249.patch

ExclusiveArch:  %{rust_arches}
%if %{__cargo_skip_build}
BuildArch:      noarch
%endif

BuildRequires:  rust-packaging
[…]
```

When running rpmbuild, I get:

```
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7sLLly
+ umask 022
+ cd /home/brain/rpmbuild/BUILD
+ cd /home/brain/rpmbuild/BUILD
+ rm -rf prometheus-0.6.1
+ /usr/bin/gzip -dc /var/tmp/fedora/rust-prometheus/prometheus-0.6.1.crate
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd prometheus-0.6.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /var/tmp/fedora/rust-prometheus/prometheus-fix-metadata.diff
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /var/tmp/fedora/rust-prometheus/0001-counter-fix-tests-in-release-mode-246.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /var/tmp/fedora/rust-prometheus/0002-Update-hyper-example-to-work-with-hyper-0.12-249.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ echo 'Cannot read x86_64'
+ exit 1
Cannot read x86_64
error: Bad exit status from /var/tmp/rpm-tmp.7sLLly (%prep)
```

This x86_64 is definitely coming from ExclusiveArch.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/752
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190617/04ee1f47/attachment.html>


More information about the Rpm-maint mailing list