Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 735392 - net-analyzer/tcpflow: restore with py3 fixes (was: need py3 port)
Summary: net-analyzer/tcpflow: restore with py3 fixes (was: need py3 port)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2020-10-26
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: py3-tracker, python-3-incompatible 741420
  Show dependency tree
 
Reported: 2020-08-02 14:34 UTC by Michał Górny
Modified: 2021-02-12 15:40 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Version bump without python eclass (tcpflow-1.5.2-r2.ebuild,1.43 KB, text/plain)
2020-09-27 12:05 UTC, Michael Perlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-02 14:34:15 UTC
Please port to py3.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-09-01 10:04:23 UTC
ping.
Comment 2 Simson 2020-09-27 11:21:56 UTC
This is a C++ program. It does not use or require python...
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-27 11:51:52 UTC
(In reply to Simson from comment #2)
> This is a C++ program. It does not use or require python...

That is incorrect:

# scanelf -n `qlist -eo tcpflow`
 TYPE   NEEDED FILE
ET_DYN libpython2.7.so.1.0,libhttp_parser.so.2.9,libcap-ng.so.0,libpcap.so.1,libcairo.so.2,libsqlite3.so.0,libcrypto.so.1.1,libz.so.1,libstdc++.so.6,libm.so.6
Comment 4 Michael Perlov 2020-09-27 12:05:09 UTC
Created attachment 662641 [details]
Version bump without python eclass

1.5.2-r1 ebuild inherits python-single-r1

Could it be just dropped from ebuild? I've tried to build without this python stuff and it worked well.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-27 12:16:46 UTC
Apparently autotools usage is only required in so far as that no configuration mechanism in the cmake files generates config.h.in, but cmake nevertheless expects it.

So we'd need to run autotools src_configure() to generate config.h.in and then have cmake take over in src_compile().
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-27 12:17:30 UTC
(In reply to Michael Perlov from comment #4)
> Created attachment 662641 [details]
> Version bump without python eclass
> 
> 1.5.2-r1 ebuild inherits python-single-r1
> 
> Could it be just dropped from ebuild?

No.

>I've tried to build without this
> python stuff and it worked well.

Because you still had python2 installed.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-27 12:23:28 UTC
(In reply to Jeroen Roovers from comment #5)

cmake also expects a local (bundled) copy of http-parser.
Comment 8 Simson 2020-09-27 13:35:25 UTC
My error! Apparently there is now a module that links with python2. We will remove it.
Comment 9 Simson 2020-09-28 00:42:30 UTC
Okay, I just pushed a tcpflow 1.6.0 which removes scan_python. I have not made a new release, however. I want to get GitHub Actions reporting no errors first. However, it compiles on my Mac and it should compile on your system.
Comment 10 Simson 2020-09-28 00:43:16 UTC
(In reply to Jeroen Roovers from comment #7)
> (In reply to Jeroen Roovers from comment #5)
> 
> cmake also expects a local (bundled) copy of http-parser.

Is there a problem with this?
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-28 09:31:56 UTC
(In reply to Simson from comment #10)
> (In reply to Jeroen Roovers from comment #7)
> > (In reply to Jeroen Roovers from comment #5)
> > 
> > cmake also expects a local (bundled) copy of http-parser.
> 
> Is there a problem with this?

Well, it complicates the (e)build script and it pulls in more dependencies, that's all.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-28 09:32:44 UTC
(In reply to Jeroen Roovers from comment #11)
> (In reply to Simson from comment #10)
> > (In reply to Jeroen Roovers from comment #7)
> > > (In reply to Jeroen Roovers from comment #5)
> > > 
> > > cmake also expects a local (bundled) copy of http-parser.
> > 
> > Is there a problem with this?
> 
> Well, it complicates the (e)build script and it pulls in more dependencies,
> that's all.

I.e. when libhttp_parser is already present on the system, no local (bundled) copy should be needed at all.
Comment 13 Larry the Git Cow gentoo-dev 2020-10-26 07:39:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07151b2923151018c1ce068b0793fd120f3d8e4d

commit 07151b2923151018c1ce068b0793fd120f3d8e4d
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-10-26 07:35:39 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-10-26 07:39:04 +0000

    net-analyzer/tcpflow: Remove last-rited pkg
    
    Closes: https://bugs.gentoo.org/735392
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 net-analyzer/tcpflow/Manifest                      |  3 --
 .../files/tcpflow-1.5.0_alpha-libcapng.patch       | 13 -----
 .../tcpflow/files/tcpflow-1.5.2-gentoo.patch       | 61 ----------------------
 net-analyzer/tcpflow/metadata.xml                  | 11 ----
 net-analyzer/tcpflow/tcpflow-1.5.2-r1.ebuild       | 60 ---------------------
 profiles/package.mask                              |  1 -
 6 files changed, 149 deletions(-)
Comment 14 Adrian 2020-10-26 07:50:52 UTC
wasn't the upstream maintainer actually helping to fix this problem? :/
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-26 08:54:42 UTC
(In reply to Adrian from comment #14)
> wasn't the upstream maintainer actually helping to fix this problem? :/

Yeah, it looks like we could restore this actually with a bump.
Comment 16 Simson 2020-11-24 05:53:45 UTC
Hi. I just posted tcpflow 1.6.1 on github.com. It removes the python2 dependency.
Comment 17 Simson 2020-11-24 05:54:44 UTC
It's just a patch. I'm doing a complete rewrite of tcpflow and bulk_extractor, but I wanted to get out this fix for you.
Comment 18 Adrian 2020-12-07 15:18:18 UTC
*bump* any chance the python-less version can be restored?
Comment 20 Skruppy 2021-02-12 06:51:47 UTC
(In reply to Michael Perlov from comment #19)
> Here is 1.6.1 ebuild, based on
> https://github.com/simsong/tcpflow/commit/
> a5965b11a332fe908ab1ed136b14803920e8ecdb :
> 
> https://github.com/Perlovka/portage-overlay/tree/master/net-analyzer/tcpflow

This ebuild works for me (tested with no use flags set).
I also didn't catch any QC messages.
Comment 21 Larry the Git Cow gentoo-dev 2021-02-12 15:39:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61e6ac60c4a99110f68f02dbc16556e1a493b3d3

commit 61e6ac60c4a99110f68f02dbc16556e1a493b3d3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-02-12 15:38:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-02-12 15:39:02 +0000

    net-analyzer/tcpflow: restore package with 1.6.1 (python 3)
    
    Closes: https://bugs.gentoo.org/735392
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/tcpflow/Manifest                      |  3 +
 .../files/tcpflow-1.5.0_alpha-libcapng.patch       | 13 +++++
 .../tcpflow/files/tcpflow-1.5.2-gentoo.patch       | 64 ++++++++++++++++++++++
 net-analyzer/tcpflow/metadata.xml                  | 11 ++++
 net-analyzer/tcpflow/tcpflow-1.6.1.ebuild          | 63 +++++++++++++++++++++
 5 files changed, 154 insertions(+)
Comment 22 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-12 15:40:49 UTC
(In reply to Simson from comment #17)
> It's just a patch. I'm doing a complete rewrite of tcpflow and
> bulk_extractor, but I wanted to get out this fix for you.

Thanks a bunch for doing this. The main guy working on this package retired but I've added it now.