Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1899288 - Python 3:10: nothing provides pkgconfig(python-3.1) needed by pynac-devel-0.7.26-4.fc34
Summary: Python 3:10: nothing provides pkgconfig(python-3.1) needed by pynac-devel-0.7...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pynac
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2020-11-18 20:06 UTC by Miro Hrončok
Modified: 2020-11-18 22:50 UTC (History)
4 users (show)

Fixed In Version: pynac-0.7.26-5.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-18 22:50:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-11-18 20:06:23 UTC
pynac-devel 0.7.26-4.fc34, when built with Python 3.10, requires pkgconfig(python-3.1).


/usr/lib64/pkgconfig/pynac.pc has:

Requires: python-3.1 factory


I see on multiple places that configure uses a truncated value to determine Python version:

$ rg -F 'sys.version' pynac-0.7.26
pynac-0.7.26/aclocal.m4
901:    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
934:    if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
1037:# word of sys.version), in order to cope with versions such as 2.2c1.

pynac-0.7.26/configure
3413:  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
3454:    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
4649:		ver = sys.version.split ()[0]; \
4683:			ver = sys.version.split ()[0]; \
4764:					print (sys.version[:3])"`

pynac-0.7.26/m4/ax_python_devel.m4
93:		ver = sys.version.split ()[[0]]; \
120:			ver = sys.version.split ()[[0]]; \
193:					print (sys.version[[:3]])"`


$ python3.10 -c "import sys; print (sys.version[0:3])"
3.1


Regenerating the files with autoreconf should fix them.


For all our attempts to build pynac with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/pynac/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Jerry James 2020-11-18 22:50:25 UTC
Pull request to fix the one instance of 'sys.version[0:3]' in the sources: https://github.com/pynac/pynac/pull/363

A new build has been done in Rawhide with that patch applied and with regenerated configure files.


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