Created attachment 218019 [details]
port's Makefile patch
flow-tools port failed to compile due to postgresql dependency which is enabled by default even if not set in port options.
Solution is to use --with-postgresql=no for configure when PGSQL is off.
Also, this port depends on python2.7 for some scripts. It's easy to to transform scripts code to python3 with 2to3 tool.
Patch for the port's Makefile attached.
*** This bug has been marked as a duplicate of bug 249124 ***
was closed by error
*** Bug 249124 has been marked as a duplicate of this bug. ***
A commit references this bug:
Date: Fri Sep 25 17:16:30 UTC 2020
New revision: 550057
net-mgmt/flow-tools: Fix compilation when all options turned off
- Remove python 2.7 dependency  
PR: 249388  249739 
Submitted by: email@example.com 
Reported by: swills 
I just upgraded from PORTREVISION 2, and flow-report(1) fails with the following error:
Traceback (most recent call last):
File "/usr/local/bin/flow-rptfmt", line 533, in <module>
rpt.load(sys.stdin, opt_sort_field, opt_max_lines, opt_percent)
File "/usr/local/bin/flow-rptfmt", line 324, in load
for i in string.split(line[8:],','):
AttributeError: module 'string' has no attribute 'split'
flow-report: pclose(flow-rptfmt -f ascii): failed exit code=1.
Maybe something went wrong in code transition from Python 2.7 to 3.x... :( Unfortunately I have no clue about the exact cause, can you help me on this?
Andrew, could you please file an another PR with the issue you mentioned. Also put there your exact flow-report command line and /usr/local/etc/cfg/stat.cfg file that we will be able to reproduce. I'll take a look on it when I will have time.
P.S. From your error paste I see that "string.split(line[8:],',')" should be changed to something like "line[8:].split(',')", but there are a lot of such things in flow-rptfmt file. And actually all string() methods should be replaced with build-in str().
(In reply to Volodymyr Pushkar from comment #6)
Thank you so much Vlad, I opened bug #251054 for that. Please let me know if I can help in any way.