Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82347 - childsplay-0.81.7.ebuild (new version)
Summary: childsplay-0.81.7.ebuild (new version)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: High enhancement
Assignee: Gentoo Games
URL: http://childsplay.sourceforge.net
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-17 06:07 UTC by Mark Charlebois
Modified: 2006-10-07 09:55 UTC (History)
6 users (show)

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


Attachments
childsplay-0.80.1.1.ebuild (new version) (childsplay-0.80.1.1.ebuild,2.31 KB, text/plain)
2005-02-17 06:10 UTC, Mark Charlebois
Details
Patch to make install paths comply with gentoo filesystem (CPConstants.py.patch,1.07 KB, patch)
2005-02-17 06:12 UTC, Mark Charlebois
Details | Diff
Minor bug fix to the findsound2 module for childsplay (findsound2.py.patch,538 bytes, patch)
2005-02-17 06:13 UTC, Mark Charlebois
Details | Diff
childsplay-0.80.1.1.ebuild (updated version) (childsplay-0.80.1.1.ebuild,2.33 KB, text/plain)
2005-02-17 21:32 UTC, Mark Charlebois
Details
childsplay/childsplay-0.80.1.1.ebuild (path update) (childsplay-0.80.1.1.ebuild,2.31 KB, text/plain)
2005-02-18 07:54 UTC, Mark Charlebois
Details
CPConstants.py.patch (updated) (CPConstants.py.patch,1.04 KB, patch)
2005-02-18 07:56 UTC, Mark Charlebois
Details | Diff
childsplay-0.80.2.ebuild (childsplay-0.80.2-r4.ebuild,2.03 KB, text/plain)
2005-07-24 20:16 UTC, Karl Tomlinson
Details
childsplay-0.81.2.ebuild (childsplay-0.81.2.ebuild,3.15 KB, patch)
2006-01-17 14:47 UTC, Shane Hathaway
Details | Diff
default-locale.patch (default-locale.patch,385 bytes, patch)
2006-01-17 14:47 UTC, Shane Hathaway
Details | Diff
Childsplay 0.81.5 ebuild (childsplay-0.81.5.ebuild,3.20 KB, text/plain)
2006-02-12 11:32 UTC, Mathy Vanvoorden
Details
letters-trans-path.patch.bz2 (letters-trans-path.patch.bz2,403 bytes, patch)
2006-02-12 11:33 UTC, Mathy Vanvoorden
Details | Diff
childsplay-0.81.8.ebuild (childsplay-0.81.8.ebuild,3.32 KB, text/plain)
2006-04-11 22:58 UTC, Shane Hathaway
Details
letters-trans-path.patch (letters-trans-path.patch,627 bytes, patch)
2006-04-11 23:00 UTC, Shane Hathaway
Details | Diff
files/childsplay (childsplay,99 bytes, text/plain)
2006-04-11 23:05 UTC, Shane Hathaway
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Charlebois 2005-02-17 06:07:21 UTC
Hi,

I have created a new ebuild to update from childsplay-0.68 to childsplay-0.80.1.1. There are 2 patches that need to be applied: one for the install paths and the other to fix a minor bug in one of the games. Please find attached all three files (ebuild and 2 patches).

Regards,

Mark
Comment 1 Mark Charlebois 2005-02-17 06:10:52 UTC
Created attachment 51431 [details]
childsplay-0.80.1.1.ebuild (new version)
Comment 2 Mark Charlebois 2005-02-17 06:12:09 UTC
Created attachment 51432 [details, diff]
Patch to make install paths comply with gentoo filesystem
Comment 3 Mark Charlebois 2005-02-17 06:13:05 UTC
Created attachment 51433 [details, diff]
Minor bug fix to the findsound2 module for childsplay
Comment 4 Dmitry S. Makovey 2005-02-17 15:56:19 UTC
it definetely needs more patching - I tried install with provided patches & ebuild and paths are all screwed up - no fonts, childsplay complainig about absent childsplayrc...
Comment 5 Mark Charlebois 2005-02-17 21:32:22 UTC
Created attachment 51486 [details]
childsplay-0.80.1.1.ebuild (updated version)

