Mailinglist Archive: opensuse-packaging (129 mails)

< Previous Next >
[opensuse-packaging] Re: golang: file paths in go-spew
I've found, package stretchr-testify doesn't require spew (but It did):

rpm -q --requires -p
Заголовок 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


imports go-spew (just look inside)

2016-01-21 16:13 GMT+03:00 Marguerite Su <i@xxxxxxxxxxxxx>:
Hi, Matwey,

On Thu, Jan 21, 2016 at 8:36 PM, Matwey V. Kornilov
<matwey.kornilov@xxxxxxxxx> 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(

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.


With best regards,
Matwey V. Kornilov
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups