[pkg-go] Bug#952352: prometheus-mailexporter: FTBFS: src/github.com/cherti/mailexporter/mailexporter.go:552:29: undefined: prometheus.Handler

Lucas Nussbaum lucas at debian.org
Sun Feb 23 13:55:46 GMT 2020


Source: prometheus-mailexporter
Version: 1.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200222 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
>  debian/rules build
> dh build --buildsystem=golang --with=golang
>    dh_update_autotools_config -O--buildsystem=golang
>    dh_autoreconf -O--buildsystem=golang
>    dh_auto_configure -O--buildsystem=golang
>    dh_auto_build -O--buildsystem=golang
> 	cd obj-x86_64-linux-gnu && go install -trimpath -v -p 4 github.com/cherti/mailexporter
> internal/race
> runtime/internal/sys
> runtime/internal/atomic
> internal/cpu
> sync/atomic
> runtime/internal/math
> unicode
> internal/bytealg
> unicode/utf8
> math/bits
> internal/testlog
> math
> encoding
> unicode/utf16
> container/list
> runtime
> crypto/internal/subtle
> crypto/subtle
> vendor/golang.org/x/crypto/cryptobyte/asn1
> internal/nettrace
> runtime/cgo
> vendor/golang.org/x/crypto/internal/subtle
> vendor/golang.org/x/crypto/curve25519
> internal/reflectlite
> sync
> internal/singleflight
> math/rand
> errors
> sort
> io
> strconv
> internal/oserror
> syscall
> vendor/golang.org/x/net/dns/dnsmessage
> bytes
> reflect
> strings
> bufio
> hash
> crypto/internal/randutil
> time
> internal/syscall/unix
> hash/crc32
> crypto
> crypto/hmac
> crypto/rc4
> vendor/golang.org/x/crypto/hkdf
> vendor/golang.org/x/text/transform
> path
> github.com/beorn7/perks/quantile
> github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
> regexp/syntax
> internal/fmtsort
> encoding/binary
> internal/poll
> context
> encoding/base64
> crypto/cipher
> os
> crypto/sha512
> crypto/ed25519/internal/edwards25519
> crypto/aes
> crypto/des
> crypto/md5
> crypto/sha1
> crypto/sha256
> fmt
> encoding/pem
> path/filepath
> vendor/golang.org/x/crypto/internal/chacha20
> net
> vendor/golang.org/x/crypto/poly1305
> io/ioutil
> vendor/golang.org/x/sys/cpu
> github.com/cespare/xxhash
> flag
> encoding/json
> log
> compress/flate
> math/big
> compress/gzip
> encoding/hex
> net/url
> vendor/golang.org/x/crypto/chacha20poly1305
> vendor/golang.org/x/text/unicode/bidi
> vendor/golang.org/x/text/unicode/norm
> vendor/golang.org/x/text/secure/bidirule
> vendor/golang.org/x/net/http2/hpack
> crypto/rand
> crypto/elliptic
> encoding/asn1
> crypto/ed25519
> crypto/rsa
> crypto/dsa
> crypto/ecdsa
> vendor/golang.org/x/net/idna
> crypto/x509/pkix
> vendor/golang.org/x/crypto/cryptobyte
> mime
> mime/quotedprintable
> net/http/internal
> github.com/golang/protobuf/proto
> regexp
> github.com/prometheus/procfs/internal/fs
> github.com/prometheus/procfs/internal/util
> runtime/debug
> golang.org/x/sys/unix
> github.com/prometheus/common/model
> gopkg.in/yaml.v2
> crypto/x509
> crypto/tls
> net/textproto
> vendor/golang.org/x/net/http/httpguts
> vendor/golang.org/x/net/http/httpproxy
> mime/multipart
> github.com/prometheus/client_model/go
> github.com/matttproud/golang_protobuf_extensions/pbutil
> github.com/prometheus/client_golang/prometheus/internal
> github.com/prometheus/procfs
> gopkg.in/fsnotify.v1
> net/mail
> net/http/httptrace
> net/smtp
> net/http
> expvar
> github.com/prometheus/common/expfmt
> github.com/prometheus/client_golang/prometheus
> github.com/cherti/mailexporter
> # github.com/cherti/mailexporter
> src/github.com/cherti/mailexporter/mailexporter.go:552:29: undefined: prometheus.Handler
> dh_auto_build: error: cd obj-x86_64-linux-gnu && go install -trimpath -v -p 4 github.com/cherti/mailexporter returned exit code 2
> make: *** [debian/rules:4: build] Error 25

The full build log is available from:
   http://qa-logs.debian.net/2020/02/22/prometheus-mailexporter_1.0-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-go-maintainers mailing list