Mailinglist Archive: opensuse-packaging (129 mails)

< Previous Next >
[opensuse-packaging] golang: file paths in go-spew
  • From: "Matwey V. Kornilov" <matwey.kornilov@xxxxxxxxx>
  • Date: Thu, 21 Jan 2016 15:36:58 +0300
  • Message-id: <CAJs94Eb6EihE2QtRbzYZ=Km3paaNShFkB2F7+mhh8=VbrwTw6A@mail.gmail.com>
Hi,

After recent golang-packaing update there appeared an issue.

go-spew
(https://build.opensuse.org/package/show/devel:languages:go/golang-github-davecgh-go-spew)
produces a package which contains
/usr/lib64/go/contrib/pkg/linux_amd64/github.com/davecgh/go-spew/spew.a

At the same time, Sirupsen-logrus for instance
(https://build.opensuse.org/package/show/devel:languages:go/golang-github-Sirupsen-logrus)
stops building due to the failure:

[ 224s] /usr/lib64/go/pkg/tool/linux_amd64/link -o
$WORK/github.com/Sirupsen/logrus/hooks/syslog/_test/syslog.test -L
$WORK/github.com/Sirupsen/logrus/hooks/syslog/_test -L $WORK -L
/home/abuild/rpmbuild/BUILD/go/pkg/linux_amd64 -w -extld=gcc
-buildmode=exe $WORK/github.com/Sirupsen/logrus/hooks/syslog/_test/main.a
[ 226s] # testmain
[ 226s] /usr/lib64/go/pkg/tool/linux_amd64/link: cannot open file
/usr/lib64/go/pkg/linux_amd64/github.com/davecgh/go-spew/spew.a: open
/usr/lib64/go/pkg/linux_amd64/github.com/davecgh/go-spew/spew.a: no
such file or directory

For some unknown reason, golang linker looks for the spew.a in the
wrong place (note there is no contrib in path).
What is wrong here?

--
With best regards,
Matwey V. Kornilov
http://blog.matwey.name
xmpp://0x2207@xxxxxxxxx
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups