Bug 1097663 - libguestfs-1.27.9-1.fc21 FTBFS: go install runtime/cgo: open /usr/lib/golang/pkg/linux_amd64/runtime/cgo.a: permission denied
Summary: libguestfs-1.27.9-1.fc21 FTBFS: go install runtime/cgo: open /usr/lib/golang/...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: golang
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Goode
QA Contact: Fedora Extras Quality Assurance
URL: http://koji.fedoraproject.org/koji/ta...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-14 09:28 UTC by Petr Pisar
Modified: 2014-05-23 14:22 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-23 14:22:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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