Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81176 - games-board/pysol-4.82 fails with Python 2.4
Summary: games-board/pysol-4.82 fails with Python 2.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-07 16:18 UTC by David Ripton
Modified: 2005-06-24 06:36 UTC (History)
0 users

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 David Ripton 2005-02-07 16:18:51 UTC
 
Comment 1 David Ripton 2005-02-07 16:42:37 UTC
The games-board/pysol-4.82 ebuild fails if Python 2.4 is installed.  This is a packaging problem, not an actual compatibility problem; if one installs PySol from source it works fine with 2.4.

"emerge pysol" works fine, but then:

$ pysol
/usr/bin/pysol: could not find the file 'pysol_24.pyc' !

The problem is that it installs only .pyc files (which are not portable across Python versions) instead of .py files.  And no .pyc file for 2.4 is installed:

$ qpkg -l -nc pysol |grep "\.py"
/usr/share/pysol/4.82/pysol_15.pyc
/usr/share/pysol/4.82/pysol_16.pyc
/usr/share/pysol/4.82/pysol_20.pyc
/usr/share/pysol/4.82/pysol_21.pyc
/usr/share/pysol/4.82/pysol_22.pyc
/usr/share/pysol/4.82/pysol_23.pyc

This is a classic binaries-are-brittle problem.  IMO the ebuild should distribute the .py files and build the .pyc files dynamically on install, as is done with other Python ebuilds, and 99% of other Gentoo ebuilds.
Comment 2 Patrick Fourniols 2005-06-09 02:05:45 UTC
a workaround is to unpack somewhere pysol-4.82-src.tar.bz2 and to run:
python <somewhere>/pysol-4.82/src/pysol.py if you want like me play absolutly a
bit ;)
pysol must be merged ;)
Comment 3 SpanKY gentoo-dev 2005-06-23 18:03:34 UTC
4.82-r1 now installs with the source code
Comment 4 David Ripton 2005-06-24 05:44:10 UTC
Confirm that it now installs correctly.  But I had permission problems that
prevented non-root users in the games group from playing.  

A manual "chgrp -R games /usr/games/lib/pysol" fixed the problem -- some files
had group permissions, but the group was "root" rather than "games".

Once I did that, it was playable with Python 2.4.1.  Thanks.
Comment 5 SpanKY gentoo-dev 2005-06-24 06:36:41 UTC
oops, forgot the prepgamesdirs ... thanks for the feedback