Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130023 - Danger from the Deep ebuild
Summary: Danger from the Deep ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://dangerdeep.sourceforge.net/
Whiteboard:
Keywords:
: 110121 130191 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-14 23:48 UTC by Mr. Bones. (RETIRED)
Modified: 2007-03-21 21:41 UTC (History)
9 users (show)

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


Attachments
dangerdeep-0.1.1.ebuild (dangerdeep-0.1.1.ebuild,819 bytes, text/plain)
2006-04-14 23:49 UTC, Mr. Bones. (RETIRED)
Details
games-simulation/dangerdeep-0.1.1.ebuild (dangerdeep-0.1.1.ebuild,1.09 KB, text/plain)
2006-04-17 11:53 UTC, Cristiano Chiucchiolo
Details
files/dangerdeep-destdirs.patch (dangerdeep-destdirs.patch,1.34 KB, patch)
2006-04-17 11:54 UTC, Cristiano Chiucchiolo
Details | Diff
dangerdeep-0.1.1.ebuild (dangerdeep-0.1.1.ebuild,1.20 KB, text/plain)
2006-04-27 22:01 UTC, Tristan Heaven (RETIRED)
Details
dangerdeep-0.1.1-build.patch (dangerdeep-0.1.1-build.patch,1.07 KB, patch)
2006-04-27 22:02 UTC, Tristan Heaven (RETIRED)
Details | Diff
dangerdeep-0.1.1-build.patch (dangerdeep-0.1.1-build.patch,1.11 KB, patch)
2006-04-28 22:57 UTC, Tristan Heaven (RETIRED)
Details | Diff
dangerdeep-0.1.1-build.patch (dangerdeep-0.1.1-build.patch,640 bytes, patch)
2006-04-29 01:17 UTC, Tristan Heaven (RETIRED)
Details | Diff
dangerdeep-0.1.1.ebuild (dangerdeep-0.1.1.ebuild,1.16 KB, text/plain)
2006-08-22 23:18 UTC, Tristan Heaven (RETIRED)
Details
dangerdeep-0.1.1-build.patch (dangerdeep-0.1.1-build.patch,679 bytes, patch)
2006-08-22 23:18 UTC, Tristan Heaven (RETIRED)
Details | Diff
dangerdeep-0.2.0.ebuild (dangerdeep-0.2.0.ebuild,1.27 KB, text/plain)
2006-10-12 13:56 UTC, Matt Lawrence
Details
Updated 0.2.0 ebuild (dangerdeep-0.2.0.ebuild,1.26 KB, text/plain)
2006-10-13 01:21 UTC, Bernard Cafarelli
Details
Build patch updated for 0.2.0 (dangerdeep-0.2.0-build.patch,694 bytes, patch)
2006-10-13 01:21 UTC, Bernard Cafarelli
Details | Diff
dangerdeep-artwork license (ARTWORK_LICENSE,874 bytes, text/plain)
2006-10-16 14:16 UTC, Matt Lawrence
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mr. Bones. (RETIRED) gentoo-dev 2006-04-14 23:48:15 UTC
Someone make this work.  Gives me sandbox violations from scons.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2006-04-14 23:49:04 UTC
Created attachment 84686 [details]
dangerdeep-0.1.1.ebuild

Not so working ebuild.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2006-04-16 16:17:52 UTC
*** Bug 130191 has been marked as a duplicate of this bug. ***
Comment 3 Cristiano Chiucchiolo 2006-04-17 11:53:58 UTC
Created attachment 84851 [details]
games-simulation/dangerdeep-0.1.1.ebuild

This new ebuild works perfectly on amd64. Can someone test it on x86?
Comment 4 Cristiano Chiucchiolo 2006-04-17 11:54:28 UTC
Created attachment 84852 [details, diff]
files/dangerdeep-destdirs.patch
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2006-04-17 12:30:57 UTC
Comment on attachment 84851 [details]
games-simulation/dangerdeep-0.1.1.ebuild

