Bug 1437468 - convert to modern ExclusiveArch
Summary: convert to modern ExclusiveArch
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: golang-github-influxdb-influxdb
Version: rawhide
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fridolín Pokorný
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2017-03-30 11:39 UTC by Dan Horák
Modified: 2017-04-10 15:59 UTC (History)
5 users (show)

Fixed In Version: golang-github-influxdb-influxdb-0.9.5.1-0.4.git9eab563.fc27 golang-github-influxdb-influxdb-0.9.5.1-0.4.git9eab563.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-10 15:59:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dan Horák 2017-03-30 11:39:05 UTC
Currently golang-github-influxdb-influxdb contains a hard-coded list of arches, causing s390x to be excluded. But golang-github-influxdb-influxdb is a BR for docker-distribution.

proposed fix:

diff --git a/golang-github-influxdb-influxdb.spec b/golang-github-influxdb-influxdb.spec
index 10dcfca..05381f7 100644
--- a/golang-github-influxdb-influxdb.spec
+++ b/golang-github-influxdb-influxdb.spec
@@ -38,7 +38,7 @@ URL:            https://%{provider_prefix}
 Source0:        https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
 
 # e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch:  %{ix86} x86_64 %{arm} aarch64 ppc64le
+ExclusiveArch:  %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
 # If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
 BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
 

scratch builds with fix applied are https://koji.fedoraproject.org/koji/taskinfo?taskID=18679965 and https://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2536589


Version-Release number of selected component (if applicable):
golang-github-influxdb-influxdb-0.9.5.1-0.3.git9eab563.fc26

Comment 1 Jan Chaloupka 2017-04-03 11:12:27 UTC
Built in rawhide

Comment 2 Fedora Update System 2017-04-03 11:35:55 UTC
golang-github-influxdb-influxdb-0.9.5.1-0.4.git9eab563.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-ac865a843a

Comment 3 Fedora Update System 2017-04-04 01:53:14 UTC
golang-github-influxdb-influxdb-0.9.5.1-0.4.git9eab563.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-ac865a843a

Comment 4 Fedora Update System 2017-04-10 15:59:55 UTC
golang-github-influxdb-influxdb-0.9.5.1-0.4.git9eab563.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.