Bug 255564 - net-mgmt/librenms fails to build after update to 21.3.0
Summary: net-mgmt/librenms fails to build after update to 21.3.0
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Dan Langille
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-03 07:27 UTC by itwrx
Modified: 2021-05-07 15:25 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (dvl)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description itwrx 2021-05-03 07:27:27 UTC
Hello,

after updating two installations to librenms-21.3.0 in FreeBSD 12.2p6 Jails ./validate.php was failing for me:

[2021-05-01 15:28:43] production.ERROR: Class 'LibreNMS\Validations\Config' not found {"userId":1,"exception":"[object] (Error(code: 0): Class 'LibreNMS\\Validations\\Config' not found at /usr/local/www/librenms/LibreNMS/Validations/System.php:42

I cloud workaround this problem by adding:

use LibreNMS\Config;

to /usr/local/www/librenms/LibreNMS/Validations/System.php

Regards

Henning
Comment 1 Dan Langille freebsd_committer 2021-05-03 12:22:00 UTC
Do you have the same problem with 21.4.0_1 which is in the tree now?

I ask because that file contains 'use LibreNMS\Config'
Comment 2 itwrx 2021-05-03 12:37:44 UTC
Sorry, I should have mentioned that I am running on the quarterly branch not on latest ;-) (first bug report ever... shame on me).
Comment 3 Dan Langille freebsd_committer 2021-05-07 15:25:54 UTC
That means I should backport a fix