<pre><code>[…]
# 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
[…]
</code></pre>
<p>When running rpmbuild, I get:</p>
<pre><code>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)
</code></pre>
<p>This x86_64 is definitely coming from ExclusiveArch.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/752?email_source=notifications&email_token=ADLPZU7KNUWP3PI44YDQRETP3A5NLA5CNFSM4HY3RZ42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2AUM3Q">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYJJUIUYBQQQDFQCBDP3A5NLANCNFSM4HY3RZ4Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUZZV3T6XDDMPSAM5ZDP3A5NLA5CNFSM4HY3RZ42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2AUM3Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/752?email_source=notifications\u0026email_token=ADLPZU7KNUWP3PI44YDQRETP3A5NLA5CNFSM4HY3RZ42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2AUM3Q",
"url": "https://github.com/rpm-software-management/rpm/issues/752?email_source=notifications\u0026email_token=ADLPZU7KNUWP3PI44YDQRETP3A5NLA5CNFSM4HY3RZ42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2AUM3Q",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>