Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 805965 - dev-python/PyQt5: Build method outdated (configure.py instead of sip-build)
Summary: dev-python/PyQt5: Build method outdated (configure.py instead of sip-build)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL: https://www.mobileread.com/forums/sho...
Whiteboard:
Keywords:
Depends on:
Blocks: 793986 794679 797571 799365 800233
  Show dependency tree
 
Reported: 2021-08-01 13:24 UTC by Chris Pritchard
Modified: 2021-09-13 21:27 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Pritchard 2021-08-01 13:24:53 UTC
The method gentoo uses to build dev-python/PyQt5 appears to be outdated meaning important bindings are not built (see forum thread for issues when building calibre). Prevents #794679, #800233 and #793986 from being closed.

Reproducible: Always

Steps to Reproduce:
1. build dev-python/PyQt5
2. ls /usr/lib/<python-version>/site-packages/PyQt5/ and note the "bindings" directory is not present
Actual Results:  
Unable to build certain projects relying on PyQt5

Expected Results:  
Bindings should be built correctly
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2021-08-01 18:39:15 UTC
I've actually been (slowly) working on this for several weeks in a local branch. I have a working ebuild for PyQt5 but still haven't found much time to test the reverse deps. So I propose the following: I will go ahead and commit my ebuild (masked) and then you can submit any changes/improvements you may have by rebasing your PR. Also, testing of reverse deps would be greatly appreciated.
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2021-08-01 18:44:13 UTC
(In reply to Chris Pritchard from comment #0)
> 2. ls /usr/lib/<python-version>/site-packages/PyQt5/ and note the "bindings"
> directory is not present
Well, they're just installed in a different place (the old default path in fact). Upstream doesn't want to provide an option to specify where to look for the .sip files, which would have provided a smoother upgrade path, so...
Comment 3 Larry the Git Cow gentoo-dev 2021-08-02 00:34:58 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aa52a65922086d146abaffb410a84f8ad91c048

commit 4aa52a65922086d146abaffb410a84f8ad91c048
Author:     Davide Pesavento <pesa@gentoo.org>
AuthorDate: 2021-08-02 00:33:25 +0000
Commit:     Davide Pesavento <pesa@gentoo.org>
CommitDate: 2021-08-02 00:34:31 +0000

    dev-python/PyQt5: add 5.15.5_pre2107091435, EAPI 8
    
    Switched the build system to use sip-build + PyQt-builder
    instead of the deprecated configure.py
    
    Bug: https://bugs.gentoo.org/805965
    Closes: https://bugs.gentoo.org/797535
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Davide Pesavento <pesa@gentoo.org>

 dev-python/PyQt5/Manifest                          |   1 +
 dev-python/PyQt5/PyQt5-5.15.5_pre2107091435.ebuild | 190 +++++++++++++++++++++
 profiles/package.mask                              |   1 +
 3 files changed, 192 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2021-08-15 07:46:28 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3505313b1bc80620f331af7d76f8c23eb76a32a3

commit 3505313b1bc80620f331af7d76f8c23eb76a32a3
Author:     Chris Pritchard <chris@christopherpritchard.co.uk>
AuthorDate: 2021-08-15 07:35:32 +0000
Commit:     Davide Pesavento <pesa@gentoo.org>
CommitDate: 2021-08-15 07:46:23 +0000

    dev-python/PyQtWebEngine: add 5.15.5_pre2108100905, EAPI 8
    
    Switch build system to sip-build
    
    Bug: https://bugs.gentoo.org/805965
    Closes: https://github.com/gentoo/gentoo/pull/21854
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Chris Pritchard <chris@christopherpritchard.co.uk>
    Signed-off-by: Davide Pesavento <pesa@gentoo.org>

 dev-python/PyQtWebEngine/Manifest                  |  1 +
 .../PyQtWebEngine-5.15.5_pre2108100905.ebuild      | 76 ++++++++++++++++++++++
 profiles/package.mask                              |  1 +
 3 files changed, 78 insertions(+)