[pkg-go] Bug#917503: prometheus-alertmanager: FTBFS (cannot use *logLevel as type *promlog.Config)

Santiago Vila sanvila at debian.org
Thu Dec 27 23:54:17 GMT 2018


Package: src:prometheus-alertmanager
Version: 0.15.1+ds-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --buildsystem=golang --with=golang,bash-completion \
    --builddirectory=build
   dh_update_autotools_config -i -O--buildsystem=golang -O--builddirectory=build
   dh_autoreconf -i -O--buildsystem=golang -O--builddirectory=build
   dh_auto_configure -i -O--buildsystem=golang -O--builddirectory=build
	install -d build
	Copy silence/silence_test.go -> build/src/github.com/prometheus/alertmanager/silence/silence_test.go
	Copy silence/silence.go -> build/src/github.com/prometheus/alertmanager/silence/silence.go
	Copy silence/silencepb/silence.proto -> build/src/github.com/prometheus/alertmanager/silence/silencepb/silence.proto
	Copy silence/silencepb/silence.pb.go -> build/src/github.com/prometheus/alertmanager/silence/silencepb/silence.pb.go
	Copy cli/root.go -> build/src/github.com/prometheus/alertmanager/cli/root.go
	Copy cli/check_config_test.go -> build/src/github.com/prometheus/alertmanager/cli/check_config_test.go
	Copy cli/config.go -> build/src/github.com/prometheus/alertmanager/cli/config.go

[... snipped ...]

github.com/prometheus/alertmanager/silence
github.com/prometheus/alertmanager/template
github.com/prometheus/common/version
golang.org/x/net/context/ctxhttp
net/mail
net/smtp
github.com/prometheus/alertmanager/notify
github.com/prometheus/alertmanager/provider
github.com/prometheus/alertmanager/vendor/github.com/prometheus/prometheus/pkg/labels
github.com/prometheus/alertmanager/dispatch
github.com/prometheus/alertmanager/pkg/parse
github.com/julienschmidt/httprouter
github.com/prometheus/common/route
github.com/prometheus/alertmanager/api
github.com/alecthomas/units
go/token
go/scanner
go/ast
go/doc
gopkg.in/alecthomas/kingpin.v2
github.com/prometheus/alertmanager/cli/config
github.com/prometheus/client_golang/api
github.com/prometheus/alertmanager/client
github.com/prometheus/alertmanager/cli/format
os/user
github.com/prometheus/alertmanager/cli
github.com/prometheus/alertmanager/vendor/github.com/oklog/oklog/pkg/group
github.com/prometheus/alertmanager/inhibit
github.com/prometheus/alertmanager/provider/mem
github.com/prometheus/client_golang/prometheus/promhttp
runtime/pprof
runtime/trace
net/http/pprof
github.com/prometheus/alertmanager/ui
github.com/prometheus/common/promlog
github.com/prometheus/alertmanager/cmd/alertmanager
# github.com/prometheus/alertmanager/cmd/alertmanager
src/github.com/prometheus/alertmanager/cmd/alertmanager/main.go:173:24: cannot use *logLevel (type promlog.AllowedLevel) as type *promlog.Config in argument to promlog.New
github.com/prometheus/alertmanager/cmd/amtool
flag
testing
github.com/prometheus/alertmanager/test
dh_auto_build: cd build && go install -gcflags=all=\"-trimpath=/<<BUILDDIR>>/prometheus-alertmanager-0.15.1\+ds/build/src\" -asmflags=all=\"-trimpath=/<<BUILDDIR>>/prometheus-alertmanager-0.15.1\+ds/build/src\" -v -p 1 -ldflags " -X github.com/prometheus/common/version.Version=0.15.1+ds -X github.com/prometheus/common/version.Revision=0.15.1+ds-1 -X github.com/prometheus/common/version.Branch=debian/sid -X github.com/prometheus/common/version.BuildUser=pkg-go-maintainers at lists.alioth.debian.org -X github.com/prometheus/common/version.BuildDate=20180805-18:58:17 -X github.com/prometheus/common/version.GoVersion=go1.10.7" github.com/prometheus/alertmanager/api github.com/prometheus/alertmanager/cli github.com/prometheus/alertmanager/cli/config github.com/prometheus/alertmanager/cli/format github.com/prometheus/alertmanager/client github.com/prometheus/alertmanager/cluster github.com/prometheus/alertmanager/cluster/clusterpb github.com/prometheus/alertmanager/cmd/alertmanager github.com/prometheus/alertmanager/cmd/amtool github.com/prometheus/alertmanager/config github.com/prometheus/alertmanager/dispatch github.com/prometheus/alertmanager/inhibit github.com/prometheus/alertmanager/nflog github.com/prometheus/alertmanager/nflog/nflogpb github.com/prometheus/alertmanager/notify github.com/prometheus/alertmanager/pkg/parse github.com/prometheus/alertmanager/provider github.com/prometheus/alertmanager/provider/mem github.com/prometheus/alertmanager/silence github.com/prometheus/alertmanager/silence/silencepb github.com/prometheus/alertmanager/template github.com/prometheus/alertmanager/test github.com/prometheus/alertmanager/types github.com/prometheus/alertmanager/ui returned exit code 2
make[1]: *** [debian/rules:38: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/prometheus-alertmanager-0.15.1+ds'
make: *** [debian/rules:31: build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made in my autobuilder with "dpkg-buildpackage -A"
but it also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/prometheus-alertmanager.html

where you can get a full build log if you need it.

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the BTS web page for this package.

Thanks.



More information about the Pkg-go-maintainers mailing list