-r is for in-portage rev bumps
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2006-04-17 12:32:55 UTC
Should dynamically replace the directories with the variables from games.eclass (GAMES_BINDIR, GAMES_DATADIR...)
Comment 7 Bernard Cafarelli gentoo-dev 2006-04-22 03:28:51 UTC
Also, after reading http://ponto-dot.com/dftd/viewtopic.php?t=42, I suggest the following src_compile() :

    if use amd64
    then
        USEX86SSE=3
    else
        if use sse
        then
            USEX86SSE=1
        else
            USEX86SSE=-1
        fi
    fi

    scons usex86sse=${USEX86SSE} || die "make failed"

and adding sse to the USE flags.

This will use asm sse optimizations on x86 when sse flag is set, and intrisics ones by default for amd64 (since all amd64 have sse). According to the post, the performance boost is quite nice ;)
Comment 8 Norman Jonas 2006-04-22 03:42:55 UTC
I built it on amd64. I noticed that

- dangerdeep depends on media-libs/libsdl built with joystick
- I got some access violations caused by scons

I will post the actual ACCESS_VIOLATION when an update is there.

Other than that it builts and runs fine.
Comment 9 Tristan Heaven (RETIRED) gentoo-dev 2006-04-27 22:01:37 UTC
Created attachment 85635 [details]
dangerdeep-0.1.1.ebuild
Comment 10 Tristan Heaven (RETIRED) gentoo-dev 2006-04-27 22:02:41 UTC
Created attachment 85636 [details, diff]
dangerdeep-0.1.1-build.patch

Respect flags and fix sandbox violations
Comment 11 Thomas Beinicke 2006-04-28 12:00:06 UTC
I just tried the new ebuild but it failed with these errors:

 * Applying dangerdeep-0.1.1-build.patch ...                                                                                          [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dangerdeep-0.1.1/work/dangerdeep-0.1.1 ...
scons: Reading SConscript files ...
Compiling for Unix/Posix/Linux Environment
KeyError: 'LDFLAGS':
  File "SConstruct", line 180:
    env.Append(LINKFLAGS = os.environ['LDFLAGS'])
  File "/usr/lib64/python2.4/UserDict.py", line 17:
    def __getitem__(self, key): return self.data[key]

!!! ERROR: games-simulation/dangerdeep-0.1.1 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  dangerdeep-0.1.1.ebuild, line 43:   Called die

!!! scons failed


I am running amd64 unstable.
Comment 12 Thomas Beinicke 2006-04-28 13:20:53 UTC
Ok, I should have had a closer look.
I didn't have any LDFLAGS specified in my make.conf and that's why it failed.
So I added LDFLAGS in it and now it compiles.
Comment 13 Tristan Heaven (RETIRED) gentoo-dev 2006-04-28 22:57:42 UTC
Created attachment 85730 [details, diff]
dangerdeep-0.1.1-build.patch

You shouldn't have to have it set. Try this one...
Comment 14 Thomas Beinicke 2006-04-28 23:40:43 UTC
It seems to work now, with and without settings the LDFLAGS.

Thank you :)
Comment 15 Tristan Heaven (RETIRED) gentoo-dev 2006-04-29 01:17:03 UTC
Created attachment 85740 [details, diff]
dangerdeep-0.1.1-build.patch

This is probably better. Sorry for spam.
Comment 16 Mr. Bones. (RETIRED) gentoo-dev 2006-04-29 23:27:52 UTC
segfaults for me.
Comment 17 Tristan Heaven (RETIRED) gentoo-dev 2006-08-22 23:18:07 UTC
Created attachment 94911 [details]
dangerdeep-0.1.1.ebuild

This doesn't really depend on boost.
Comment 18 Tristan Heaven (RETIRED) gentoo-dev 2006-08-22 23:18:57 UTC
Created attachment 94912 [details, diff]
dangerdeep-0.1.1-build.patch

