Bug 1357774

Summary: Need update golang require in etcd-2.3.7-2.el7.src.rpm
Product: Red Hat Enterprise Linux 7 Reporter: Joy Pu <ypu>
Component: etcdAssignee: Jan Chaloupka <jchaloup>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2Keywords: Extras
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: etcd-2.3.7-4.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-15 08:30:25 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:

Description Joy Pu 2016-07-19 06:41:42 UTC
Description of problem:

Currently the build require is still >= 1.2.1-3, but the code include some function which is introduced since golang 1.5. If not update it, it will report compile error for it:

898-/usr/lib/golang/pkg/tool/linux_amd64/6g -o $WORK/github.com/coreos/etcd/etcdmain.a -trimpath $WORK -p github.com/coreos/etcd/etcdmain -complete -installsuffix cgo -D _/usr/src/redhat/BUILD/etcd-2.3.7/src/github.com/coreos/etcd/etcdmain -I $WORK -I /usr/src/redhat/BUILD/etcd-2.3.7/pkg/linux_amd64_cgo -pack ./config.go ./const_unix.go ./doc.go ./etcd.go ./help.go ./http.go
899-# github.com/coreos/etcd/etcdmain
900-src/github.com/coreos/etcd/etcdmain/etcd.go:562: undefined: os.LookupEnv
901:error: Bad exit status from /var/tmp/rpm-tmp.t721Nw (%build)

And the buildrequires line from etcd SPECS file:
BuildRequires:  golang >= 1.2.1-3



Version-Release number of selected component (if applicable):
 etcd-2.3.7-2.el7

How reproducible:
100%


Steps to Reproduce:
1. Instaill  etcd-2.3.7-2.el7.src.rpm
2. Try to build etcd with golang 1.4.2 which is default installed in rhel7

Actual results:
Raise error:
etcdmain/etcd.go:562: undefined: os.LookupEnv

Expected results:
Raise correct error with need higher golang.


Additional info:

Comment 1 Jan Chaloupka 2016-07-19 07:08:10 UTC
Thanks Joy.

This is build-time only dependency. No blocker for AH 7.2.6. Will only update the spec file.

Comment 8 errata-xmlrpc 2016-09-15 08:30:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-1828.html