I have fixed the missing rc files. Please indicate what other problems are
present. I do not see any font issue as was previously reported.

I have the following fonts installed on my system:

media-fonts/corefonts 
media-fonts/freefonts 
media-fonts/gnu-gs-fonts-std 
media-fonts/ttf-bitstream-vera
Comment 6 Mark Charlebois 2005-02-18 07:54:22 UTC
Created attachment 51526 [details]
childsplay/childsplay-0.80.1.1.ebuild (path update)

The "screwed up paths" have now been cleaned up.
I see no warnings or errors while running other than the initial default
assignment to english locale.
The updated version of the patch for CPConstants.py is needed to go along with
this file.
Comment 7 Mark Charlebois 2005-02-18 07:56:23 UTC
Created attachment 51528 [details, diff]
CPConstants.py.patch (updated)

This is the fix for the "screwed up paths". Please let me know of any other
warnings or errors you detect. Sorry about the initial bugs.

Regards,

Mark
Comment 8 Dmitry S. Makovey 2005-02-18 08:04:19 UTC
regadring fonts problem - try to run it in terminal with FB. I'm running it that way on my son's computer as it refuses to go into 800x600 in xorg and frankly it's  quite slow to add xorg into the mix.
Comment 9 vincent_delft 2005-03-19 16:25:07 UTC
Works fine on my side, but I've got 2 remarks.

1):patch on findsound2 is no more required. Authors have adapted the code.

2):In the ebuild, I propose to use ${PV} instead of "hardcoded" the plugin version number.
line 10: plugins-${PV}.tgz
line 27: _plugins-${PV}

Thanks.
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2005-03-20 23:08:31 UTC
*** Bug 56631 has been marked as a duplicate of this bug. ***
Comment 11 Karl Tomlinson 2005-07-24 20:16:46 UTC
Created attachment 64227 [details]
childsplay-0.80.2.ebuild

CPConstants.py in childsplay-0.80.2 requires BASEPATH.py.
Rather than set up our own BASEPATH.py (or a different CPConstants.py) and have
our own install script,
it seemed (to me) easier to modify childsplay's install scripts to install into
${D} and use the paths in games.eclass.

This version seems to work fine under X, but with a framebuffer it still has
font problems.
However childsplay-0.68 doesn't work well with a framebuffer either:  the score
is readable at least but the background is not present so its buttons are not
visible and clicking where they would be causes the program to exit status 1.
The framebuffer problems seem little reason not to provide a more up to date
version.
(gcompris also doesn't work with a framebuffer but it is up to date in
portage).

I haven't observed any problem with X refusing to go into 800x600.
If the X setup doesn't have a 800x600 mode, it seems to work fine with black
borders.
If you are observing something different, does childsplay --window work better?
Comment 12 Mr. Bones. (RETIRED) gentoo-dev 2005-08-24 15:39:30 UTC
A few comments:

I don't like the symlink from GAMES_DATADIR to GAMES_STATEDIR.  The source needs
to be patched to not write to GAMES_DATADIR.

The install ends up putting files in /usr/share/assetml.  What are they and can
they go in GAMES_DATADIR?

Any way to turn off the nls support?  USE=nls support would be nice.
Comment 13 Scott Jones 2005-10-29 02:37:39 UTC
Are any of these valid reasons not to include these newer ebuilds in portage? 
Portage currently only contains: childsplay-0.68 (02 Sep 2003)
Comment 14 Eddward 2005-12-17 18:38:03 UTC
Hi.  I'm not very familiar with the development side of ebuilds, but I'd be willing to test or help if anyone needs help.  My son likes the game and I'd love to see it kept up to date.  I can follow complicated instructions and I'm decent at debugging.  I just don't to read all the gentoo/portage/ebuild documentation right now and I'm not up on all the gentoo conventions.

Could the ebuild be added and masked for testing?
Comment 15 Mr. Bones. (RETIRED) gentoo-dev 2005-12-17 19:35:39 UTC
not until someone fixes the things mentioned in comment #12
Comment 16 Shane Hathaway 2006-01-17 14:47:00 UTC
Created attachment 77378 [details, diff]
childsplay-0.81.2.ebuild
Comment 17 Shane Hathaway 2006-01-17 14:47:54 UTC
Created attachment 77379 [details, diff]
default-locale.patch

