Bug 1323248 - ldns: Provide a Python 3 subpackage
Summary: ldns: Provide a Python 3 subpackage
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ldns
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Menšík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3
TreeView+ depends on / blocked
 
Reported: 2016-04-01 15:52 UTC by Tomas Orsava
Modified: 2020-01-09 02:29 UTC (History)
5 users (show)

Fixed In Version: ldns-1.7.0-11.fc27
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-13 23:13:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomas Orsava 2016-04-01 15:52:21 UTC
Upstream, this software supports Python 3. Please provide a Python 3
package for Fedora.


According to the Python packaging guidelines [0], software must be
packaged for Python 3 if upstream supports it.
The guidelines give detailed information on how to do this, and even
provide an example spec file [1].

The current best practice is to provide subpackages for the two Python
versions (called "Common SRPM" in the guidelines). Alternatively, if
nothing depends on your Python2 package, you can just switch to Python 3
entirely.

It's ok to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 24 as well.


If anything is unclear, or if you need any kind of assistance with the
porting, you can ask on IRC (#fedora-python on Freenode), or reply here.
We'll be happy to help!


[0] https://fedoraproject.org/wiki/Packaging:Python
[1] https://fedoraproject.org/wiki/Packaging:Python#Example_common_spec_file

Comment 1 Dominika Krejčí 2016-06-28 12:53:16 UTC
Hello Paul,

Do you need any help adding Python 3 support to the RPM?

If you need more instructions, a [guide] for porting Python-based RPMs is available.

[guide] http://python-rpm-porting.readthedocs.org/

Comment 2 Jan Kurik 2016-07-26 04:57:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 3 Fedora End Of Life 2017-11-16 19:36:21 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2017-12-12 10:53:26 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Miro Hrončok 2017-12-12 12:15:57 UTC
This is still relevant. Paul, coul you please respond?

Comment 6 Petr Menšík 2018-01-31 19:22:00 UTC
Hi Miro,

I would try to convert it to python3. However I met some problems with autogenerated library flags from swig source. I am not quite good at it, I would like some advice on that.

My try is prepared at https://src.fedoraproject.org/fork/pemensik/rpms/ldns/branch/master-python3

ldns-config contains CFLAGS and LDFLAGS. It will conflict with python2 and python3 package at the same time, because it will be different for each build. But that is autogenerated by configure. Is there any good practice to handle such conflicts?

Comment 7 Petr Menšík 2018-01-31 19:37:24 UTC
I copr repository for it as well.

https://copr.fedorainfracloud.org/coprs/pemensik/ldns/

Comment 8 Fedora End Of Life 2018-02-20 15:24:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 9 Petr Menšík 2018-02-22 17:01:39 UTC
I were able to fix multilib conflict in python3 version. I swapped build of python3 into mail build and python2 build into separate copy. ldns-config will not more contain flags for python libraries but I think they were never used from it. If there is known place that builds against ldns and requires its python libraries, please let me know.

Many python samples of current ldns do not work with python3, but that is another issue to fix. python3-ldns package seems to be in a good shape.

Comment 10 Fedora Update System 2018-03-02 10:23:36 UTC
ldns-1.7.0-11.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d1151fe869

Comment 11 Fedora Update System 2018-03-02 11:07:17 UTC
ldns-1.7.0-6.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-21efb5cc2d

Comment 12 Fedora Update System 2018-03-02 16:53:36 UTC
ldns-1.7.0-6.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-21efb5cc2d

Comment 13 Fedora Update System 2018-03-02 17:34:21 UTC
ldns-1.7.0-11.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d1151fe869

Comment 14 Fedora Update System 2018-03-13 23:13:32 UTC
ldns-1.7.0-11.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.