From aa8f815b1fc1fd85dbadbf540f2e887414604366 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 26 Dec 2022 15:10:30 -0800 Subject: app-metrics/prometheus-lvm-exporter: quick fix for merged-usr cases Signed-off-by: Robin H. Johnson --- .../prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app-metrics/prometheus-lvm-exporter') diff --git a/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild b/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild index 03455ab5fa66..5c2dff9bdaf0 100644 --- a/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild +++ b/app-metrics/prometheus-lvm-exporter/prometheus-lvm-exporter-0.3.2.ebuild @@ -38,6 +38,10 @@ S="${WORKDIR}/${PN}-${MY_PV}" PATCHES=( ) +src_prepare() { + sed -i -e '/kingpin.Flag.*\.*/s,/usr/sbin/lvm,/sbin/lvm,g' "${S}"/main.go || die +} + src_compile() { default go build . -- cgit v1.2.3-65-gdbad