FS#61316 - [netdata] /usr/local/ despite /usr prefix

Attached to Project: Community Packages
Opened by Adriano Fantini (OdinEidolon) - Wednesday, 09 January 2019, 08:12 GMT
Last edited by Eli Schwartz (eschwartz) - Friday, 11 January 2019, 04:00 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Netdata on Arch is built with different locations compared to the default. These locations should be enforced also in the installing process, according to this netdata bug report:
https://github.com/netdata/netdata/issues/5136

Additional info:
* netdata 1.11.1-1

Steps to reproduce:
* install netdata
* sudo su -s /bin/bash netdata
* /usr/lib/netdata/plugins.d/alarm-notify.sh test
* output: alarm-notify.sh: WARNING: Cannot find file '/usr/local/lib/netdata/conf.d/health_alarm_notify.conf
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Friday, 11 January 2019, 04:00 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#60919 
Comment by mpan (mpan) - Wednesday, 09 January 2019, 09:21 GMT
Lines 162–164 of “/usr/lib/netdata/plugins.d/alarm-notify.sh” set “/usr/local” as the paths. This is happening with the currently used PKGBUILD¹, with prefix set to “/usr” (`--prefix=/usr`). There is no changes made to what the upstream provides, though Arch configuration may have revealed a pre-existing bug.

From what I can *guess*, `configure` is failing to determine the right directories and uses the default, which is “/usr/local”.
____
¹ https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/netdata&id=05316afa37291a934644e521787e981daca9b7a3
Comment by Adriano Fantini (OdinEidolon) - Wednesday, 09 January 2019, 09:31 GMT
Thanks mpan for taking interest. This should be related to https://bugs.archlinux.org/task/60919

Also, sorry for completely forgetting to set a title...

Loading...