- Package:
- src:prometheus-sql-exporter
- Source:
- src:prometheus-sql-exporter
- Submitter:
- Santiago Vila
- Date:
- 2026-06-14 19:07:06 UTC
- Severity:
- normal
- Tags:
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202606/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:prometheus-sql-exporter, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --with=golang --buildsystem=golang dh_auto_clean -O--buildsystem=golang dh_autoreconf_clean -O--buildsystem=golang dh_clean -O--buildsystem=golang debian/rules binary dh binary --with=golang --buildsystem=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 2 github.com/justwatchcom/sql_exporter src/github.com/justwatchcom/sql_exporter/main.go:16:2: cannot find package "go.uber.org/automaxprocs" in any of: /usr/lib/go-1.26/src/go.uber.org/automaxprocs (from $GOROOT) /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/go.uber.org/automaxprocs (from $GOPATH) dh_auto_build: error: cd obj-x86_64-linux-gnu && go install -trimpath -v -p 2 github.com/justwatchcom/sql_exporter returned exit code 1 make: *** [debian/rules:4: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------
Hello, Bug #1139524 in prometheus-sql-exporter reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/postgresql/prometheus-sql-exporter/-/commit/56574948f1377af58ae2bdf89cd0109290d5557b (this message was generated automatically) -- Greetings https://bugs.debian.org/1139524
Re: Bradford D. Boyle thanks for the fix! Unfortunately, it doesn't seem to be enough: github.com/cenkalti/backoff is version 5 in the meantime. We have a patch "backoff-v4" that enables building with version 4: - "github.com/cenkalti/backoff" + "github.com/cenkalti/backoff/v4" but even after removing that (the new modules doesn't seem to have a /v component), it fails: # github.com/justwatchcom/sql_exporter src/github.com/justwatchcom/sql_exporter/job.go:508:5: bo.MaxElapsedTime undefined (type *"github.com/cenkalti/backoff".ExponentialBackOff has no field or method MaxElapsedTime) src/github.com/justwatchcom/sql_exporter/job.go:512:37: in call to backoff.Retry, type *"github.com/cenkalti/backoff".ExponentialBackOff of bo does not match "github.com/cenkalti/backoff".Operation[T] (cannot infer T) Perhaps we should just forward that to upstream... Christoph
Hi,
I have not been able to reproduce any build failure with the package as
it currently is in salsa. I've successfully built across unstable,
testing, and stable with sbuild using up-to-date chroots.
With that said, I _think_ there might be some confusion in the
Build-Depends that results in different packages being resolved during
build. The control file lists
golang-github-cenkalti-backoff-v4-dev | golang-github-cenkalti-backoff-dev
but depending on which distribution is being built against, the package
golang-github-cenkalti-backoff-dev can refer to different major versions
(summarized below).
- golang-github-cenkalti-backoff-dev
- oldstable 4.1.3-1 /usr/share/gocode/src/github.com/cenkalti/backoff/
- stable 4.3.0-1 /usr/share/gocode/src/github.com/cenkalti/backoff/
- testing 5.0.3-3 /usr/share/gocode/src/github.com/cenkalti/backoff/
- golang-github-cenkalti-backoff-v4-dev
- testing 4.3.0-3 /usr/share/gocode/src/github.com/cenkalti/backoff/v4/
For unstable/testing, the correct dependency is
golang-github-cenkalti-backoff-v4-dev with the patch to include the v4
path component. For older distributions the correct dependency is
golang-github-cenkalti-backoff-dev without the patch. I wonder if adding
a version constraint (e.g., `(<< 5.0.0)`) to the Build-Depends is
needed? Additionally, the backoff-v4 patch needs to be omitted when
building for older distributions.
Re: Bradford Boyle That was it, excellent analysis. Thanks! Upload is on the way now. The package notes say bookworm, bullseye, noble, jammy: needs golang-github-prometheus-client-golang-dev v1.19+ so the older dists have more problems and that tweak isn't required. Thanks, Christoph
We believe that the bug you reported is fixed in the latest version of prometheus-sql-exporter, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1139524@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Bradford D. Boyle <bradford.d.boyle@gmail.com> (supplier of updated prometheus-sql-exporter package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Sun, 14 Jun 2026 18:31:09 +0000 Source: prometheus-sql-exporter Architecture: source Version: 0.9-3 Distribution: unstable Urgency: medium Maintainer: Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Changed-By: Bradford D. Boyle <bradford.d.boyle@gmail.com> Closes: 1139524 Changes: prometheus-sql-exporter (0.9-3) unstable; urgency=medium . * Team upload. * Add golang-uber-automaxprocs-dev to Build-Depends. (Closes: #1139524) Checksums-Sha1: 372510a75029b9b52167f9744de8232692e1e844 2689 prometheus-sql-exporter_0.9-3.dsc 9206fef800eda54691bfb8fd1d814b58c8772433 7288 prometheus-sql-exporter_0.9-3.debian.tar.xz Checksums-Sha256: ae610403592b0d397570beffd2eecbea8fb9cc4f5ffd5ddd8d1a4ab602097da7 2689 prometheus-sql-exporter_0.9-3.dsc 0ac777a6cdd14c410460fd22c932ce6c4c6a3cb6346984efaba2e09439a3e0f8 7288 prometheus-sql-exporter_0.9-3.debian.tar.xz Files: 3836904d20c77f4c0bcc37b01dfdc8da 2689 database optional prometheus-sql-exporter_0.9-3.dsc 85bedb63be673f9ca08dfec8eca46c9f 7288 database optional prometheus-sql-exporter_0.9-3.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEXEj+YVf0kXlZcIfGTFprqxLSp64FAmou+RsACgkQTFprqxLS p67bcw/8D7b3Z47NYny/Yw0LaX4zjPVlDcG+SJIQQxG4dqpbj4RdGwJ7Qbyp9Vac BNgKtKQDX6gmFwDjwemfG8OmS3u2uXOh+SplAuqH6ZsIOolz1Uk+7KE1TYn+ricy CbVqWhsQxEEUnSPhCHmFq6dSXFO2EBNyFW99o3yowTXDZWyds6cGrlN9mTtr2CRT sVixtP7ONmSvJI8vXvibYt+wFtPkB4f09Zh+ai5gskxrauRTR/WlcsGszgqMgeJJ FsymxEYCNTu7C0EG1PFasN3n6ESiDEgK+8yCE5tfCZLdNJID9biAPkVzTqwkaI17 Aa02pYGPitkylkXpPhc469SEz75YZfc9VPySQ1sQVC4XnmYgji2s3fGYOW7UFYu8 LKATo1+RGy8CrdVT1Ty96BdMEw2wMl5x7m79fDQqoFPsazPc8ODbYSQtXXVGoTW2 2D71TAqlvF/R3ypV0t4DaygrUtH4AdBTFdyXigqGqrl2svPiEc9QxTe6vIbt9dgr HUCPZDQ48C/89uG16RvNNlPF3+OwOnLmquc1hkAkWpvDYY/H7W4EFmLhOtZecOaX wtf7xXmYMrJGQAywBaEFlQ+/FOg22VglFBSehK5inboIZrEsLg5HcP8OXydepZh1 o8s49y8+n92vMoENSFMSSP/0erBDeRLDpF+WbdRRO7AgWNjR7ow= =yedu -----END PGP SIGNATURE-----