Bug 255564

Summary: net-mgmt/librenms fails to build after update to 21.3.0
Product: Ports & Packages Reporter: itwrx <mail>
Component: Individual Port(s)Assignee: Dan Langille <dvl>
Status: Closed Overcome By Events    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (dvl)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

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 freebsd_triage 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 freebsd_triage 2021-05-07 15:25:54 UTC
That means I should backport a fix
Comment 4 Dan Langille freebsd_committer freebsd_triage 2021-07-12 22:30:07 UTC
I'm sorry.

There is a new quarterly branch now.  Have you upgraded?
Comment 5 itwrx 2021-07-14 11:00:04 UTC
(In reply to Dan Langille from comment #4)
Hi Dan, 

nothing to be sorry about :-). I test the update an it run fine for me. Thanks

Henning