Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 634956

Summary: app-portage/etc-proposals - port to PyQt5 or cleanup Qt4 support
Product: Gentoo Linux Reporter: Andreas Sturmlechner <asturm>
Component: Current packagesAssignee: Brian Dolbec <dolsen>
Severity: normal CC: andrius, tools-portage
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 631788    

Description Andreas Sturmlechner gentoo-dev 2017-10-21 09:33:31 UTC
app-portage/etc-proposals has a qt4 USE flag to enable Qt4 support - since Qt4 is dead, this package either needs to be ported to PyQt5 or drop Qt4 support at some point.
Comment 1 Brian Dolbec gentoo-dev 2017-11-20 18:24:36 UTC
I don't know QT at all, so, unless someone puts in the effort to port it, I will have to drop Qt4 from the ebuild.
Comment 2 Andrius Štikonas 2017-11-20 18:43:33 UTC
I can't install PyQt5 t the moment as I've already upgraded to Qt 5.9.2 (and I haven't ever used PyQt myself) but briefly looked at

It looks like porting might be quite simple. Probably less than 15 lines of code changed (like PyQt4->PyQt5 and maybe something with connecting SLOTs).

So ideally, we wouldn't have to drop Qt4.
Comment 3 Andrius Štikonas 2017-11-20 20:18:49 UTC
ok, I've got PyQt5 working.

How do I start PyQt4 version? All I get is

~ $ python2 /usr/sbin/etc-proposals
Traceback (most recent call last):
  File "/usr/sbin/etc-proposals", line 86, in <module>
    exec(data, new_globals)
  File "<string>", line 11, in <module>
  File "/usr/lib64/python2.7/site-packages/etcproposals/", line 604, in <module>
    State = EtcProposalsState()
  File "/usr/lib64/python2.7/site-packages/etcproposals/", line 566, in __init__
    shelve.Shelf.__init__(self,, 'c'))
  File "/usr/lib64/python2.7/", line 85, in open
    return, flag, mode)
gdbm.error: (2, 'No such file or directory')
Comment 4 Andreas Sturmlechner gentoo-dev 2018-03-03 21:34:13 UTC
Considering bug 287861 this should probably just be dropped. No one fixed it since 2012, so it probably won't happen in the next few weeks either.
Comment 5 Larry the Git Cow gentoo-dev 2018-03-04 20:05:02 UTC
The bug has been closed via the following commit(s):

commit 1be2d102568d7d336b1c6d99b1f93b5b89988b2d
Author:     Andreas Sturmlechner <>
AuthorDate: 2018-03-04 20:03:04 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2018-03-04 20:04:40 +0000

    app-portage/etc-proposals: Drop USE=gtk,qt4
    PyQt4 will be gone soon, maybe someone wishes to port to PyQt5 in future.
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-portage/etc-proposals/etc-proposals-1.4.3-r3.ebuild | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)