Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179502 - [EBUILD] games-action/irrlamb-0.0.5
Summary: [EBUILD] games-action/irrlamb-0.0.5
Status: CONFIRMED
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://code.google.com/p/irrlamb/
Whiteboard:
Keywords: EBUILD
Depends on: bullet-2.42b 172776 184508
Blocks:
  Show dependency tree
 
Reported: 2007-05-23 10:25 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2021-05-21 19:39 UTC (History)
6 users (show)

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


Attachments
games-action/irrlamb-0.0.1 (irrlamb-0.0.1.ebuild,1.24 KB, text/plain)
2007-05-23 10:26 UTC, Christoph Brill (egore) (RESIGNED)
Details
irrlamb-0.0.1-scons.patch (irrlamb-0.0.1-scons.patch,543 bytes, patch)
2007-05-23 10:26 UTC, Christoph Brill (egore) (RESIGNED)
Details | Diff
irrlamb-0.0.1-files.patch (irrlamb-0.0.1-files.patch,555 bytes, patch)
2007-05-23 10:27 UTC, Christoph Brill (egore) (RESIGNED)
Details | Diff
irrlamb-0.0.3.ebuild (irrlamb-0.0.3.ebuild,1.27 KB, text/plain)
2007-06-22 13:42 UTC, Santiago M. Mola (RETIRED)
Details
files/irrlamb-0.0.3-log-path.patch (irrlamb-0.0.3-log-path.patch,1023 bytes, patch)
2007-06-22 13:43 UTC, Santiago M. Mola (RETIRED)
Details | Diff
files/irrlamb-0.0.3-lua-and-cxxflags.patch (irrlamb-0.0.3-lua-and-cxxflags.patch,1.82 KB, patch)
2007-06-22 13:43 UTC, Santiago M. Mola (RETIRED)
Details | Diff
irrlamb-0.0.3.ebuild (irrlamb-0.0.3.ebuild,1.29 KB, text/plain)
2007-06-23 13:16 UTC, Santiago M. Mola (RETIRED)
Details
files/irrlamb-0.0.3-lua-plus-misc.patch (irrlamb-0.0.3-lua-plus-misc.patch,1.35 KB, patch)
2007-06-23 13:17 UTC, Santiago M. Mola (RETIRED)
Details | Diff
files/irrlamb-0.0.3-lua-plus-misc.patch (irrlamb-0.0.3-lua-plus-misc.patch,1.84 KB, patch)
2007-06-23 13:21 UTC, Santiago M. Mola (RETIRED)
Details | Diff
irrlamb-0.0.4.ebuild (irrlamb-0.0.4.ebuild,1.83 KB, text/plain)
2007-07-09 20:41 UTC, Santiago M. Mola (RETIRED)
Details
files/irrlamb-0.0.4-scons.patch (irrlamb-0.0.4-scons.patch,1.49 KB, patch)
2007-07-09 20:41 UTC, Santiago M. Mola (RETIRED)
Details | Diff
build.log (irrlamb-0.0.4 ) (build.log,7.26 KB, text/plain)
2010-03-01 12:02 UTC, Christian Harms
Details
build.log (irrlamb-0.1.0 ) (build.log,282.17 KB, text/plain)
2010-03-01 13:43 UTC, Christian Harms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Brill (egore) (RESIGNED) 2007-05-23 10:25:57 UTC
irrlamb is a 3D game that probably involves a lot of physics and frustrating gameplay.

Reproducible: Always
Comment 1 Christoph Brill (egore) (RESIGNED) 2007-05-23 10:26:28 UTC
Created attachment 120073 [details]
games-action/irrlamb-0.0.1

The ebuild
Comment 2 Christoph Brill (egore) (RESIGNED) 2007-05-23 10:26:57 UTC
Created attachment 120074 [details, diff]
irrlamb-0.0.1-scons.patch

Necessary to get it built.
Comment 3 Christoph Brill (egore) (RESIGNED) 2007-05-23 10:27:33 UTC
Created attachment 120076 [details, diff]
irrlamb-0.0.1-files.patch

Patch to get it to run when installed.
Comment 4 Christoph Brill (egore) (RESIGNED) 2007-05-23 10:30:11 UTC
Note: It currently builds and runs fine. It seems to have issues loading PNGs and JPEG. That might be relates to the fact that the gentoo version of irrlicht is handled differently in this area (it explicitely adds -lpng and -ljpeg). Not sure though. It might also be related to as-needed-LDFLAGS.

