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
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):
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
etcdmain/etcd.go:562: undefined: os.LookupEnv
Raise correct error with need higher golang.
This is build-time only dependency. No blocker for AH 7.2.6. Will only update the spec file.
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.