Hello, when dealing with non-UTF8 hosts, the inferEncoding from LibreNMS/Util/StringHelpers.php requires an iconv(). The following should unconditionally require php’s iconv port and make LibreNMS more useful: --- Makefile.orig 2023-11-16 17:42:36.878650000 +0100 +++ Makefile 2023-11-16 17:42:47.428651000 +0100 @@ -27,7 +27,7 @@ USES= cpe php python shebangfix USE_GITHUB= yes -USE_PHP= ctype curl dom fileinfo filter gd hash json ldap mbstring \ +USE_PHP= ctype curl dom fileinfo filter gd hash iconv json ldap mbstring \ mysqli openssl pdo pdo_mysql phar posix session simplexml snmp \ sockets tokenizer xml xmlwriter zip USE_RC_SUBR= librenms Thanks in advance, -- Francis GUDIN
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=787fe89073b39ca8c225bf947969627fdced817d commit 787fe89073b39ca8c225bf947969627fdced817d Author: Dan Langille <dvl@FreeBSD.org> AuthorDate: 2023-11-16 20:39:40 +0000 Commit: Dan Langille <dvl@FreeBSD.org> CommitDate: 2023-11-16 20:41:03 +0000 net-mgmt/librenms: add missing dependency: iconv While here, run portfmt. PR: 275130 net-mgmt/librenms/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Thank you