irrlamb is a 3D game that probably involves a lot of physics and frustrating gameplay. Reproducible: Always
Created attachment 120073 [details] games-action/irrlamb-0.0.1 The ebuild
Created attachment 120074 [details, diff] irrlamb-0.0.1-scons.patch Necessary to get it built.
Created attachment 120076 [details, diff] irrlamb-0.0.1-files.patch Patch to get it to run when installed.
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.
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.
0.0.3 is out, bump? (:
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.
Created attachment 122803 [details, diff] files/irrlamb-0.0.3-log-path.patch
Created attachment 122804 [details, diff] files/irrlamb-0.0.3-lua-and-cxxflags.patch This patch is already sent upstream.
(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
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.
(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 ;-)
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
(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.
Created attachment 122888 [details] irrlamb-0.0.3.ebuild boost added, and sconsign sandbox violations fixed.
Created attachment 122890 [details, diff] files/irrlamb-0.0.3-lua-plus-misc.patch
Created attachment 122891 [details, diff] files/irrlamb-0.0.3-lua-plus-misc.patch Too speedy. This is the correct patch.
(In reply to comment #15) > irrlamb-0.0.3.ebuild > boost added, and sconsign sandbox violations fixed. This one works great, thanks. (:
This requires media-libs/audiere as a RDEPEND. This is not yet in portage. See bug #68070. Regards.
(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
Ah, sorry, didn't see this bug dependencies. I will try to compile irrlich and bullet (internal libs doesn't work in amd64).
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 ;)
(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.
Created attachment 124362 [details] irrlamb-0.0.4.ebuild Uses external libs. Should work on archs other than x86.
Created attachment 124364 [details, diff] files/irrlamb-0.0.4-scons.patch
You'll need to bump sci-physics/bullet to 2.54.
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.
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
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" }
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
Drop audiere dependency as per comment #30
(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.