This is used by childsplay-0.81.2.ebuild.
Comment 18 Shane Hathaway 2006-01-17 14:56:13 UTC
The ebuild I just uploaded doesn't use the hairy install scripts provided with Childsplay, it fixes issues with the default locale, and does not try to write to GAMES_DATADIR.

/usr/share/assetml is also used by gcompris.  It could go anywhere, but its current location is probably best.
Comment 19 Shane Hathaway 2006-01-18 10:06:16 UTC
Comment on attachment 77379 [details, diff]
default-locale.patch

--- utils.py.orig       2006-01-17 15:15:01.000000000 -0700
+++ utils.py    2006-01-17 15:33:05.000000000 -0700
@@ -45,6 +45,8 @@
                     lang = os.environ['LANGUAGE'].split(':')[0]
                 else:
                     lang = locale.getdefaultlocale()[0]
+                    if not lang:
+                        lang = 'en'
             except ValueError, info:
                 print >> sys.stderr, info
                 lang = 'en'
@@ -93,6 +95,8 @@
         # This is a fix for systems that set LANGUAGE to ''.
         if lang == '':
             lang = locale.getdefaultlocale()[0]
+            if lang is None:
+                lang = 'en'
     except Exception,info:
         print >> sys.stderr,info
         print "Switching to English"
Comment 20 Karl Tomlinson 2006-01-30 18:21:49 UTC
WFM with 0.81.5, and plugins 0.80.6, thanks, Shane.
Comment 21 Mathy Vanvoorden 2006-02-12 11:28:06 UTC
It didn't WFM. The reason being that letters-trans.py couldn't find the required assetml-file. It probably worked for you guys because it was already on your HD (it didn't look in the image, but in the root fs). Attached a patch to fix this and a new ebuild (for 0.81.5 and plugins 0.80.6)
Comment 22 Mathy Vanvoorden 2006-02-12 11:32:03 UTC
Created attachment 79585 [details]
Childsplay 0.81.5 ebuild

This obsoletes Shane's 0.81.2 ebuild (but I can't obsolete it)
Comment 23 Mathy Vanvoorden 2006-02-12 11:33:15 UTC
Created attachment 79587 [details, diff]
letters-trans-path.patch.bz2

The patch
Comment 24 Shane Hathaway 2006-04-11 20:40:46 UTC
Comment on attachment 77378 [details, diff]
childsplay-0.81.2.ebuild

This ebuild has been superceded.

Incidentally, why haven't the new ebuilds been posted to the portage tree yet?  Are there any Gentoo developers around?
Comment 25 Mr. Bones. (RETIRED) gentoo-dev 2006-04-11 21:17:06 UTC
probably waiting for a working ebuild.

other issue:  patches should be attached as text/plain - having them be binary files is just one more step for people who want to look at the patch.
Comment 26 Shane Hathaway 2006-04-11 22:58:56 UTC
Created attachment 84487 [details]
childsplay-0.81.8.ebuild

This one should work.  Tested on amd64.  Note that there are now two plugin packages included in the ebuild.

If this ebuild looks too complicated, we could try the alternate strategy of editing the install scripts using sed.  Please advise.
Comment 27 Shane Hathaway 2006-04-11 23:00:29 UTC
Created attachment 84488 [details, diff]
letters-trans-path.patch

Needed by the 0.81.8 ebuild.  It's just letters-trans-path.patch.bz2 unpacked.
Comment 28 Shane Hathaway 2006-04-11 23:05:14 UTC
Created attachment 84489 [details]
files/childsplay

This version of the childsplay launch script sets a default locale if there isn't one.  This replaces the default-locale patch.  The author of Childsplay is changing the locale detection code frequently, and the code is still broken; this is a simple workaround.
Comment 29 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-03 13:37:23 UTC
Added to CVS... I apologize to everyone that this took so long to get done.
Comment 30 Shane Hathaway 2006-10-07 09:55:37 UTC
Thank you.