[opensuse-packaging] golang: file paths in go-spew
Hi, After recent golang-packaing update there appeared an issue. go-spew (https://build.opensuse.org/package/show/devel:languages:go/golang-github-dav...) 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-Sir...) 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@jabber.ru -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi, Matwey,
On Thu, Jan 21, 2016 at 8:36 PM, Matwey V. Kornilov
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?
Glad to see you here in the list. this is because: the test needs spew.a present in the build machine. but you just wrote: BuildRequires: golang-packaging BuildRequires: golang(github.com/stretchr/testify/assert) the command triggerd by %gotest is: GOPATH=/home/abuild/BUILD/go:/usr/lib64/go/contrib go test -x $IMPORTPATH while spew.a doesn't exist in that path (although that path is invisible to you beccause the call triggers from ruby), go will fallback to its standard path, resulting what you see. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
I've found, package stretchr-testify doesn't require spew (but It did):
rpm -q --requires -p golang-github-stretchr-testify-0.0.0+git20151207.e3a8ff8-1.2.x86_64.rpm предупреждение: golang-github-stretchr-testify-0.0.0+git20151207.e3a8ff8-1.2.x86_64.rpm: Заголовок V3 DSA/SHA1 Signature, key ID 307d7bf9: NOKEY rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadIsLzma) <= 4.4.6-1
At the same time /usr/lib64/go/contrib/pkg/linux_amd64/github.com/stretchr/testify/assert.a imports go-spew (just look inside) 2016-01-21 16:13 GMT+03:00 Marguerite Su :
Hi, Matwey,
On Thu, Jan 21, 2016 at 8:36 PM, Matwey V. Kornilov
wrote: 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?
Glad to see you here in the list.
this is because:
the test needs spew.a present in the build machine.
but you just wrote:
BuildRequires: golang-packaging BuildRequires: golang(github.com/stretchr/testify/assert)
the command triggerd by %gotest is:
GOPATH=/home/abuild/BUILD/go:/usr/lib64/go/contrib go test -x $IMPORTPATH
while spew.a doesn't exist in that path (although that path is invisible to you beccause the call triggers from ruby), go will fallback to its standard path, resulting what you see.
Marguerite
-- With best regards, Matwey V. Kornilov http://blog.matwey.name xmpp://0x2207@jabber.ru -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, Jan 21, 2016 at 9:26 PM, Matwey V. Kornilov
I've found, package stretchr-testify doesn't require spew (but It did):
Well then I have to have a closer look at this issue. The go.req script may failed on that. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, Jan 21, 2016 at 10:58 PM, Marguerite Su wrote:
The go.req script may failed on that.
Fixed Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Marguerite Su
-
Matwey V. Kornilov