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 1840234

Summary: python-apsw fails to build with Python 3.9: testScalarFunctions fails (possibly related to new sqlite)
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-apswAssignee: Denis Fateyev <denis>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, denis, i, kevin, maci, mhroncok, mplch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-30 22:56:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1839826    
Bug Blocks: 1785415    

Description Miro Hrončok 2020-05-26 15:36:06 UTC
python-apsw fails to build with Python 3.9.0b1:


======================================================================
FAIL: testScalarFunctions (tests.APSW)
Verify scalar functions
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/apsw-3.31.1-r1/tests.py", line 1325, in testScalarFunctions
    self.assertEqual(c.execute("select deterministic()=deterministic()").fetchall()[0][0], 1)
AssertionError: 0 != 1
----------------------------------------------------------------------
Ran 87 tests in 121.739s
FAILED (failures=1)


This is possibly related to bz1839826


For the build logs, see:
https://koji.fedoraproject.org/koji/taskinfo?taskID=45016933

For all our attempts to build python-apsw with Python 3.9, see:
https://koji.fedoraproject.org/koji/packageinfo?packageID=14961

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.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

(However, python-apsw fails to build in our copr for unrelated reason.)

The real Python 3.9 rebuild is in progress in a Koji side tag.

If you fix this bug, please don't rebuild the package in regular rawhide, but do it in the side tag with:

    $ fedpkg build --target=f33-python

The rebuild is progressing slowly and it is possible this package won't have all the required build dependencies yet. If that's the case, please just leave the fix committed and pushed and we will eventually rebuild it for you.

You are not asked to go and try rebuild all the missing dependencies yourself. If you know there is a bootstrap loop in the dependencies, let me know and we can untangle it together.

If you want to test your fix or reproduce the failure, you can still use the Copr repo mentioned above.

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. A build failure prevents us from rebuilding 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 Miro Hrončok 2020-05-29 07:11:43 UTC
Python 3.9 update: The f33-python side tag is currently being merged.

New builds in f33-python are no longer possible, but python3 is not yet updated to Python 3.9 in rawhide. You can check when Python is Python 3.9 with:

    $ koji wait-repo f33-build --build python3.9-3.9.0~b1-3.fc3

And build the packages normally after that.

Comment 2 Kevin Fenzi 2020-05-29 21:15:24 UTC
https://github.com/rogerbinns/apsw/commit/e19b2f2ac49d5daa7c6e0bde54441d0fa417ec7c.patch (already upstream) seems to fix this?

Dennis: can you do a build with that, or would you like me to, or would you prefer to wait?

This blocks calibre.

Comment 3 Denis Fateyev 2020-05-29 21:37:37 UTC
Roger is preparing a new release: https://github.com/rogerbinns/apsw/commit/5e4c3e5488c311b72b7b182d3455e118bf2dafa2
so it's better wait for a couple of days.