Bug 1437468

Summary: convert to modern ExclusiveArch
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: golang-github-influxdb-influxdbAssignee: Fridolín Pokorný <fpokorny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fpokorny, golang-updates, hannsj_uhl, jchaloup, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-10 15:59:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    

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.