Created attachment 222632 [details] patch for mongodb to fix build with go1.16 mongodb36-tools fails to build with go1.16. ===> Configuring for mongodb36-tools-3.6.3 ===> Building for mongodb36-tools-3.6.3 /usr/bin/env GOPATH="/usr/ports/databases/mongodb36-tools/work/mongo-tools-r3.6.3/.gopath:/usr/ports/databases/mongodb36-tools/work/mongo-tools-r3.6.3/vendor" CGO_CFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing " CGO_CPPFLAGS="-isystem /usr/local/include" CGO_CXXFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include " CGO_LDFLAGS="-L/usr/local/lib -fstack-protector-strong " OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/usr/ports/databases/mongodb36-tools/work XDG_CONFIG_HOME=/usr/ports/databases/mongodb36-tools/work HOME=/usr/ports/databases/mongodb36-tools/work PATH=/usr/ports/databases/mongodb36-tools/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing " CPP="cpp" CPPFLAGS="-isystem /usr/local/include" LDFLAGS=" -fstack-protector-strong " LIBS="-L/usr/local/lib" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" /usr/local/bin/go build -o /usr/ports/databases/mongodb36-tools/work/mongo-tools-r3.6.3/bin/bsondump -tags "sasl ssl" -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec=r3.6.3" /usr/ports/databases/mongodb36-tools/work/mongo-tools-r3.6.3/bsondump/main/bsondump.go work/mongo-tools-r3.6.3/bsondump/main/bsondump.go:11:2: no required module provides package github.com/mongodb/mongo-tools/bsondump: working directory is not part of a module work/mongo-tools-r3.6.3/bsondump/main/bsondump.go:12:2: no required module provides package github.com/mongodb/mongo-tools/common/db: working directory is not part of a module work/mongo-tools-r3.6.3/bsondump/main/bsondump.go:13:2: no required module provides package github.com/mongodb/mongo-tools/common/log: working directory is not part of a module work/mongo-tools-r3.6.3/bsondump/main/bsondump.go:14:2: no required module provides package github.com/mongodb/mongo-tools/common/options: working directory is not part of a module work/mongo-tools-r3.6.3/bsondump/main/bsondump.go:15:2: no required module provides package github.com/mongodb/mongo-tools/common/signals: working directory is not part of a module work/mongo-tools-r3.6.3/bsondump/main/bsondump.go:16:2: no required module provides package github.com/mongodb/mongo-tools/common/util: working directory is not part of a module *** Error code 1 Stop. make[1]: stopped in /usr/ports/databases/mongodb36-tools *** Error code 1 This patch fixes that.
Committed!
A commit references this bug: Author: nc Date: Fri Mar 5 19:23:17 UTC 2021 New revision: 567411 URL: https://svnweb.freebsd.org/changeset/ports/567411 Log: databases/mongodb36-tools: unbreak with go1.16 PR: 253689 Submitted by: Daniel Horecki <morr AT morr DOT pl> Approved by: numisemis AT yahoo DOT com (maintainer) Changes: head/databases/mongodb36-tools/Makefile