pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: www/grafana downloading executables (plugins) at runtime?



On Wed, 21 Oct 2026 00:13:43 +0200
Edgar Fuß <ef%math.uni-bonn.de@localhost> wrote:

> Does Grafana 13 actually work for anyone on NetBSD?
> 
> It doesn't, for me, at least not with InfluxDB as a datasource.
> grafana.log says awkward things like
> 
> Downloaded and extracted influxdb v13.1.7 zip successfully to /var/lib/grafana/plugins/influxdb
> 
> and that directory now contains
> 
> $ sudo ls -lh /var/lib/grafana/plugins/influxdb
> total 241M
> -rw-r--r--  1 grafana  grafana  1.9K Oct 20 23:56 156.js
> -rw-r--r--  1 grafana  grafana  6.8K Oct 20 23:56 156.js.map
> -rw-r--r--  1 grafana  grafana  1.4K Oct 20 23:56 CHANGELOG.md
> -rw-r--r--  1 grafana  grafana   34K Oct 20 23:56 LICENSE
> -rw-r--r--  1 grafana  grafana  2.9K Oct 20 23:56 MANIFEST.txt
> -rw-r--r--  1 grafana  grafana  659B Oct 20 23:56 README.md
> -rwxr-xr-x  1 grafana  grafana  4.5K Oct 20 23:56 go_plugin_build_manifest
> -rwxr-xr-x  1 grafana  grafana   31M Oct 20 23:56 gpx_grafana_influxdb_datasource_darwin_amd64
> -rwxr-xr-x  1 grafana  grafana   29M Oct 20 23:56 gpx_grafana_influxdb_datasource_darwin_arm64
> -rwxr-xr-x  1 grafana  grafana   30M Oct 20 23:56 gpx_grafana_influxdb_datasource_linux_amd64
> -rwxr-xr-x  1 grafana  grafana   28M Oct 20 23:56 gpx_grafana_influxdb_datasource_linux_arm
> -rwxr-xr-x  1 grafana  grafana   28M Oct 20 23:56 gpx_grafana_influxdb_datasource_linux_arm64
> -rwxr-xr-x  1 grafana  grafana   31M Oct 20 23:56 gpx_grafana_influxdb_datasource_linux_s390x
> -rwxr-xr-x  1 grafana  grafana   31M Oct 20 23:56 gpx_grafana_influxdb_datasource_windows_amd64.exe
> -rwxr-xr-x  1 grafana  grafana   28M Oct 20 23:56 gpx_grafana_influxdb_datasource_windows_arm64.exe
> drwxr-xr-x  2 grafana  grafana  512B Oct 20 23:56 img
> -rw-r--r--  1 grafana  grafana  873K Oct 20 23:56 module.js
> -rw-r--r--  1 grafana  grafana  544B Oct 20 23:56 module.js.LICENSE.txt
> -rw-r--r--  1 grafana  grafana  3.3M Oct 20 23:56 module.js.map
> -rw-r--r--  1 grafana  grafana  1.3K Oct 20 23:56 plugin.json
> -rw-r--r--  1 grafana  grafana  1.5K Oct 20 23:56 query_help.md
> -rw-r--r--  1 grafana  grafana  191K Oct 20 23:56 sql-query-editor.js
> -rw-r--r--  1 grafana  grafana  539K Oct 20 23:56 sql-query-editor.js.map
> 
> $ sudo file /var/lib/grafana/plugins/influxdb/gpx_grafana_influxdb_datasource_linux_amd64
> /var/lib/grafana/plugins/influxdb/gpx_grafana_influxdb_datasource_linux_amd64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=emorVOAA3iAz-KO2joe3/bu1avNT8n3UTZWvWR75V/g74NHm6hhlfOloz1ZrxZ/aaAyhTMcmkeZ0xb97EzY, BuildID[sha1]=85bbd451689490fad4a00cb8cd1b35a097a3ce92, stripped
> 
> What the hell?
> 
> Do we want software in pkgsrc that downloads additional executables at runtime?

This is unfortunately by design. The plugins are cryptographically
signed by the upstream so at least it's not downloading something that
was not marked as trusted by the gpg key they included at time of
packaging. If your platform is not among the ones officially supported
by the upstream you need to package the applicable datasource plugin
for pkgsrc. See www/grafana-prometheus-datasource for an example.
The DESCR for that package also explains how to disable the plugin
preinstaller. I'm not against patching the grafana package to do that
by default but it will break some turnkey functionality on Darwin and Linux
We should probably package more of the datasources in pkgsrc before
going that route.

Kind regards,
-Tobias


Home | Main Index | Thread Index | Old Index