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 1928036

Summary: python-mapnik fails to build with Python 3.10: psql: symbol lookup error: psql: undefined symbol: PQgssEncInUse, version RHPG_10
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: postgresqlAssignee: Patrik Novotný <panovotn>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anon.amish, devrim, hhorak, jmlich83, mhroncok, panovotn, pkubat, praiskup, tgl, thrnciar, tom
Target Milestone: ---Keywords: Reopened
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: 2021-02-12 12:55:30 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:    
Bug Blocks: 1890881    

Description Tomáš Hrnčiar 2021-02-12 08:11:56 UTC
python-mapnik fails to build with Python 3.10.0a5.

+ __TRAP_ACTIONS='pgtests_cleanup '
+ __pgtests_start
+ pg_ctl -D /builddir/build/BUILD/python-mapnik-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b/datadir -l /builddir/build/BUILD/python-mapnik-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b/datadir/start.log start -o '-k /tmp -p 47276' -w
waiting for server to start.... done
server started
+ __TRAP_ACTIONS='pgtests_stop pgtests_cleanup '
+ __pgtests_create_admins_db
+ createdb -h /tmp mockbuild --owner mockbuild -p 47276
+ __pgtests_passwd mockbuild mockbuild
+ psql -d postgres --set=user=mockbuild --set=pass=mockbuild -tA
psql: symbol lookup error: psql: undefined symbol: PQgssEncInUse, version RHPG_10
+ __trap_cb
+ IFS=' '
+ for __func in $__TRAP_ACTIONS
+ pgtests_stop
+ pg_ctl stop -D /builddir/build/BUILD/python-mapnik-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b/datadir -w
waiting for server to shut down.... done
server stopped
+ __clean_trap_action pgtests_stop
+ __new_actions=
+ for __action in $__TRAP_ACTIONS
+ test pgtests_stop = pgtests_stop
+ :
+ for __action in $__TRAP_ACTIONS
+ test pgtests_cleanup = pgtests_stop
+ __new_actions='pgtests_cleanup '
+ __TRAP_ACTIONS='pgtests_cleanup '
+ for __func in $__TRAP_ACTIONS
+ pgtests_cleanup
+ :
+ rm -r /builddir/build/BUILD/python-mapnik-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b/datadir
+ __clean_trap_action pgtests_cleanup
+ __new_actions=
+ for __action in $__TRAP_ACTIONS
+ test pgtests_cleanup = pgtests_cleanup
+ :
+ __TRAP_ACTIONS=
error: Bad exit status from /var/tmp/rpm-tmp.gmSXhd (%check)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01958510-python-mapnik/

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

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 Tom Hughes 2021-02-12 08:21:01 UTC
This appears to be because you're using a broken version of psql and nothing to do with this package.

Comment 2 Miro Hrončok 2021-02-12 08:25:39 UTC
I wonder where is the problem thou. What does broken version of psql mean? We use psql from rawhide, rebuilt for Python 3.10.

Honza, could you please help here?

Comment 3 Tom Hughes 2021-02-12 09:06:07 UTC
Well it looks like it is linked against the wrong version of libpq or something - maybe it just needs a rebuild, or maybe it was a transient issue.

There's a whole thread on devel about playing around with how libpq is built I think?

Comment 4 Miro Hrončok 2021-02-12 12:55:30 UTC
Another rebuild of postgresql indeed helped. Sorry for the noise.