Bug 253689 - databases/mongodb36-tools - unbreak with go1.16
Summary: databases/mongodb36-tools - unbreak with go1.16
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-19 12:55 UTC by Daniel Horecki
Modified: 2021-02-19 12:55 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (numisemis)


Attachments
patch for mongodb to fix build with go1.16 (483 bytes, text/plain)
2021-02-19 12:55 UTC, Daniel Horecki
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Horecki 2021-02-19 12:55:13 UTC
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.