Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110121 - WW2 submarine simulation ebuild request
Summary: WW2 submarine simulation ebuild request
Status: RESOLVED DUPLICATE of bug 130023
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://dangerdeep.sourceforge.net
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-10-22 02:52 UTC by Wojciech Myrda
Modified: 2006-09-29 05:31 UTC (History)
4 users (show)

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


Attachments
dangerdeep-0.1.0.initial.ebuild (dangerdeep-0.1.0.ebuild,1.45 KB, text/plain)
2005-10-22 02:58 UTC, Wojciech Myrda
Details
Ebuild with unix line breaks (dangerdeep-0.1.0.ebuild,1.39 KB, text/plain)
2005-10-22 17:09 UTC, Roel Brook
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Myrda 2005-10-22 02:52:10 UTC
WW2 submarine simulation game that reached next milestone with new version. It
is considered by developers still in alpha stage, but being very playable. I can
confirm that it is.
Comment 1 Wojciech Myrda 2005-10-22 02:58:25 UTC
Created attachment 71184 [details]
dangerdeep-0.1.0.initial.ebuild

This is ebuild I made. It works if FETURES="-sandbox" is used. 
However,
It needs fixing to work with sandbox for it which extends my knowledge in that
matter. Other thing that I have in there that needs to be fixed (commented out
for that reason) is use of system's CFLAGS. It is way over my head and I would
kindly request others to look at it.

If these two things are done I do not see a reason not to include it in portage
;)

Regards.
Comment 2 UncleOwen 2005-10-22 14:22:51 UTC
That ebuild seems to have windows line endings.
Comment 3 Roel Brook 2005-10-22 17:09:13 UTC
Created attachment 71233 [details]
Ebuild with unix line breaks

(used dos2unix on the ebuild)

I'm getting the following error after installing the game with this ebuild:
Caught exception: texture "/usr/share/games/textures/background.png" error:
read_from_file: failed to load

The file is actually located in /usr/share/games/dangerdeep/textures/

Unfortunatly, I don't know the first thing about the "scons" install system, so
I'm afraid I can't help to fix it...
Comment 4 Wojciech Myrda 2005-10-23 00:41:41 UTC
Comment to comment #3

It's fortunate that the error You got is easy to fix. I acctualy had it fixed
already, just somehow I managed to upload older ebuild than the one I acctually
used. What has to be changed is a lline in "src_compile()" function from:

              installdatadir=${GAMES_DATADIR}/  || die "scons failed"
              installdatadir=${GAMES_DATADIR}/${PN}  || die "scons failed"

For now I am trying to figure out how to fix that sandbox issue and if I do then
I would upload new ebuild.

P.S. As for "windows line breaks" that has to be because I do most of work
remotely from the windows machine far far away ;)
Comment 5 Wojciech Myrda 2005-10-23 01:05:52 UTC
Hi.
I solved sandox issue :) Taking ideas from bug #98094 I added this
"SConsignFile()" (without quotations) to the SConstruct file in the main
directory of the game source. I did it manually since patch creation is not my
strong side ;)
This:
        print "Compiling for Unix/Posix/Linux Environment"
        env = Environment(ENV = os.environ)
        env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL'])
        libpath = ['/usr/X11R6/lib']
        gllibs = ['GL', 'GLU']
        sdllibs = ['SDL', 'SDL_image']
I changed into this:
        print "Compiling for Unix/Posix/Linux Environment"
        env = Environment(ENV = os.environ)
        env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL'])
        SConsignFile()
        libpath = ['/usr/X11R6/lib']
        gllibs = ['GL', 'GLU']
        sdllibs = ['SDL', 'SDL_image']

If someone would be kind enough to present it in the patch form it will be nice

Only remaining issue is cflags use. Help greatly appreciated
Comment 6 Wojciech Myrda 2005-10-23 12:22:15 UTC
Hi again

1) CCFLAGS issue was easier to solve than one would have thought. All needed to
be done is to change this:
               -e "/CCFLAGS/s:-O2:${CXXFLAGS// /\' ,\'}:g" \
into this:
               -e "/ccflags/s:-O2:${CXXFLAGS// /\' ,\'}:g" \

2) I have managed to create a patch to fix sandbox, but for now I gave up on
trying to get it applied trough the ebuild as I fail at every attempt to do so
as it never seems to find a file to patch.
What probably needs fixing is this line:
        epatch "${FILESDIR}"/${P}-gentoo-compile.patch

PATCH:
--- SConstruct.orig 2005-10-17 20:45:59.000000000 +0200
+++ SConstruct 2005-10-23 17:28:19.000000000 +0200
@@ -68,6 +68,7 @@
        print "Compiling for Unix/Posix/Linux Environment"
        env = Environment(ENV = os.environ)
        env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL'])
+       SConsignFile()
        libpath = ['/usr/X11R6/lib']
        gllibs = ['GL', 'GLU']
        sdllibs = ['SDL', 'SDL_image']


p.s. it's almost there ;)
Comment 7 Tristan Heaven (RETIRED) gentoo-dev 2006-09-29 05:31:32 UTC

*** This bug has been marked as a duplicate of 130023 ***