Bug 1097663

Summary: libguestfs-1.27.9-1.fc21 FTBFS: go install runtime/cgo: open /usr/lib/golang/pkg/linux_amd64/runtime/cgo.a: permission denied
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: golangAssignee: Adam Goode <adam>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: adam, admiller, golang-updates, lemenkov, lsm5, mbooth, ptoscano, renich, rjones, s, vbatts, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://koji.fedoraproject.org/koji/taskinfo?taskID=6848060
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-23 14:22:02 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:

Description Petr Pisar 2014-05-14 09:28:56 UTC
libguestfs-1.27.9-1.fc21 fails to build in F21:

Making all in golang
make[2]: Entering directory `/builddir/build/BUILD/libguestfs-1.27.9/golang'
../run go install libguestfs.org/guestfs
go install runtime/cgo: open /usr/lib/golang/pkg/linux_amd64/runtime/cgo.a: permission denied
make[2]: *** [pkg/linux_amd64/libguestfs.org/guestfs.a] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/libguestfs-1.27.9/golang'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/libguestfs-1.27.9'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.BhcxGp (%build)

Comment 1 Richard W.M. Jones 2014-05-14 09:54:42 UTC
It's hard to keep up with the latest Go packaging guidelines.  However
this looks like it's a bug in golang on Fedora.  Is there any other
reason why `go install' would fail?

Comment 2 Adam Goode 2014-05-14 14:13:04 UTC
Redirecting to Vincent who does 99% of the golang stuff these days.

Comment 3 Richard W.M. Jones 2014-05-16 09:38:13 UTC
I have disabled the golang subpackage in libguestfs for now.

Comment 4 Petr Pisar 2014-05-16 13:00:36 UTC
(In reply to Richard W.M. Jones from comment #3)
> I have disabled the golang subpackage in libguestfs for now.

"%ifarch %{nill}" is not a valid expression, the spec file is refused by RPM tools:

error: /home/petr/fedora/libguestfs/libguestfs.spec:107: Argument expected for %ifarch

Comment 5 Richard W.M. Jones 2014-05-16 13:10:55 UTC
The spec file as it exists right now won't build anyway.  I'm
in the middle of fixing virt-p2v.

Comment 6 Richard W.M. Jones 2014-05-16 13:29:01 UTC
There is now a build running:
http://koji.fedoraproject.org/koji/taskinfo?taskID=6855930

Comment 7 Richard W.M. Jones 2014-05-23 14:22:02 UTC
I'm happy to report that the golang package in Rawhide works now.
golang-1.2.2-7.fc21.x86_64