Bug 276461

Summary: net-mgnt/librenms: poller broken by typo in patch file
Product: Ports & Packages Reporter: geoffroy desvernay <dgeo>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
git diff net-mgmt/libremns none

Description geoffroy desvernay 2024-01-19 14:26:51 UTC
Created attachment 247780 [details]
git diff net-mgmt/libremns

Using poller-wrapper.py with cron, we receive these errors, because of a doubled-double-quote in net-mgmt/librenms/files/patch-LibreNMS_wrapper.py

Patch attached to fix it, tested here with poudriere

I know it is deprecated, but while present I think it should not be broken...

~~~
Cronic detected failure or error output for the command:
/usr/local/www/librenms/poller-wrapper.py 32

RESULT CODE: 1

ERROR OUTPUT:
Traceback (most recent call last):
  File "/usr/local/www/librenms/poller-wrapper.py", line 12, in <module>
    import LibreNMS.wrapper as wrapper
  File "/usr/local/www/librenms/LibreNMS/wrapper.py", line 285
    command = ""/usr/local/bin/php {} {} {}".format(
                                   ^
SyntaxError: invalid syntax
~~~