diff -Nru prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/changelog prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/changelog --- prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/changelog 2020-11-11 22:24:25.000000000 +0000 +++ prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/changelog 2022-10-11 18:30:59.000000000 +0000 @@ -1,8 +1,11 @@ -prometheus-tplink-plug-exporter (0.2.0+git20200622.cc4a731-2build1) hirsute; urgency=medium +prometheus-tplink-plug-exporter (0.2.0+git20200622.cc4a731-2ubuntu1) kinetic; urgency=medium - * No-change rebuild using new golang + [ Daniel Swarbrick ] + * Add new 01-fix-logrus-import.patch, since current versions of + golang-github-prometheus-common no longer provide a log wrapper for + logrus (Closes: #1002282). - -- Steve Langasek Wed, 11 Nov 2020 22:24:25 +0000 + -- Benjamin Drung Tue, 11 Oct 2022 20:30:59 +0200 prometheus-tplink-plug-exporter (0.2.0+git20200622.cc4a731-2) unstable; urgency=medium diff -Nru prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/control prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/control --- prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/control 2020-11-11 22:24:25.000000000 +0000 +++ prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/control 2022-10-11 18:30:59.000000000 +0000 @@ -1,6 +1,6 @@ Source: prometheus-tplink-plug-exporter Standards-Version: 4.5.0 -Build-Depends: debhelper-compat (= 12), golang-github-mitchellh-mapstructure-dev, golang-github-prometheus-client-golang-dev, dh-golang, golang-go +Build-Depends: debhelper-compat (= 12), golang-github-mitchellh-mapstructure-dev, golang-github-prometheus-client-golang-dev, dh-golang, golang-go, golang-github-sirupsen-logrus-dev Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Jelmer Vernooij Section: net diff -Nru prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/patches/01-fix-logrus-import.patch prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/patches/01-fix-logrus-import.patch --- prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/patches/01-fix-logrus-import.patch 1970-01-01 00:00:00.000000000 +0000 +++ prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/patches/01-fix-logrus-import.patch 2022-10-11 18:30:59.000000000 +0000 @@ -0,0 +1,26 @@ +From: Daniel Swarbrick +Date: Tue, 11 Oct 2022 20:34:49 +0200 +Subject: Import logrus directly, instead of via prometheus/common + +Newer versions of prometheus/common no longer provide a wrapper around +logrus, and have instead switched to go-kit/log. + +Forwarded: https://github.com/fffonion/tplink-plug-exporter/pull/14 +Last-Update: 2022-10-11 +--- + main.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/main.go b/main.go +index 4918748..4eccc6a 100644 +--- a/main.go ++++ b/main.go +@@ -3,7 +3,7 @@ package main + import ( + "net/http" + +- "github.com/prometheus/common/log" ++ log "github.com/sirupsen/logrus" + + "github.com/fffonion/tplink-plug-exporter/exporter" + ) diff -Nru prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/patches/series prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/patches/series --- prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ prometheus-tplink-plug-exporter-0.2.0+git20200622.cc4a731/debian/patches/series 2022-10-11 18:30:59.000000000 +0000 @@ -0,0 +1 @@ +01-fix-logrus-import.patch