Debian Patches

Status for prometheus/3.5.3+ds1-3

Patch Description Author Forwarded Bugs Origin Last update
0001-Disable-xDS-SD.patch Disable xDS service discovery

This requires modules not present in Debian.
Guillem Jover <gjover@sipwise.com> not-needed 2025-02-09
0002-Disable-Consul-SD.patch Disable Consul service discovery

Disable Consul SD, as its Debian package has lots of problems.
Martina Ferrari <tina@debian.org> not-needed 2025-02-09
0003-Disable-Nomad-SD.patch Disable Nomad service discovery

The requisite build-dependencies for Nomad service discovery do not
exist as Debian packages.
Daniel Swarbrick <dswarbrick@debian.org> not-needed 2022-10-21
0004-Default-settings.patch Add default settings adapted for Debian Martina Ferrari <tina@debian.org> not-needed 2022-03-12
0005-Fix-test-prom-invocations.patch Fix prometheus invocations, paths for debian build system, and avoid recompiling prometheus. Martina Ferrari <tina@debian.org> not-needed 2022-03-16
0006-Do-not-embed-blobs.patch Do not embed blobs

Avoid embedding blobs into the prometheus binary, instead use files
installed on disk.
Martina Ferrari <tina@debian.org> not-needed 2022-03-14
0007-Revert-kingpin-import-path.patch Revert alecthomas/kingpin import path

Newer versions of alecthomas/kingpin use a different import path. This patch
can be dropped once the golang-gopkg-alecthomas-kingpin.v2-dev package is
updated and provides the new import path.
Daniel Swarbrick <dswarbrick@debian.org> not-needed 2023-07-07
0008-Disable-write-documentation-flag.patch Disable write-documentation flag / command

This functionality requires a newer version of the alecthomas/kingpin
package, which has not yet landed in unstable.
Daniel Swarbrick <dswarbrick@debian.org> not-needed 2025-02-08
0009-Disable-Azure-AD-authentication-support.patch Disable Azure AD authentication support

The packaged azure-sdk-for-go in Debian does not include support for
Azure AD auth.
Daniel Swarbrick <dswarbrick@debian.org> not-needed 2023-07-14
0010-Disable-Azure-SD.patch Disable Azure SD
The current golang-github-azure-azure-sdk-for-go-dev package is too
outdated, and it does not include the newer APIs that Prometheus is
using.
Martina Ferrari <tina@debian.org> no 2025-02-09
0011-Disable-OTLP-Ingestion-endpoint.patch Disable OTLP Ingestion endpoint
This depends on code not yet in Debian.
Martina Ferrari <tina@debian.org> no 2025-02-09
0012-Backport-fixes-for-32-bit-archs.patch Backport fixes for 32-bit archs

Adapted from pull request #15548 (318d6bc4b)
Martina Ferrari <tina@debian.org> not-needed 2025-02-12
0013-Avoid-various-resources-related-test-failures.patch Avoid various resources-related test failures
Skip or adjust tests know to fail in certain architectures due to memory
exhaustion, CPU contention, or timing.
Martina Ferrari <tina@debian.org> not-needed upstream 2025-02-17
0015-Update-informer-watch-error-handler-for-client-go.patch The signature of cache.DefaultWatchErrorHandler in k8s.io/client-go changed in v0.33.0:
.
Before: func(r *cache.Reflector, err error)
After: func(ctx context.Context, r *cache.Reflector, err error)
.
Prometheus Kubernetes discovery still called the old variant, which
breaks the build after bumping client-go.
.
In addition, informers now require setting the handler via
SetWatchErrorHandlerWithContext instead of SetWatchErrorHandler.
.
This patch updates informerWatchErrorHandler to accept a context
parameter and updates informer creation code to use
SetWatchErrorHandlerWithContext. This restores compatibility with
client-go >= v0.33.0 and allows Prometheus to build successfully.
Arthur Diniz <arthurbdiniz@gmail.com> not-needed upstream other, https://patch-diff.githubusercontent.com/raw/prometheus/prometheus/pull/16768.patch 2025-09-02
0016-Support-prometheus-common-v0.66.0.patch Support prometheus/common v0.66.0 Reinhard Tartler <siretart@tauware.de> no 2026-06-18
0017-Update-otel-semconv-version.patch Update expected otel semconv version. Upstream appears to perform this in a mechanical fashion when updating go.mod. Mathias Gibbens <gibmat@debian.org> not-needed 2026-06-17
0018-Disable-OpenStack-service-discovery.patch Disable OpenStack service discovery
The golang-github-gophercloud-gophercloud-v2-dev package is
not available in Debian.
Debian Go Packaging Team <team+pkg-go@tracker.debian.org> no 2026-06-17
0019-Disable-StackIT-service-discovery.patch Disable StackIT service discovery
The golang-github-stackitcloud-stackit-sdk-go-core-dev package is
not available in Debian.
Debian Go Packaging Team <team+pkg-go@tracker.debian.org> no 2026-06-17
0020-Remove-klog-slog-bridge-due-to-missing-functions-in-.patch Remove klog slog bridge due to missing functions in Debian klog package Reinhard Tartler <siretart@tauware.de> no 2026-06-17
0021-Remove-expfmt.WithUnit-from-scrape-test.patch Remove expfmt.WithUnit from scrape test
expfmt.WithUnit() was removed in prometheus/common v0.68.0.
This is the version packaged in Debian.
Reinhard Tartler <siretart@tauware.de> not-needed 2026-06-18
0022-Disable-failing-tests.patch Disable failing tests Reinhard Tartler <siretart@tauware.de> no 2026-06-18
0024-Disable-UI-flags-in-CLI-help.patch Disable UI flags in CLI help
Since the UI is entirely disabled in Debian due to DFSG and build
tooling limitations (node-vite/rust-rolldown), exposing the 'old-ui'
feature flag and 'UI' in the listen-address help string causes
unnecessary user confusion.
Reinhard Tartler <siretart@tauware.de> not-needed 2026-07-01
0023-Use-UTF8Validation-for-TextParser-to-fix-test-panics.patch Use UTF8Validation for TextParser to fix test panics

