Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600466 - net-p2p/syncthing-0.14.11[tools] - build failed: cmd/strelaysrv/main.go:132: transport.DialContext undefined (type *http.Transport has no field or method DialContext)
Summary: net-p2p/syncthing-0.14.11[tools] - build failed: cmd/strelaysrv/main.go:132: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Louis Sautier (sbraz)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-22 11:27 UTC by Alexey Korepanov
Modified: 2016-11-26 13:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,8.89 KB, text/x-log)
2016-11-22 11:27 UTC, Alexey Korepanov
Details
emerge info (emerge.info,4.96 KB, text/plain)
2016-11-22 11:27 UTC, Alexey Korepanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Korepanov 2016-11-22 11:27:07 UTC
Created attachment 454028 [details]
build.log

Hi, cannot build syncthing[tools] on arm.

# github.com/syncthing/syncthing/cmd/strelaysrv
cmd/strelaysrv/main.go:132: transport.DialContext undefined (type *http.Transport has no field or method DialContext)
cmd/strelaysrv/main.go:135: (&net.Dialer literal).DialContext undefined (type *net.Dialer has no field or method DialContext)
Comment 1 Alexey Korepanov 2016-11-22 11:27:44 UTC
Created attachment 454030 [details]
emerge info
Comment 2 Alexey Korepanov 2016-11-22 15:09:29 UTC
I quick check shows that syncthing builds OK with dev-lang/go-1.7.3 (which is yet unstable on arm).
Comment 3 Louis Sautier (sbraz) gentoo-dev 2016-11-22 18:37:22 UTC
I think you should report this upstream. I'd do it but I don't have an arm system to test with any more.
They're supposed to support Go 1.6 so they will probably fix this. We'll have to add a check to make sure Go 1.7 is present.
Comment 4 Alexey Korepanov 2016-11-22 18:53:03 UTC
ok, reported:
https://github.com/syncthing/syncthing/issues/3753
Comment 5 Alexey Korepanov 2016-11-22 19:16:14 UTC
Also, this is not arm specific. Could reproduce on amd64.
Comment 6 Louis Sautier (sbraz) gentoo-dev 2016-11-22 23:43:04 UTC
OK, I read the reply from the developer. We'll just condition the need for Go 1.7 to USE=tools.
Do you know if other 0.14.* releases are affected too? I'll try to compile those with Go 1.6.
Comment 7 Alexey Korepanov 2016-11-23 02:10:08 UTC
If I remember correctly, syncthing 0.14.9 compiled fine with go 1.6. Certainly I did not test 0.14.10.
Comment 8 Louis Sautier (sbraz) gentoo-dev 2016-11-26 13:54:55 UTC
Fixed in commit b184cea7db5565246721c6cd5feba6d072b1844b https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b184cea7db5565246721c6cd5feba6d072b1844b
Author: Louis Sautier <sautier.louis@gmail.com>
Date:   Tue Nov 22 14:57:41 2016 +0100

    net-p2p/syncthing: bump to 0.14.12, fix DEPEND

    Gentoo-Bug: 600466

    Package-Manager: portage-2.3.2
    Closes: https://github.com/gentoo/gentoo/pull/2913