Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381587 - gnome-extra/gnome-dvb-daemon-0.2.2 uses package build system to byte-compile Python
Summary: gnome-extra/gnome-dvb-daemon-0.2.2 uses package build system to byte-compile ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-02 16:59 UTC by Chris Mayo
Modified: 2011-09-07 22:00 UTC (History)
1 user (show)

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


Attachments
ebuild patch (gnome-dvb-daemon-0.2.2-pycompile.patch,656 bytes, text/plain)
2011-09-02 16:59 UTC, Chris Mayo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2011-09-02 16:59:11 UTC
Created attachment 285367 [details]
ebuild patch

Attached patch disables Python byte-compilation supplied with gnome-dvb-daemon and gets portage to do it.
Comment 1 Matt Turner gentoo-dev 2011-09-03 01:59:27 UTC
Thanks for the patch.

The python stuff is foreign to me. Maybe you could explain?
Comment 2 Chris Mayo 2011-09-03 12:51:46 UTC
It's considered a good idea not to let the package compile its own Python:
http://www.gentoo.org/proj/en/Python/developersguide.xml#doc_chap2_sect8

to ensure a platform consistent way of generating the byte code. One benefit I like is that if you do a:
 qlist gnome-extra/gnome-dvb-daemon
you only see the .py files and not all the compiled versions too - even though they are still managed by portage.
Comment 3 Matt Turner gentoo-dev 2011-09-06 18:40:31 UTC
Arfrever said the patch looks good.

Thanks a lot! :)
Comment 4 Chris Mayo 2011-09-07 21:52:49 UTC
Changes actually applied in the tree don't work for me.
The:
   ln -s $(type -P true) py-compile

fails because py-compile already exists. Other ebuilds in the tree that do this put this line before:
   mv py-compile py-compile.orig.

Others have ln -sf which seems to work OK for me.
Comment 5 Matt Turner gentoo-dev 2011-09-07 22:00:06 UTC
Ah! Crap!

Thanks for pointing that out, that was totally my fault.

Fixed.