When dropping the legacy label validation patch, the
expfmt.TextParser zero-value constructor will panic in newer
versions of prometheus/common if a validation scheme is not
explicitly set. This updates all instances of expfmt.TextParser
to use expfmt.NewTextParser(model.UTF8Validation).
Reinhard Tartler <siretart@tauware.de> not-needed debian vendor, Debian 2026-07-02
0024-Disable-flaky-compaction-test-on-slow-architectures.patch Disable flaky compaction test on slow architectures
The TestDelayedCompaction test requires compaction to complete within 1
second, but on slower 32-bit architectures (i386, s390x) this can fail
due to timing sensitivity. Disable it for Debian builds.
Reinhard Tartler <siretart@tauware.de> not-needed 2026-07-29
0025-Disable-imprecise-bigzero-avg-test-on-loong64.patch Disable imprecise bigzero avg test on loong64
On loong64, averaging values near +/-MaxFloat64 with NaN produces a
subnormal instead of the expected 0. Comment out the eval since the
.test file format does not support t.Skip().
Reinhard Tartler <siretart@tauware.de> not-needed 2026-07-29
0026-Skip-TestHeadCompactionWhileScraping-in-short-mode.patch Skip TestHeadCompactionWhileScraping in short mode
This test needs three TSDB head compactions to finish within a hard-coded
15s require.Eventually window and spawns five prometheus instances in
parallel. It is timing-sensitive and flaky on slow builders: on the
riscv64 buildd a single compaction of a 12ms block took 7.76s, so fewer
than three compactions completed within the window and the test failed
with "Condition never satisfied".

Debian runs the test suite with -short on armel, armhf, mips64el and
riscv64 (debian/rules), so skipping in short mode disables the test
exactly where it is known to be flaky while keeping it enabled on
mainstream architectures.

Related upstream flakes: prometheus#17541 (Windows CI) and prometheus#17956.
Fix proposals exist upstream in prometheus#17966 and prometheus#19192; drop
this patch once upstream hardens the test.
Reinhard Tartler <siretart@tauware.de> not-needed upstream 2026-07-31
0027-Disable-flaky-TestQueryLog-until-upstream-race-is-fi.patch Disable flaky TestQueryLog until upstream race is fixed
TestQueryLog fails intermittently on the arm64 debci runner with
"connection refused" when the query is sent, or the prometheus process
exits with "bind: address already in use". The readiness probe can
succeed against a process that has not yet bound the expected port
because testutil.RandomUnprivilegedPort releases the port before the
child process binds it (time-of-check/time-of-use race); a parallel
test or a socket in TIME_WAIT can grab it in between.

Tracked upstream as prometheus#16843 with an open fix in prometheus#18615.
Disable the test until upstream resolves the race and drop this patch
afterwards.
Reinhard Tartler <siretart@tauware.de> not-needed upstream 2026-07-31

All known versions for source package 'prometheus'

Links