Summary: | x11-plugins/screenlets-0.1.2 does not work with python3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nils Andresen <nils> |
Component: | Current packages | Assignee: | Desktop Misc. Team <desktop-misc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | desktop-misc, nils |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
epatch for direct python calls
screenlets-0.1.5.ebuild.patch screenlets-0.1.6.ebuild.patch |
Description
Nils Andresen
2013-01-17 11:09:02 UTC
Not directly caus of this problem but connected: If you look at line 866 of /usr/share/screenlets-manager/screenlets-manager.py (this is the creation of an auto-start screenlet) the EXEC is "python -u %s/%sScreenlet.py" IMHO this line should say "python2 -u %s/%sScreenlet.py" Created attachment 335902 [details, diff]
epatch for direct python calls
The attached patch fixes the problem for me by replacing all (well, all I could find anyway) direct calls to "python" by calls to "python2".
euscan reports that 0.1.5 is available. HOMEPAGE appears hard to access right now. Created attachment 335922 [details, diff]
screenlets-0.1.5.ebuild.patch
Would this do?
Oh, according to https://launchpad.net/screenlets version 0.1.6 is available now. :) (In reply to comment #4) Short answer: No :-) Long answer: Kinda... You did multiple thing in that patch, which don't work together... The line: "sed -i $(find src/ -type f) -e 's|exec python|&2|g;s|python -u|python2 -u|g' || die" works nicely in the 0.1.2 ebuild, thanks for that. But you also bumped.. and 0.1.5 seems to depend on dev-python/beautifulsoup-3. After installing that, too I could start screenlets-manager, however all screenslets were gone... Hmm. Seems like all screenlets now reside in [https://launchpad.net/indiv-screenlets] So possibly adding the dependency to beautifulsoup is all that's missing. And a new ebuild for the individual-screenlets ;-) Created attachment 336034 [details, diff]
screenlets-0.1.6.ebuild.patch
The screenlets-0.1.6.ebuild.patch has the correct dependency. However, default screenlets are no longer part of the package.
Fixed in 0.1.6. Thanks for the patch. It was helpful in migrating to the -r1 eclasses. |