Bug 251126 - Resurrect databases/py-rrdtool_lgpl
Summary: Resurrect databases/py-rrdtool_lgpl
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2020-11-14 04:28 UTC by darius
Modified: 2020-11-15 08:54 UTC (History)
3 users (show)

See Also:

Port files (911 bytes, application/x-gzip)
2020-11-14 04:28 UTC, darius
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description darius 2020-11-14 04:28:48 UTC
Created attachment 219669 [details]
Port files

Resurrect py-rrdtool_lgpl based on https://github.com/commx/python-rrdtool and take maintainership.
Comment 1 Rainer Hurling freebsd_committer 2020-11-14 08:16:05 UTC
Hi Darius,

The reason this port was removed was, that it uses EOLed python27.

Did you try if it works with Python >= 3.6?
Comment 2 darius 2020-11-14 11:03:52 UTC
Yes, I tested this with Python 3.7 and it work for my use case (a Python script to log stats from my VDSL modem)
Comment 3 daniel.engberg.lists 2020-11-14 22:27:39 UTC
Please rework the Makefile, use portlint and see below.
As far as I can tell this falls under https://wiki.freebsd.org/Python/PortsPolicy and all of its recommendations.
Please submit patches as .patch of .diff files, not compressed.
Comment 4 Rainer Hurling freebsd_committer 2020-11-15 06:28:47 UTC
After looking at it a bit longer, I'm not sure if it's right to revive a port in this case. The new port comes from completely different sources, but has the same function.

Also, I think that in case of a new port a naming scheme like py-python-rrdtool or maybe py-rrdtool would be more appropriate.
Comment 5 darius 2020-11-15 06:41:59 UTC
Is it possible to create some kind of 'sub port' to rrdtool that just compiles the Python extensions?
That way non-Python users are not lumbered with them but they are available via pkg.
I can do the work but if you are aware of a port I can crib the idea from that would be very helpful.
Comment 6 Gleb Popov freebsd_committer 2020-11-15 08:54:35 UTC
(In reply to darius from comment #5)
> Is it possible to create some kind of 'sub port' to rrdtool that just compiles the Python extensions?

I don't see anything else besides the python extension, actually.

Anyways, the port should leverage usual USES=python infrastructure and get distribution files from PyPI (CHEESESHOP).

The port would look much like devel/py-hg-evolve that rhurlin@ ported recently.