[Bug 276461] net-mgnt/librenms: poller broken by typo in patch file

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 19 Jan 2024 14:26:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276461

            Bug ID: 276461
           Summary: net-mgnt/librenms: poller broken by typo in patch file
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dgeo@centrale-med.fr

Created attachment 247780
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247780&action=edit
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
~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.