Use the right compiler.
Comment 19 Tristan Heaven (RETIRED) gentoo-dev 2006-09-29 05:31:32 UTC
*** Bug 110121 has been marked as a duplicate of this bug. ***
Comment 20 Matt Lawrence 2006-10-12 13:56:47 UTC
Created attachment 99472 [details]
dangerdeep-0.2.0.ebuild

Version 0.2.0 ebuild only tested on ~amd64.
My first try at ebuilds so be gentle ;)
Comment 21 Mr. Bones. (RETIRED) gentoo-dev 2006-10-12 14:36:07 UTC
addwrite /usr/include/GL:/usr/include/SDL:/usr/X11R6/lib is pretty evil.  Feel like tracking down why that's needed and fixing it?
Comment 22 Mr. Bones. (RETIRED) gentoo-dev 2006-10-12 17:27:37 UTC
Still cores for me right after trying to start a single mission:

0x806ce43 in dangerdeep at ??:0
0x804ebe2 in dangerdeep at ??:0
0xffffe420 in [0xffffe420] at ??:0
0xb7cfa876 in /usr/lib/libfftw3f.so.3 at ??:0
0xb7cfb634 in fftwf_mkplan_dft_ct at ??:0
0xb7cfa9f5 in /usr/lib/libfftw3f.so.3 at ??:0
0xb7cf623d in /usr/lib/libfftw3f.so.3 at ??:0
0xb7cf6b9c in fftwf_mkplan_d at ??:0
0xb7cfe765 in /usr/lib/libfftw3f.so.3 at ??:0
0xb7cf623d in /usr/lib/libfftw3f.so.3 at ??:0
0xb7cf6b9c in fftwf_mkplan_d at ??:0
0xb7cfe765 in /usr/lib/libfftw3f.so.3 at ??:0
0xb7cf623d in /usr/lib/libfftw3f.so.3 at ??:0
0xb7cf6b9c in fftwf_mkplan_d at ??:0
0xb7cfb679 in fftwf_mkplan_dft_ct at ??:0
0xb7cfb425 in /usr/lib/libfftw3f.so.3 at ??:0

That's fftw-3.0.1-r2
Comment 23 Matt Lawrence 2006-10-13 00:58:39 UTC
hrm, I'm using sci-libs/fftw-3.1.2, the addwrite is for scons, I'm not really into python and such but I know it plays silly buggers with the sandbox and that was the only way I could get it to work. If anyone knows a better way around it ?
Comment 24 Bernard Cafarelli gentoo-dev 2006-10-13 01:19:47 UTC
The build patch from 0.1.1 ebuild solves the sandbox problems, adding it back to 0.2.0 worked here. 
I also changed the logic for SSE use, since sse use flag is always filtered on amd64 ans so cannot be enabled

No segfaults here either with unstable fftw, is one of them ready for stabilizing to solve the problem?
Comment 25 Bernard Cafarelli gentoo-dev 2006-10-13 01:21:04 UTC
Created attachment 99508 [details]
Updated 0.2.0 ebuild

* Removed addwrite
* Added back build patch
* Changed sse logic
Comment 26 Bernard Cafarelli gentoo-dev 2006-10-13 01:21:34 UTC
Created attachment 99509 [details, diff]
Build patch updated for 0.2.0
Comment 27 Matt Lawrence 2006-10-14 16:03:28 UTC
Above patch and ebuild work perfectly for me on ~amd64
Comment 28 Matt Lawrence 2006-10-16 14:16:22 UTC
Created attachment 99829 [details]
dangerdeep-artwork license

The license that the artwork is distributed under, it is included in the data zip, put here for easy of access.
Comment 29 Renato Caldas 2006-12-15 09:06:08 UTC
The ebuild is working perfectly here.

Please put it in portage..
Comment 30 Mr. Bones. (RETIRED) gentoo-dev 2007-01-03 20:39:18 UTC
In portage.