From 9fadc6bc7a2fb1eb3c1a81582769f985cb3ebcee Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Thu, 3 Jan 2019 08:18:04 +0100 Subject: [PATCH] prometheus-statsd-exporter: fix compilation with go 1.11.4 This fixes the exact same build error reported at [0]. Upstream fixed it too, see [1], but I decided to use the minimal patch until a new version is released instead. [0] https://github.com/golang/go/issues/29281 [1] https://github.com/prometheus/statsd_exporter/pull/171 Signed-off-by: Andre Heider --- utils/prometheus-statsd-exporter/Makefile | 2 +- .../patches/001-fix-mod-checksum.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 utils/prometheus-statsd-exporter/patches/001-fix-mod-checksum.patch diff --git a/utils/prometheus-statsd-exporter/Makefile b/utils/prometheus-statsd-exporter/Makefile index c7f5000cd..5cd85be72 100644 --- a/utils/prometheus-statsd-exporter/Makefile +++ b/utils/prometheus-statsd-exporter/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=prometheus-statsd-exporter PKG_VERSION:=0.8.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=statsd_exporter-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/prometheus/statsd_exporter/tar.gz/v${PKG_VERSION}? diff --git a/utils/prometheus-statsd-exporter/patches/001-fix-mod-checksum.patch b/utils/prometheus-statsd-exporter/patches/001-fix-mod-checksum.patch new file mode 100644 index 000000000..ab3541e4e --- /dev/null +++ b/utils/prometheus-statsd-exporter/patches/001-fix-mod-checksum.patch @@ -0,0 +1,11 @@ +--- a/go.sum ++++ b/go.sum +@@ -42,7 +42,7 @@ github.com/prometheus/client_model v0.0. + github.com/prometheus/client_model v0.0.0-20170216185247-6f3806018612/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= + github.com/prometheus/common v0.0.0-20170731114204-61f87aac8082 h1:M/45ksQhBkhxI65UXRNvyuF6sV7A08GMYk39aGZQlJQ= + github.com/prometheus/common v0.0.0-20170731114204-61f87aac8082/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +-github.com/prometheus/procfs v0.0.0-20170703101242-e645f4e5aaa8 h1:uZfczEBIA1FZfOQo4/JWgGnMNd/4HVsM9A+B30wtlkA= ++github.com/prometheus/procfs v0.0.0-20170703101242-e645f4e5aaa8 h1:Kh7M6mzRpQ2de1rixoSQZr4BTINXFm8WDbeN5ttnwyE= + github.com/prometheus/procfs v0.0.0-20170703101242-e645f4e5aaa8/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= + github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= + github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=