Bug 276461 - net-mgnt/librenms: poller broken by typo in patch file
Summary: net-mgnt/librenms: poller broken by typo in patch file
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-19 14:26 UTC by geoffroy desvernay
Modified: 2024-01-19 14:26 UTC (History)
0 users

See Also:


Attachments
git diff net-mgmt/libremns (730 bytes, patch)
2024-01-19 14:26 UTC, geoffroy desvernay
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
~~~