Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916008 - net-p2p/syncthing-1.24.0 - should BDEPEND >=dev-lang/go-1.20.0
Summary: net-p2p/syncthing-1.24.0 - should BDEPEND >=dev-lang/go-1.20.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-19 13:19 UTC by Martin Mokrejš
Modified: 2023-10-19 13:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2023-10-19 13:19:27 UTC
/usr/lib/go/pkg/tool/linux_amd64/compile -o $WORK/b271/_pkg_.a -trimpath "/var/tmp/portage/net-p2p/syncthing-1.24.0/work/syncthing/lib/osutil=>github.com/syncthing/syncthing/lib/osutil;$WORK/b271=>" -p github.com/syncthing/syncthing/lib/osutil -complete -installsuffix shared -buildid IbNwCvQ7sgIz3Ur9iv2Z/IbNwCvQ7sgIz3Ur9iv2Z -goversion go1.19.2 -shared -c=4 -nolocalimports -importcfg $WORK/b271/importcfg -pack ./lib/osutil/atomic.go ./lib/osutil/filenames_unix.go ./lib/osutil/hidden_unix.go ./lib/osutil/lowprio_linux.go ./lib/osutil/net.go ./lib/osutil/osutil.go ./lib/osutil/ping.go ./lib/osutil/replacingwriter.go ./lib/osutil/rlimit_unix.go ./lib/osutil/tempfile.go ./lib/osutil/traversessymlink.go
# github.com/syncthing/syncthing/lib/osutil
lib/osutil/net.go:21:26: undefined: net.FlagRunning
note: module requires Go 1.20
/usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b371/_pkg_.a # internal
cp $WORK/b371/_pkg_.a /var/tmp/portage/net-p2p/syncthing-1.24.0/temp/go-build/1c/1c2cbfe0226214344d1c7a788b1caba3845843764a737ca84f1b5790b0b93bae-d # internal
github.com/syncthing/syncthing/cmd/syncthing/cmdutil
mkdir -p $WORK/b370/
cat >$WORK/b370/importcfg << 'EOF' # internal
# import config
packagefile errors=$WORK/b002/_pkg_.a
packagefile github.com/syncthing/syncthing/lib/locations=$WORK/b371/_pkg_.a
EOF
/usr/lib/go/pkg/tool/linux_amd64/compile -o $WORK/b370/_pkg_.a -trimpath "/var/tmp/portage/net-p2p/syncthing-1.24.0/work/syncthing/cmd/syncthing/cmdutil=>github.com/syncthing/syncthing/cmd/syncthing/cmdutil;$WORK/b370=>" -p github.com/syncthing/syncthing/cmd/syncthing/cmdutil -complete -installsuffix shared -buildid 73N3v1xuVm2PK0627BEL/73N3v1xuVm2PK0627BEL -goversion go1.19.2 -shared -c=4 -nolocalimports -importcfg $WORK/b370/importcfg -pack ./cmd/syncthing/cmdutil/options_common.go ./cmd/syncthing/cmdutil/options_others.go ./cmd/syncthing/cmdutil/util.go
/usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b370/_pkg_.a # internal
cp $WORK/b370/_pkg_.a /var/tmp/portage/net-p2p/syncthing-1.24.0/temp/go-build/52/52982f371494e541b007196f8b7e05086198dd75eefb19ecd5aa098c1cc528b3-d # internal
/usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b339/exe/a.out # internal
cp $WORK/b339/exe/a.out bin/stdiscosrv
rm -r $WORK/b339/
exit status 2
exit status 1
 * ERROR: net-p2p/syncthing-1.24.0::gentoo failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 1860:  Called die
 * The specific snippet of code:
 *       GOARCH= go run build.go -version "v${PV}" -no-upgrade -build-out=bin/ ${GOARCH:+-goarch="${GOARCH}"} build $(usex tools "all" "") || die "build failed"
 * 
 * If you need support, post the output of `emerge --info '=net-p2p/syncthing-1.24.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-p2p/syncthing-1.24.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-p2p/syncthing-1.24.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-p2p/syncthing-1.24.0/temp/environment'.
 * Working directory: '/var/tmp/portage/net-p2p/syncthing-1.24.0/work/syncthing'
 * S: '/var/tmp/portage/net-p2p/syncthing-1.24.0/work/syncthing'


# go version
go version go1.19.2 linux/amd64
#

I upgraded to =dev-lang/go-1.21.1 and it did help.
Comment 1 Larry the Git Cow gentoo-dev 2023-10-19 13:37:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b24700948a2b002b3471277c3155bdc16b45d4fe

commit b24700948a2b002b3471277c3155bdc16b45d4fe
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-10-19 13:34:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-19 13:36:45 +0000

    net-p2p/syncthing: bdepend on >=dev-lang/go-1.20.0 for 1.24.0
    
    Closes: https://bugs.gentoo.org/916008
    Signed-off-by: Sam James <sam@gentoo.org>

 net-p2p/syncthing/syncthing-1.24.0.ebuild | 1 +
 1 file changed, 1 insertion(+)