go: disabling cache (/root/cache/go-build) due to initialization failure: mkdir /root/cache: permission denied # github.com/prometheus/snmp_exporter/generator ./net_snmp.go:19:10: fatal error: net-snmp/net-snmp-config.h: No such file or directory #include <net-snmp/net-snmp-config.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop-gnome_libressl_20180820-193302 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-8.2.0 * Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby23 (with Rubygems) * emerge -qpv app-metrics/snmp_exporter [ebuild N ] app-metrics/snmp_exporter-0.12.0
Created attachment 544484 [details] emerge-info.txt
Created attachment 544486 [details] app-metrics:snmp_exporter-0.12.0:20180822-063516.log
Created attachment 544488 [details] emerge-history.txt
Created attachment 544490 [details] environment
Created attachment 544492 [details] etc.portage.tbz2
likely missing net-snmp dependency. I'll take a look.
Adding DEPEND=net-analyzer/net-snmp allows snmp_exporter-0.12.0 to build: $ diff -u /usr/portage/app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild snmp_exporter-0.12.0.ebuild --- /usr/portage/app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild 2018-08-21 14:18:25.735069290 -0700 +++ snmp_exporter-0.12.0.ebuild 2018-08-30 16:47:03.777567491 -0700 @@ -17,7 +17,8 @@ SLOT="0" IUSE="" -DEPEND="dev-util/promu" +DEPEND="dev-util/promu + net-analyzer/net-snmp" pkg_setup() { enewgroup ${PN}
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06902991ae3ae0ef88760d03a820668ca6b37ed2 commit 06902991ae3ae0ef88760d03a820668ca6b37ed2 Author: Manuel Rüger <mrueg@gentoo.org> AuthorDate: 2018-09-07 06:20:11 +0000 Commit: Manuel Rüger <mrueg@gentoo.org> CommitDate: 2018-09-07 06:20:11 +0000 app-metrics/snmp_exporter: Add missing dependency on net-snmp Closes: https://bugs.gentoo.org/664282 Package-Manager: Portage-2.3.49, Repoman-2.3.10 app-metrics/snmp_exporter/snmp_exporter-0.12.0.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)