works on x86 and ppc
Created attachment 125065 [details] ebuild as tgz for games-action
Please, when attaching ebuilds, do it in plain text, uncompressed and in separate files. If you attach a tarball, don't set it as plain/test. Btw, great work!
ok - sorry! was my 1st work on making/uploading ebuilds... won't tgz them next time :)
Created attachment 125093 [details] games-action/gunroar/gunroar-0.15.ebuild
Created attachment 125094 [details, diff] games-action/gunroar/files/gunroar-0.15.diff
comments: use the header from skel.ebuild pkg_setup should call games_pkg_setup. Look at the other games ebuilds to see how it should look. games should be last on the inherit line sort KEYWORDS more quoting is needed for user-supplied variables (like $GAMES_DATADIR and $D) quoting is *not* needed on the initial MY_ variables, nor on the S= line. src_compile isn't needed for this ebuild. more error checking is needed in src_install use doins instead of cp in src_install pkg_postinst should not create directories. They should be created in src_install.
(In reply to comment #6) > comments: > > use the header from skel.ebuild > > pkg_setup should call games_pkg_setup. Look at the other games ebuilds to see > how it should look. > > games should be last on the inherit line > > sort KEYWORDS > > more quoting is needed for user-supplied variables (like $GAMES_DATADIR and $D) > > quoting is *not* needed on the initial MY_ variables, nor on the S= line. > > src_compile isn't needed for this ebuild. > > more error checking is needed in src_install > > use doins instead of cp in src_install > > pkg_postinst should not create directories. They should be created in > src_install. > ok, thx for friendly help when i find some time i'll try to improve the ebuilds (if a more experienced ebuilder wasn't faster)
Created attachment 125580 [details] games-action/gunroar/gunroar-0.15.ebuild several ebuild-fixes
Created attachment 128554 [details] games-action/gunroar/gunroar-0.15.ebuild
Created attachment 128901 [details] games-action/gunroar/gunroar-0.15.ebuild fixed new ebuild using ${GAMES_DATADIR} and ${GAMES_STATEDIR} correctly
Created attachment 128903 [details, diff] games-action/gunroar/files/gunroar-0.15.diff fixed patch for new ebuild
Created attachment 131389 [details, diff] games-action/gunroar/files/gunroar-0.15.diff minor fixes for gdc-0.24
Created attachment 133177 [details] games-action/gunroar/gunroar-0.15.ebuild privileges fixes
*** Bug 118038 has been marked as a duplicate of this bug. ***
Created attachment 136242 [details] games-action/gunroar/files/gunroar.png desktop icon
Created attachment 136243 [details] games-action/gunroar/gunroar-0.15.ebuild installing icon now
Compilation of gunroar completes with no problems but I get a runtime error when executing gunroar: Error: circular initialization dependency with module abagames.gr.particle Here is my emerge --info: Portage 2.1.3.19 (default-linux/x86/dev/2007.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686) ================================================================= System uname: 2.6.23-gentoo-r3 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ Timestamp of tree: Fri, 11 Jan 2008 07:00:02 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ " LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LINGUAS="en" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/berkano /usr/portage/local/layman/roslin" SYNC="rsync://beta_router/gentoo-portage" USE="3dnow 3dnowext X acl acpi alsa berkdb bitmap-fonts bzip2 cli cracklib crypt cups dbus dri fortran gdbm gpm gtk hal iconv ipv6 isdnlog jpeg midi mmx mmxext mtrr mudflap ncurses nls nptl nptlonly opengl openmp oss pam pcre perl png pppd python qt4 readline reflection sdl session spl sse sse2 ssl startup-notification tcpd threads tiff truetype truetype-fonts type1-fonts unicode x86 xcb xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
hm, i can't reproduce your error here. you maybe might want to try with distcc disabled.
Just tried compiling gunroar with DISCTCC portage feature turned off. I got the same error after starting gunroar.
Damn! Would have been too easy. I have no clue atm as i can't reproduce the error here. If you like you could CTRL-C the emerge somewhere between, edit /var/tmp/portage/games-action/gunroar-0.15/work/gr/Makefile to use the commented-out debug line instead of the release one and start the result through valgrind or gdb. Its should give you the line then where it crashes. Can't promise though that i can fix it then, but i'll try...
Marcel - I really would like to run gdb and give you the output but the problem I am having is I do not know how to resume the merge process after editing /var/tmp/portage/games-action/gunroar-0.15/work/gr/Makefile without portage overwriting the Makefile. Note I ran make in the /gr directory but that seems to fail. Also is there a specific point at which I should CTRL-C the merge process? Thanks
Hi Shane! Just directly after emerge unpacked gunroar sources and applied patches you could "CTRL-Z". Then edit the Makefile to use the debug build and "fg" to continue the emerge. good luck so far!
Marcel -- I did exactly what you said but when I resume the compile I get the following error: src/abagames/gr/bullet.d:180: Error: shadowing declaration abagames.gr.bullet.Bullet.checkShotHit.s is deprecated make: *** [src/abagames/gr/bullet.o] Error 1 make: *** Waiting for unfinished jobs.... * * ERROR: games-action/gunroar-0.15 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1383: Called games_src_compile * games.eclass, line 160: Called die * The specific snippet of code: * [ -e [Mm]akefile ] && { emake || die "emake failed"; } * The die message: * emake failed
argh, seems i never tried the debug parameters in the makefile. please add a -d to allow deprecated features of gdc. this should work. > I did exactly what you said but when I resume the compile I get the following > error:
Marcel - Unfortunately just after gdmd finishes compiling the source I get this new error: src/abagames/gr/enemy.d: In member function ‘__invariant’: src/abagames/gr/enemy.d:175: error: void value not ignored as it ought to be make: *** [src/abagames/gr/enemy.o] Error 1 make: *** Waiting for unfinished jobs.... * * ERROR: games-action/gunroar-0.15 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1383: Called games_src_compile * games.eclass, line 160: Called die * The specific snippet of code: * [ -e [Mm]akefile ] && { emake || die "emake failed"; } * The die message: * emake failed
Shane! Commenting out line 175 from enemy.d solves this here. resulting binary is still useable, but i don't get an error in particle.d here... good luck!
Marcel - Thank you! Gunroar finally compiled with debug options. I ran it through gdb but really did not receive that much more information than before. This GDB was configured as "i686-pc-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /usr/games/bin/gunroar [Thread debugging using libthread_db enabled] [New Thread 0xb6c3c6f0 (LWP 14552)] Error: circular initialization dependency with module abagames.gr.particle Program exited with code 01. (gdb) bt No stack. I really do not know what is wrong. I think we need to find the difference between the a system gunroar runs on and one it doesn't to find any inconsistencies. I posted my emerge --info before in comment #17 but I want to post my GCC info because the d compiler is in that package. gcc --version gcc (GCC) 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.0.2) I noticed that there is a package called dev-lang/dmd-bin in portage that includes a dmd compiler with a newer revision (2.008-r1) than the one with gcc. Is there anyway to compile the package with the newer compiler? And would that even make a difference? I just want to thank you again for all you help. Hopefully we can track down the source of this problem. Sincerely, Shane
hey Shane! if you like you could try to use valgrind for debugging. this should give in any case more output. it even does with my working gunroar-binary, so chances are good that it tells in which line of particle.d the error is. > gcc --version > gcc (GCC) 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.0.2) gcc --version gcc (GCC) 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.0.1) here. should the 0.1 versus 0.2 matter? dmd-bin is the official digital mars compiler - it's closed source and only runs on x86 arch - gdc is opensource and does also work on non-x85 arch. very likely that gunroar doesn't build without modifications in the source with a newer dmd-bin, as they changed lots of stuff compared to older dmds. in case you don't know - there are gunroar-binaries built with old dmd available on http://www.emhsoft.com/gunroar/ . have a nice weekend! :)
just updated gcc to patchlevel 1.0.2 and gunroar still builds/works - so problem is elsewhere gcc (GCC) 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.0.2)
Tested successfully on ~amd64 with gcc 4.1.2
Created attachment 181624 [details] games-action/gunroar/gunroar-0.15.ebuild cosmetics for repoman
requires unsupported gdc compiler