I thought it was path-related, but that does not seem to be the fact. I will look into that further.
Comment 5 Christoph Brill (egore) (RESIGNED) 2007-06-01 08:04:03 UTC
I tested the ebuild on ~x86 (the former one was one ~amd64). It works fine on ~x86. No glitches. All images loaded. I guess this is an amd64 issue than.
Comment 6 Piotr Szymaniak 2007-06-22 07:47:44 UTC
0.0.3 is out, bump? (:
Comment 7 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-22 13:42:41 UTC
Created attachment 122802 [details]
irrlamb-0.0.3.ebuild

Work for me on x86. Right now it uses binary irrlicht and bullet shipped with the package, if anyone has managed to compile irrlamb-0.0.3 with external libs... then please post your results.

There are a number of workarounds that have been reported upstream and maybe they are fixed in next release.
Comment 8 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-22 13:43:14 UTC
Created attachment 122803 [details, diff]
files/irrlamb-0.0.3-log-path.patch
Comment 9 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-22 13:43:41 UTC
Created attachment 122804 [details, diff]
files/irrlamb-0.0.3-lua-and-cxxflags.patch

This patch is already sent upstream.
Comment 10 Piotr Szymaniak 2007-06-22 16:34:38 UTC
(In reply to comment #7)
> Work for me on x86. Right now it uses binary irrlicht and bullet shipped with
> the package, if anyone has managed to compile irrlamb-0.0.3 with external
> libs... then please post your results.
> 
> There are a number of workarounds that have been reported upstream and maybe
> they are fixed in next release.

So this ebuild works or not? I'm confused. (;

For me (deps compiled from "depends on" bugs) it ended up with acces violation:
http://roslin.kicks-ass.net/~lazy_bum/logs/sandbox-games-action-irrlamb.log
Comment 11 Piotr Szymaniak 2007-06-22 17:45:11 UTC
One more thing:

cat irrlamb/install.txt 
*** Requirements ***********************************************
In linux, you will need the following libraries:
*snip*
boost
*snip*

So dev-libs/boost should be added to depends.
Comment 12 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-23 11:04:26 UTC
(In reply to comment #10)
> 
> So this ebuild works or not? I'm confused. (;

Yes, this ebuild DO work on x86.

> For me (deps compiled from "depends on" bugs) it ended up with acces violation:
> http://roslin.kicks-ass.net/~lazy_bum/logs/sandbox-games-action-irrlamb.log

This ebuild does not need bullet or irrlicht, so you can skip its installation.
Where did you get those acces violations? Please, attach a full log to this bug if you got the access violation compiling irrlamb. If you got it somewhere else, post it on the relevant bug.

And thanks! I'm adding the boost dependencies, I was becoming mad with irrlicht and bullet and forgot boost along the way ;-)

Comment 13 Piotr Szymaniak 2007-06-23 11:47:19 UTC
Yes, it is irrlamb with this access problem. Here's more detailed log (I should add those in the first place, doh)

Full log:
http://roslin.kicks-ass.net/~lazy_bum/logs/games-action-irrlamb-0.0.3.log
emerge --info:
http://roslin.kicks-ass.net/~lazy_bum/logs/emerge-info.log
Comment 14 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-23 13:14:45 UTC
(In reply to comment #13)
> Yes, it is irrlamb with this access problem. Here's more detailed log (I should
> add those in the first place, doh)

Ok, this problem will disappear if you upgrade to scons-0.97 but anyway, I'm attaching a new ebuild which works with scons-0.96.1.
Comment 15 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-23 13:16:36 UTC
Created attachment 122888 [details]
irrlamb-0.0.3.ebuild

boost added, and sconsign sandbox violations fixed.
Comment 16 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-23 13:17:18 UTC
Created attachment 122890 [details, diff]
files/irrlamb-0.0.3-lua-plus-misc.patch
Comment 17 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-23 13:21:10 UTC
Created attachment 122891 [details, diff]
files/irrlamb-0.0.3-lua-plus-misc.patch

Too speedy. This is the correct patch.
Comment 18 Piotr Szymaniak 2007-06-24 11:10:46 UTC
(In reply to comment #15)
> irrlamb-0.0.3.ebuild
> boost added, and sconsign sandbox violations fixed.

This one works great, thanks. (:
Comment 19 Pablo Trabajos 2007-06-24 16:04:17 UTC
This requires media-libs/audiere as a RDEPEND. This is not yet in portage. See bug #68070.
Regards.
Comment 20 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-24 16:11:20 UTC
(In reply to comment #19)
> This requires media-libs/audiere as a RDEPEND. This is not yet in portage. See
> bug #68070.

Yup, media-libs/audiere is already in attached ebuild's RDEPEND, and this bug already depends on bug #68070
Comment 21 Pablo Trabajos 2007-06-24 21:09:03 UTC
Ah, sorry, didn't see this bug dependencies. I will try to compile irrlich and bullet (internal libs doesn't work in amd64).
Comment 22 Pablo Trabajos 2007-07-07 14:20:23 UTC
I have installed bullet 5.21 but there is no ebuild for irrlicht-1.3.1 (recquired by irrlamb) so I can't test it. Only 1.3 is in portage. If someone contributes an ebuild I would test it ;)
Comment 23 Santiago M. Mola (RETIRED) gentoo-dev 2007-07-07 14:24:27 UTC
(In reply to comment #22)
> I have installed bullet 5.21 

irrlamb uses a modified bullet. So, you need to modify irrlamb's ebuild tu build this modified bullet sources (download in irrlamb's site).

I have an almost working ebuild which do that, will post it soon.
Comment 24 Santiago M. Mola (RETIRED) gentoo-dev 2007-07-09 20:41:25 UTC
Created attachment 124362 [details]
irrlamb-0.0.4.ebuild

Uses external libs. Should work on archs other than x86.
Comment 25 Santiago M. Mola (RETIRED) gentoo-dev 2007-07-09 20:41:47 UTC
Created attachment 124364 [details, diff]
files/irrlamb-0.0.4-scons.patch
Comment 26 Santiago M. Mola (RETIRED) gentoo-dev 2007-07-09 20:42:32 UTC
You'll need to bump sci-physics/bullet to 2.54.
Comment 27 Christian Harms 2010-03-01 11:53:52 UTC
ERROR: games-action/irrlamb-0.0.4 failed:
  dev-games/irrlicht-1.6.1 does not actually support the debug USE flag!

 * Call stack:
 *              ebuild.sh, line  54:  Called pkg_setup
 *   irrlamb-0.0.4.ebuild, line  34:  Called built_with_use 'dev-games/irrlicht' 'debug'
 *          eutils.eclass, line 1859:  Called die
 * The specific snippet of code:
 *                                      die)   die "$PKG does not actually support the $1 USE flag!";;

indeed it doesn't:
$ eix irrlicht
[I] dev-games/irrlicht
     Available versions:  1.5.1 (~)1.6.1 {doc}
     Installed versions:  1.6.1(12:38:50 01.03.2010)(-doc)

I'll try if it builds with the offending lines commented out of irrlamb-0.0.4.ebuild.
Comment 28 Christian Harms 2010-03-01 12:02:23 UTC
Created attachment 221595 [details]
build.log (irrlamb-0.0.4 )

alas, it does not build.

Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.33-gentoo-lordi-5.14 x86_64)
=================================================================                                                      
System uname: Linux-2.6.33-gentoo-lordi-5.14-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-1.12.13              
Timestamp of tree: Mon, 01 Mar 2010 08:15:01 +0000                                                                     
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                              
ccache version 2.4 [enabled]                                                                                           
app-shells/bash:     4.0_p35                                                                                           
dev-java/java-config: 2.1.10                                                                                           
dev-lang/python:     2.6.4                                                                                             
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="assume-digests candy ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.leaseweb.com/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB de_DE@euro en de de_DE"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/portage/local/layman/games /usr/portage/local/layman/sunrise /usr/portage/local/layman/gamerlay /usr/portage/local/layman/kde-sunset /usr/portage/local/lordhelmchen_net"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi adns alsa amd64 arts bash-completion bcmath berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbus directfb dri dts dvd dvdr emboss erandom evo fam fbcon firefox flac fortran ftp gcj gdbm gif gpm gstreamer gtk gtk2 hal iconv ipv6 java jpeg kde ldap libnotify mad makecheck mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nvidia objc ogg opengl openmp openssl pam pcre pdf perl pic png ppds pppd python qt3support qt4 quicktime readline reflection reiserfs sdl semantic-desktop session slang spell spl sse sse2 ssl startup-notification svg sysfs tcpd test tetex threads thunar tiff truetype unicode usb utf8 vorbis x264 xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-dib0700 usb-dtt200u" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB de_DE@euro en de de_DE" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vga nvidia vesa apm fbdev nv"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 29 Christian Harms 2010-03-01 13:43:37 UTC
Created attachment 221605 [details]
build.log (irrlamb-0.1.0 )

While wondering about the different version numbers in this bug's summary and the latest ebuild, i found that upstream has released 0.1.0 as of 06.Jan.2010.
I tried to quickly hack together an updated ebuild, but compilation fails. 
Lots of undefined references in libIrrlicht.a, even though I have adjusted the dependency's version to upstream's specification.

/usr/bin/diff -u irrlamb-0.0.4.ebuild irrlamb-0.1.0.ebuild
--- irrlamb-0.0.4.ebuild        2010-03-01 12:47:10.086317282 +0100            
+++ irrlamb-0.1.0.ebuild        2010-03-01 14:23:38.192317002 +0100            
@@ -11,19 +11,22 @@                                                            
                                                                               
 LICENSE="GPL-2"                                                               
 SLOT="0"                                                                      
-KEYWORDS="~x86"                                                               
+KEYWORDS="~x86 ~amd64"                                                        
 IUSE="debug"                                                                  
                                                                               
-RDEPEND=">=dev-games/irrlicht-1.3.1                                           
-       >=sci-physics/bullet-2.54                                              
-       >=media-libs/audiere-1.9.4                                             
+RDEPEND=">=dev-games/irrlicht-1.6                                             
+       >=sci-physics/bullet-2.75
        media-libs/libpng
        media-libs/jpeg
        >=dev-lang/lua-5.1
        x11-libs/libXext
        x11-libs/libXxf86vm
        virtual/glu
-       dev-libs/boost"
+       >=dev-db/sqlite-3.6"
 DEPEND="${RDEPEND}
        x11-proto/xextproto
        dev-util/scons"
@@ -31,13 +34,13 @@
 S=${WORKDIR}/${PN}

 pkg_setup() {
-       if built_with_use dev-games/irrlicht debug && ! use debug ; then
-               eerror "dev-games/irrlicht is built with debug support."
-               eerror "You'll need to enable USE=\"debug\" for ${PN} or"
-               eerror "reinstall dev-games/irrlicht with USE=\"-debug\""
-               die "irrlicht/irrlamb debug use doesn't match"
-       fi
-       if ! built_with_use dev-games/irrlicht debug && use debug ; then
+#      if ! use debug && built_with_use dev-games/irrlicht debug ; then
+#              eerror "dev-games/irrlicht is built with debug support."
+#              eerror "You'll need to enable USE=\"debug\" for ${PN} or"
+#              eerror "reinstall dev-games/irrlicht with USE=\"-debug\""
+#              die "irrlicht/irrlamb debug use doesn't match"
+#      fi
+       if use debug && ! built_with_use dev-games/irrlicht debug ; then
                eerror "dev-games/irrlicht is built without debug support."
                eerror "You'll need to reinstall it with USE=\"debug\" if"
                eerror "you want to build ${PN} with debug support."
@@ -48,11 +51,12 @@
 src_unpack() {
        unpack ${A}
        cd "${S}"
-       epatch "${FILESDIR}/${P}-scons.patch"
+#      epatch "${FILESDIR}/${P}-scons.patch"
 }

 src_compile() {
-       scons USE_INTERNAL_LIBS=no DEBUG=$(use debug && echo "yes" || echo "no") \
+#      scons USE_INTERNAL_LIBS=no DEBUG=$(use debug && echo "yes" || echo "no") \
+       scons \
                || die "scons failed"
 }
Comment 30 Christian Harms 2010-03-01 13:48:40 UTC
additionally, this won't depend on bug #68070 anymore , if I was right to assume it is no longer dependent on media-libs/audiere.

to quote upstream:
"The audio was removed since i felt like it was mostly an afterthought. Once i get a good audio library and some legitimate sounds/music, i'll put it back in."

sorry for the bugspam
Comment 31 Christoph Brill (egore) (RESIGNED) 2010-03-02 19:00:36 UTC
Drop audiere dependency as per comment #30
Comment 32 Azamat H. Hackimov 2010-05-01 21:05:33 UTC
(In reply to comment #29)
> While wondering about the different version numbers in this bug's summary and
> the latest ebuild, i found that upstream has released 0.1.0 as of 06.Jan.2010.
> I tried to quickly hack together an updated ebuild, but compilation fails. 
> Lots of undefined references in libIrrlicht.a, even though I have adjusted the
> dependency's version to upstream's specification.

You need add to SConstruct additional libs (env.Append(LIBS="...")). Unclear, why upstream deleted them, but you need add
GL GLU Irrlicht Xxf86vm X11

Maybe you'll need add more (libpng, jpeg etc), I can't rememeber whole list.