Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278541 - new ebuilds: games-strategy/0ad games-strategy/0ad-data
Summary: new ebuilds: games-strategy/0ad games-strategy/0ad-data
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement with 15 votes (vote)
Assignee: Gentoo Games
URL: http://wildfiregames.com/0ad/
Whiteboard: [sunrise-overlay]
Keywords: EBUILD, InOverlay, PATCH
: 450898 499930 (view as bug list)
Depends on: 60960 407191
Blocks:
  Show dependency tree
 
Reported: 2009-07-21 05:09 UTC by Aleksandr Yakimov
Modified: 2014-05-21 19:02 UTC (History)
42 users (show)

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


Attachments
0ad-9999.ebuild (0ad-9999.ebuild,1.27 KB, text/plain)
2009-07-21 05:09 UTC, Aleksandr Yakimov
Details
build log (0ad.log,35.72 KB, text/plain)
2009-07-21 22:21 UTC, Piotr Szymaniak
Details
compilation error (build.log,44.78 KB, text/plain)
2009-07-22 07:56 UTC, Piotr Szymaniak
Details
0ad-9999.ebuild (0ad-9999.ebuild,1.75 KB, text/plain)
2009-07-22 16:47 UTC, Aleksandr Yakimov
Details
0ad-9999.ebuild (0ad-9999.ebuild,1.88 KB, text/plain)
2009-07-23 10:36 UTC, Aleksandr Yakimov
Details
0ad-9999.ebuild (0ad-9999.ebuild,1.80 KB, text/plain)
2009-07-24 15:05 UTC, Piotr Szymaniak
Details
0ad valgrind output (0ad-valgrind.log,6.88 KB, text/plain)
2009-07-24 15:08 UTC, Piotr Szymaniak
Details
0ad-9999.ebuild (0ad-9999.ebuild,1.94 KB, text/plain)
2009-07-24 15:19 UTC, Piotr Szymaniak
Details
gdb backtrace (backtrace.log,8.91 KB, text/plain)
2009-07-24 15:55 UTC, Piotr Szymaniak
Details
0ad-9999.ebuild (0ad-9999.ebuild,1.95 KB, text/plain)
2009-09-01 18:57 UTC, Aleksandr Yakimov
Details
0ad-7419.ebuild (0ad-7419.ebuild,2.61 KB, text/plain)
2010-04-01 10:14 UTC, Philip Taylor
Details
0ad-7539.ebuild (0ad-7539.ebuild,2.61 KB, patch)
2010-05-12 16:25 UTC, Philip Taylor
Details | Diff
0ad-7539.ebuild (0ad-7539.ebuild,2.61 KB, text/plain)
2010-05-12 16:43 UTC, Philip Taylor
Details
0ad-7732.ebuild (0ad-7732.ebuild,2.61 KB, text/plain)
2010-07-11 12:22 UTC, Philip Taylor
Details
0ad-7970.ebuild (0ad-7970.ebuild,2.63 KB, text/plain)
2010-08-16 14:43 UTC, Philip Taylor
Details
build log using 0ad-7970 at x86 (build.log,147.47 KB, text/plain)
2010-08-22 12:18 UTC, Elias Gabriel Amaral da Silva
Details
0ad-8413.ebuild (0ad-8413.ebuild,2.90 KB, text/plain)
2010-10-23 16:47 UTC, Philip Taylor
Details
0ad-9049.ebuild (0ad-9049.ebuild,2.92 KB, text/plain)
2011-03-15 13:38 UTC, Philip Taylor
Details
0ad-9530.ebuild (0ad-9530.ebuild,2.92 KB, application/octet-stream)
2011-05-22 09:23 UTC, Oisin O Malley
Details
0ad-9530-r1.ebuild (0ad-9530-r1.ebuild,2.91 KB, text/plain)
2011-05-23 20:54 UTC, David Heidelberg (okias)
Details
0ad-9786.ebuild (0ad-9786.ebuild,2.91 KB, text/plain)
2011-07-10 15:13 UTC, Philip Taylor
Details
0ad-9786-r1.build (0ad-9786.ebuild,3.06 KB, text/plain)
2011-07-15 07:35 UTC, Wojciech Myrda
Details
failed to compile 0ad-9786-r1.build (build.log,348.68 KB, text/plain)
2011-07-28 05:56 UTC, Anton Bolshakov
Details
0ad-10288.ebuild (0ad-10288.ebuild,3.20 KB, text/plain)
2011-09-17 14:45 UTC, Anton Bolshakov
Details
0ad-10288.ebuild (0ad-10288.ebuild,3.14 KB, text/plain)
2011-09-18 05:59 UTC, Anton Bolshakov
Details
0ad-10803.ebuild (0ad-10803.ebuild,3.37 KB, text/plain)
2011-12-25 00:15 UTC, Anton Bolshakov
Details
premake-archless.patch (premake-archless.patch,1.52 KB, patch)
2011-12-25 00:17 UTC, Anton Bolshakov
Details | Diff
premake-script-archless.patch (premake-script-archless.patch,1.54 KB, patch)
2011-12-25 00:17 UTC, Anton Bolshakov
Details | Diff
0ad-10803.ebuild (0ad-10803.ebuild,3.36 KB, text/plain)
2011-12-25 11:50 UTC, Piotr Szymaniak
Details
build.log (build.log,133.72 KB, text/plain)
2012-01-07 11:05 UTC, Mickaël Bucas
Details
premake-script-archless-sleep.patch (premake-script-archless-sleep.patch,1.55 KB, patch)
2012-01-07 23:44 UTC, Mickaël Bucas
Details | Diff
0ad-10803.ebuild (0ad-10803.ebuild,3.37 KB, text/plain)
2012-03-06 23:02 UTC, Piotr Szymaniak
Details
ebuild for 0 A.D. Alpha 9 (0ad-11339.ebuild,3.25 KB, text/plain)
2012-03-27 18:04 UTC, Bash Vi
Details
0ad-11339_alpha9.ebuild (0ad-11339_alpha9.ebuild,2.40 KB, text/plain)
2012-04-14 18:55 UTC, Julian Ospald
Details
0ad-data-11339_alpha9.ebuild (0ad-data-11339_alpha9.ebuild,563 bytes, text/plain)
2012-04-14 18:56 UTC, Julian Ospald
Details
0ad-99999.ebuild (0ad-99999.ebuild,2.66 KB, text/plain)
2012-04-14 18:57 UTC, Julian Ospald
Details
11339_alpha9-fcollada-makefile.patch (11339_alpha9-fcollada-makefile.patch,1.04 KB, patch)
2012-04-14 18:57 UTC, Julian Ospald
Details | Diff
Ebuild for 0 A.D. Alpha 11 Kronos (0ad-0.0.11.ebuild,3.29 KB, text/plain)
2012-09-09 21:23 UTC, RedEyedMan
Details
0ad-9999 with slot "svn" (0ad-9999.ebuild,2.21 KB, text/plain)
2014-01-17 23:21 UTC, Nils Freydank
Details
metadata.xml for 0ad-9999 with svn slot. (metadata.xml,495 bytes, text/xml)
2014-01-17 23:22 UTC, Nils Freydank
Details
0ad-9999 svn DEP-EBUILD (won't build any game data, only deps). (0ad_deps-9999.ebuild,1.28 KB, text/plain)
2014-01-17 23:23 UTC, Nils Freydank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandr Yakimov 2009-07-21 05:09:36 UTC
0 A.D. is a free, real-time strategy game currently under development by Wildfire Games. It's cross-platform, 3D and historically-based. Wildfire Games is switching from a closed development process to open source, making the game's code available as GPL and the art content available as CC-BY-SA.

Reproducible: Always

Steps to Reproduce:
Comment 1 Aleksandr Yakimov 2009-07-21 05:09:57 UTC
Created attachment 198665 [details]
0ad-9999.ebuild
Comment 2 Piotr Szymaniak 2009-07-21 22:21:57 UTC
Created attachment 198747 [details]
build log

Error log from 0ad merge.

~ # emerge --info
Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30.2 i686)
=================================================================
System uname: Linux-2.6.30.2-i686-Pentium-R-_Dual-Core_CPU_E5200_@_2.50GHz-with-glibc2.0
Timestamp of tree: Tue, 21 Jul 2009 18:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r3
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j5"
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="/home/porttmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/lazy_bum/svn/roslin /var/tmp/sunrise"
SYNC="rsync://10.0.0.1/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb bluetooth bzip2 cairo cdr cli cracklib crypt cups custom-cflags custom-cxxflags dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gtk hal iconv ipv6 isdnlog jabber jpeg kde kdeenablefinal libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb vdpau vorbis win32codecs x86 xml xorg xulrunner xv 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 mmap_emul 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Aleksandr Yakimov 2009-07-22 05:11:01 UTC
(In reply to comment #2)
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
please temporarily remove "--as-needed" and try again.
Comment 4 Piotr Szymaniak 2009-07-22 07:24:56 UTC
Tried without LDFLAGS and it crashed in the same place.
Comment 5 Piotr Szymaniak 2009-07-22 07:56:46 UTC
Created attachment 198768 [details]
compilation error

Disabled PORTAGE_TMPDIR in tmpfs (and --as-needed) and it seems to go past that point, but failed anyway.

~ # emerge --info
Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30.2 i686)
=================================================================
System uname: Linux-2.6.30.2-i686-Pentium-R-_Dual-Core_CPU_E5200_@_2.50GHz-with-glibc2.0
Timestamp of tree: Tue, 21 Jul 2009 18:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r3
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j5"
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="/home/porttmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/lazy_bum/svn/roslin /var/tmp/sunrise"
SYNC="rsync://10.0.0.1/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb bluetooth bzip2 cairo cdr cli cracklib crypt cups custom-cflags custom-cxxflags dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gtk hal iconv ipv6 isdnlog jabber jpeg kde kdeenablefinal libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb vdpau vorbis win32codecs x86 xml xorg xulrunner xv 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 mmap_emul 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Aleksandr Yakimov 2009-07-22 08:21:24 UTC
(In reply to comment #5)
> Disabled PORTAGE_TMPDIR in tmpfs (and --as-needed) and it seems to go past that
> point, but failed anyway.
Ok, this a problem in linking to wxGTK.

Discussed at http://www.wildfiregames.com/forum/index.php?showtopic=12424&st=20#
Comment 7 Account removed 2009-07-22 10:52:29 UTC
the ebuild builds here completely until the end when I comment out
  bool Ok() const { return IsOk(); }
in 
/usr/include/wx-2.8/wx/gtk/

(line 30 here)

not doing so will give me te same error as described here in comment #3:

http://linuxforum.ru/index.php?showtopic=96461&mode=threaded&pid=903369

make install is missing though
Comment 8 Aleksandr Yakimov 2009-07-22 11:36:07 UTC
(In reply to comment #7)
> the ebuild builds here completely until the end when I comment out
>  bool Ok() const { return IsOk(); }
> in 
> /usr/include/wx-2.8/wx/gtk/
>  
> (line 30 here)
Is it problem for wxGTK upstream?

> not doing so will give me te same error as described here in comment #3:
> 
> http://linuxforum.ru/index.php?showtopic=96461&mode=threaded&pid=903369
I think this is due to heuristic CFLAGS and LDFAGS (failed to build with emerge, but manually can be compiled).

> 
> make install is missing though
>
Now we cannot compile it.
Comment 9 Account removed 2009-07-22 16:02:00 UTC
Not sure if this is a wxGTK. At least it's seems to be a problem which occurs
also on other apps - like f.e. here:

http://bugs.gentoo.org/show_bug.cgi?id=146693#c4

Yes I've read that this can happen with messed up CFLAGS
(f.e. -fvisibility-inlines-hidden), but I use safe cflags,
(CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer")
so this is not the problem here.

> > make install is missing though
> >
> Now we cannot compile it.
> 

heh, makes sense. though you already have it working.
game looks playable from the builddir btw 
Comment 10 Account removed 2009-07-22 16:02:27 UTC
forgot the 2nd time to put me on cc... :)
Comment 11 Aleksandr Yakimov 2009-07-22 16:47:27 UTC
Created attachment 198807 [details]
0ad-9999.ebuild
Comment 12 Account removed 2009-07-23 06:47:02 UTC
the sources build now, but you forgot to include
libCollada_dbg.so (*.so) in your temporary install solution.
Comment 13 Aleksandr Yakimov 2009-07-23 10:36:52 UTC
Created attachment 198891 [details]
0ad-9999.ebuild

We can play now :)

Still failed to build Atlas editor.
Comment 14 Piotr Szymaniak 2009-07-24 15:05:45 UTC
Created attachment 198991 [details]
0ad-9999.ebuild

Added games_make_wrapper, so you can run the game just typing "0ad" in the console. (:
Comment 15 Piotr Szymaniak 2009-07-24 15:08:03 UTC
Created attachment 198992 [details]
0ad valgrind output

The game compiles and installs fine now (at least it looks like), but when running 0ad (or the /opt/0ad/system/pyrogenesis_dbg) it quits with:
~ (: 0ad 
TIMER| InitVfs: 541.114 us
TIMER| InitScripting: 1.90255 ms
TIMER| CONFIG_Init: 4.82146 ms
TIMER| write_sys_info: 35.048 us
TIMER| ps_console: 3.01637 ms
TIMER| ps_lang_hotkeys: 4.49635 ms
TIMER| ps_gui_init: 18.963 us
pyrogenesis_dbg: /usr/include/boost/shared_ptr.hpp:375: T* boost::shared_ptr<T>::operator->() const [with T = RealDirectory]: Assertion `px != 0' failed.
Przerwane
Comment 16 Piotr Szymaniak 2009-07-24 15:19:36 UTC
Created attachment 198994 [details]
0ad-9999.ebuild

Ooops, sorry for the noise. I used wrong ebuild, fixed the games_make_wrapper with the latest ebuild from Aleksandr. But it still crashes right after start.
Comment 17 Aleksandr Yakimov 2009-07-24 15:33:40 UTC
(In reply to comment #16)
> Ooops, sorry for the noise. I used wrong ebuild, fixed the games_make_wrapper
> with the latest ebuild from Aleksandr. But it still crashes right after start.
> 
unmerge it and check that everything related to 0ad removed from /opt

Then emerge it again using my last ebuild (run ./pyrogenesis_dbg from /opt/0ad/system/ ).
Comment 18 Piotr Szymaniak 2009-07-24 15:55:39 UTC
Created attachment 198995 [details]
gdb backtrace

(In reply to comment #17)
> unmerge it and check that everything related to 0ad removed from /opt
> 
> Then emerge it again using my last ebuild (run ./pyrogenesis_dbg from
> /opt/0ad/system/ ).

It works now (also when launched from the "0ad" wrapper). I moved some folks around the map and it crashed. Don't know if anyone _here_ is interested in the backtrace? I will post it anyway, but would be nice to know for the future.
Comment 19 Aleksandr Yakimov 2009-07-24 16:48:50 UTC
(In reply to comment #18)
> It works now (also when launched from the "0ad" wrapper). I moved some folks
> around the map and it crashed. Don't know if anyone _here_ is interested in the
> backtrace? I will post it anyway, but would be nice to know for the future.
For this stage it should be reported to upstream. 

TODO:
1) http://www.gentoo.org/proj/en/qa/asneeded.xml
2) wxGTK and AtlasUI (USE="editor")
Comment 20 Piotr Szymaniak 2009-08-31 20:16:09 UTC
Following: http://txt.si/blog/p/compiling-0-d-gentoo/

„So, I decided to try 0 A.D. I googled and found one .ebuild in roslin overlay. But the ebuild lacks some dependencies, mainly two: 
- wxGTK needs to be installed. 
- premake needs to be installed.”
Comment 21 Aleksandr Yakimov 2009-09-01 18:57:59 UTC
Created attachment 202897 [details]
0ad-9999.ebuild

Fix isues with wxGTK.
Comment 22 tman 2009-09-10 11:09:40 UTC
i tested the curent ebuild from roslin overlay and this here posted ebuild "0ad-9999.ebuild   	0ad-9999.ebuild  	text/plain  	 Aleksandr Yakimov   	2009-09-01 18:57 0000  	1.95 KB  	 Details".

both can compile but nothing work here. 0ad crash after some tries to debug.

coud someone fix it as soon as possible. thanks a lot 
Comment 23 Ryan Hill (RETIRED) gentoo-dev 2009-09-12 04:20:08 UTC
wxGTK changes look good.
Comment 24 Aleksandr Yakimov 2009-09-19 17:55:09 UTC
(In reply to comment #22)
> both can compile but nothing work here. 0ad crash after some tries to debug.
> 
> coud someone fix it as soon as possible. thanks a lot 
> 
See comment #19 and contact developers via forum http://www.wildfiregames.com/forum/index.php?showforum=312
Comment 25 Marcel Partap 2009-11-12 21:36:01 UTC
compiled fine (march amdfam10) but does not start, fails instead with:
lib_errors.cpp(105): Function call failed: return value was -1 (Function failed (no details available))
udbg_bfd_init: loading symbols from /opt/0ad/system/pyrogenesis_dbg.
which is as good an error message as none..
Comment 26 Marcel Partap 2009-11-12 21:49:11 UTC
well ok, the crashlog.txt (which btw is kinda misplaced in the RO /opt/0ad/system dir) says:
Function call failed: return value was -1 (Function failed (no details available))
Location: lib_errors.cpp:105 (LibError_from_errno)

Call stack:

(0x6d3f7f) ldbg.cpp:107 debug_DumpStack(wchar_t*, unsigned long, void*, wchar_t const*)
(0x6a37ff) debug.cpp:324 debug_BuildErrorMessage(wchar_t const*, wchar_t const*, int, char const*, void*, wchar_t const*, ErrorMessageMem*)
(0x6a3ffd) debug.cpp:481 debug_DisplayError(wchar_t const*, unsigned long, void*, wchar_t const*, wchar_t const*, int, char const*, unsigned char*)
(0x6a4884) debug.cpp:537 debug_OnError(long, unsigned char*, wchar_t const*, int, char const*)
(0x6abcc7) lib_errors.cpp:105 LibError_from_errno(bool)
(0x6b3cc3) basic_string.h:281 std::string::_M_rep() const
(0x6b8678) prmjtime.c:0 VFS::Mount(boost::filesystem::basic_path<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, VfsPathTraits> const&, boost::filesystem::basic_path<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, boost::filesystem::wpath_traits> const&, unsigned long, unsigned long)
(0x4c1165) basic_string.h:281 std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_rep() const
(0x4c1f55) GameSetup.cpp:864 Init(CmdLineArgs const&, int)
(0x43aa6b) main.cpp:349 MainControllerInit
(0x7f5b1c39aa3d) /lib/libc.so.6:0 __libc_start_main
(0x439929) none:0 _start

errno = 0 (?)
OS error = ?



====================================

Last known activity:

 EarlyInit
Init
init vfs
Comment 27 Philip Taylor 2009-11-14 11:11:39 UTC
Marcel: Reporting upstream (http://www.wildfiregames.com/forum/index.php?showforum=312 or http://trac.wildfiregames.com/) would be good for bugs like this.

In SVN I've fixed the uninformative-error-message bug, and the error-in-InitVfs bug, so it ought to work better now. I agree crashlog.txt is misplaced but won't bother fixing it myself now.

About the latest ebuild here:

SVN now includes SpiderMonkey source and builds it automatically, so it shouldn't be listed as a dependency. (SpiderMonkey is not stable across version numbers and we really require 1.6.0, not the latest system version.)

Valgrind shouldn't be a dependency now.

update-workspaces.sh now automatically builds FCollada (and Premake and SpiderMonkey), so that doesn't need to be done explicitly.

.../logs and .../data/cache etc now get put in XDG Basedir locations (~/.cache/0ad, ~/.config/0ad, ~/.local/share/0ad) so there's no need to make any shared directories writable.
Comment 28 Balint Dobai-Pataky 2009-11-27 19:18:13 UTC
failed with dev-util/premake-4.1.2
but compiled with dev-util/premake-3.5
Comment 29 Philip Taylor 2010-04-01 10:14:59 UTC
Created attachment 226097 [details]
0ad-7419.ebuild

This is an updated ebuild for the relatively-stable snapshot on http://trac.wildfiregames.com/wiki/LatestRelease - these releases will hopefully be quite regular, so there shouldn't be a need for the live SVN ebuilds now.

(The main changes in the ebuild are that it downloads the .tar.xz release files, it builds the editor component by default, it has debug and test flags, and some workarounds for old bugs have been removed.)
Comment 30 Maciej Piechotka 2010-04-05 19:27:23 UTC
% ldd ./system/pyrogenesis | grep not 
	libbfd-2.20.1.20100303.so => not found

Manually adding /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20.1/ to LD_LIBRARY_PATH works.


# paludis --info
paludis 0.46.0
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.4.3
        CXXFLAGS:               -O2 -pipe -march=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3 -msse4.1 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -msahf -mcx16 -floop-interchange -floop-strip-mine -floop-block
        LDFLAGS:               -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        DATE:                  2010-03-31T09:00:37+0200

    Libraries:
        C++ Library:           GNU libstdc++ 20100121

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      /usr/lib64/python2.6/site-packages
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

System:
    Linux picard 2.6.33-gentoo-ck1-tuxonice #6 SMP PREEMPT Fri Mar 19 02:50:32 GMT 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz GenuineIntel GNU/Linux

Reduced Privs:
    reduced_uid:               110
    reduced_uid->name:         paludisbuild
    reduced_uid->dir:          /var/tmp/paludis
    reduced_gid:               1015
    reduced_gid->name:         paludisbuild

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/pkg/world

(...)

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       4.1_p2-r1
        dev-java/java-config:  2.1.10
        dev-lang/python:       2.6.5-r1 3.1.2-r1
        dev-python/pycrypto:   (none)
        dev-util/ccache:       2.4-r8
        dev-util/cmake:        2.8.1
        dev-util/confcache:    (none)
        sys-apps/baselayout:   2.0.1
        sys-apps/openrc:       0.6.1-r1
        sys-apps/sandbox:      2.2
        sys-devel/autoconf:    2.13 2.65
        sys-devel/automake:    1.10.3 1.11.1 1.9.6-r3
        sys-devel/binutils:    2.20.1
        sys-devel/gcc:         4.4.3
        sys-devel/gcc-config:  1.4.1
        sys-devel/libtool:     2.2.6b
        virtual/os-headers:    2.6.33 (for sys-kernel/linux-headers::installed)


Package games-strategy/0ad-7419::installed:

        >>> Running ebuild phase killold as paludisbuild:paludisbuild...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars info as paludisbuild:paludisbuild...
        >>> Starting builtin_initmisc
        bunzip2 < /var/db/pkg/games-strategy/0ad-7419/environment.bz2 > /var/tmp/paludis/environment-games-strategy-0ad-7419-14631
        ebuild_scrub_environment /var/tmp/paludis/environment-games-strategy-0ad-7419-14631
        ebuild_safe_source /var/tmp/paludis/environment-games-strategy-0ad-7419-14631
        rm /var/tmp/paludis/environment-games-strategy-0ad-7419-14631
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-O2 -pipe -ggdb -march=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3 -msse4.1 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -msahf -mcx16 -floop-interchange -floop-strip-mine -floop-block
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT=/etc /usr/share/X11/xkb /var/lib/hsqldb 
        CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-O2 -pipe -ggdb -march=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3 -msse4.1 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -msahf -mcx16 -floop-interchange -floop-strip-mine -floop-block
        DISTDIR=/var/db/pkg/games-strategy/0ad-7419
        FEATURES=
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en en_GB pl
        MAKEOPTS=-j2
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/var/db/pkg/games-strategy/0ad-7419
        PORTDIR_OVERLAY=
        SYNC=
        USE=editor amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en linguas_en_GB linguas_pl ruby_targets_jruby ruby_targets_ruby18 userland_GNU video_cards_intel amd64 
        >>> Done builtin_infovars
        >>> Starting pkg_info
        >>> Done pkg_info
        >>> Completed ebuild phases initmisc infovars info
        >>> Running ebuild phase tidyup as paludisbuild:paludisbuild...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/games-strategy-0ad-7419-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
Comment 31 Philip Taylor 2010-05-12 16:25:48 UTC
Created attachment 231245 [details, diff]
0ad-7539.ebuild

Version bump, no other changes.
Comment 32 Philip Taylor 2010-05-12 16:43:35 UTC
Created attachment 231247 [details]
0ad-7539.ebuild

(I have no idea why I marked the previous one as a patch.)
Comment 33 chickaroo 2010-05-20 05:54:39 UTC
since this isn't in portage yet, is there an overlay that maintains the latest ebuilds for this?
Comment 34 Silvio 2010-05-20 06:02:34 UTC
(In reply to comment #33)
> since this isn't in portage yet, is there an overlay that maintains the latest
> ebuilds for this?
> 

four:

- roslin
- zugaina
- bgo-ovelay
- kist overlay
Comment 35 Philip Taylor 2010-07-11 12:22:05 UTC
Created attachment 238307 [details]
0ad-7732.ebuild

New release. Changed to download from Sourceforge mirrors, and changed dependencies to disallow the protocol-incompatible net-libs/enet-1.3
Comment 36 Philip Taylor 2010-08-16 14:43:54 UTC
Created attachment 243219 [details]
0ad-7970.ebuild

New release. Updated dependencies a bit. Added desktop entry.
Comment 37 Elias Gabriel Amaral da Silva 2010-08-22 12:18:44 UTC
Created attachment 244021 [details]
build log using 0ad-7970 at x86

Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.35-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-gentoo-r1-x86_64-Intel-R-_Atom-TM-_CPU_N450_@_1.66GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 22 Aug 2010 05:15:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2, 4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=generic --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mssse3 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-O2 -march=core2 -mtune=generic --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mssse3 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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/local/portage/custom /usr/local/portage/gentoo-haskell"
SYNC="rsync://rsync1.br.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb branding bzip2 cairo cjk cli cracklib crypt cups curl cxx dbus dri emacs fortran gdbm gif gnutls gpm gtk iconv ipv6 java java6 jpeg laptop libnotify modules mudflap ncurses network-cron nls nptl nptlonly ocaml ocamlopt opengl openmp pam pcre pdf perl png pppd python readline reflection ruby rubygems session spl ssl startup-notification svg sysfs tcpd threads unicode vim-syntax wifi x86 xorg zlib" ALSA_CARDS="hda-intel" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 38 Richard 2010-10-20 14:21:34 UTC
Alpha 2 is out.

http://wildfiregames.com/0ad/page.php?p=13665
Comment 39 Richard 2010-10-23 15:54:06 UTC
Revision bumping the ebuild will not work. Alpha 2 introduces a dependency on the Nvidia Texture Tools.

While 0AD Alpha 2 bundles the libraries, Gentoo's policy on these things is to use system libraries, so someone will need to write an ebuild for the Nvidia Texture Tools. Also, I tried modifying the ebuild to use the bundled libraries as a hack to try out the new version, but getting the bundled libraries to work appears to require a rewrite of the ebuild.
Comment 40 Philip Taylor 2010-10-23 16:47:55 UTC
Created attachment 251721 [details]
0ad-8413.ebuild

Bumped version and made it install the bundled NVTT libraries (which seems to work for me).

Using a non-bundled NVTT package would be preferable, though it ought to be at least version 2.0.9 (not released yet) for some important bug fixes (see http://trac.wildfiregames.com/browser/ps/trunk/libraries/nvtt/README.txt).

Relatedly, the game already uses a bundled fork of FCollada (upstream disappeared and we need some bug fixes; probably we should split our forked FCollada into a standalone project so it can be a separate package), and a bundled copy of SpiderMonkey (upstream doesn't do stable releases, and we need a consistent version across distros/platforms to avoid multiplayer sync errors; don't know what would be a better solution).

Unrelatedly, if someone wants to rewrite the ebuild it'd be good to make it install into proper non-/opt locations (pass --bindir, --datadir, --libdir to update-workspaces.sh; see build/premake/premake.lua for details).
Comment 41 Richard 2010-10-23 18:35:33 UTC
(In reply to comment #40)
> Created an attachment (id=251721) [details]
> 0ad-8413.ebuild
> 
> Bumped version and made it install the bundled NVTT libraries (which seems to
> work for me).

Your changes work for me too. Unfortunately, I am not familiar enough with the 0ad build system to make those changes with the ebuild.

Does single player mode work for you? The game freezes for me when I try using it.
Comment 42 EoD 2010-11-01 14:35:50 UTC
The compilation fails if you install net-libs/enet:1.3 (parallel to net-libs/enet:0) with the following error:

../../../source/lib/external_libraries/enet.h:33:2: error: #error The game currently requires ENet 1.2.x. You are using a newer version, which has an incompatible API and network protocol. Please switch to an older version.

If 0ad depends on net-libs/enet-1.2* you might use the "/usr/lib64/libenet.so.0" library instead of the default "/usr/lib64/libenet.so"
Comment 43 Philip Taylor 2010-11-01 16:53:21 UTC
(In reply to comment #41)
> Does single player mode work for you? The game freezes for me when I try using
> it.

Works for me. (Try running from the command-line to see if it reports an error, or run in gdb and see where it's freezing.)

(In reply to comment #42)
> The compilation fails if you install net-libs/enet:1.3 (parallel to
> net-libs/enet:0)

Hmm, how do you install them in parallel? net-libs/enet-1.3.0-r1 blocks enet:0 so that shouldn't be possible. The error message isn't related to the .so files, it's the .h files, and both versions seem to use the same path (/usr/include/enet/enet.h) so we can't choose one or the other.
Comment 44 EoD 2010-11-01 19:31:33 UTC
(In reply to comment #43)
> Hmm, how do you install them in parallel? net-libs/enet-1.3.0-r1 blocks enet:0
> so that shouldn't be possible. The error message isn't related to the .so
> files, it's the .h files, and both versions seem to use the same path
> (/usr/include/enet/enet.h) so we can't choose one or the other.

They are installed in parallel. I didn't do that intentionally. I just removed and reinstalled enet:0 only. I'd be interested which package pulled in enet:1.3 .

Except for bug 65607 the game works quite fine with enet:0.
Comment 45 Matěj Laitl 2011-01-09 16:29:23 UTC
(In reply to comment #37)
> Created an attachment (id=244021) [details]
> build log using 0ad-7970 at x86
> 
> Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0,
> 2.6.35-gentoo-r1 x86_64)

Elias, I think this is due to silly arch autodetection in spidermonkey and the fact that you use 32bit userland on 64bit kernel.

I solve it by applying following patch to 0ad's SpiderMonkey:

esprimo /usr/local/portage/games-strategy/0ad # cat files/0ad-spidermonkey-respect-CHOST.patch 
diff --git a/libraries/spidermonkey-tip/build.sh b/libraries/spidermonkey-tip/build.sh
index 41fe4c5..ac4cf37 100755
--- a/libraries/spidermonkey-tip/build.sh
+++ b/libraries/spidermonkey-tip/build.sh
@@ -28,6 +28,12 @@ CONF_OPTS="--disable-tests"
 # (We don't use --enable-threadsafe because we don't use a single runtime in
 # multiple threads, so it is unnecessary complexity and performance overhead)
 
+# Gentoo addition:
+CONF_OPTS="${CONF_OPTS} \
+       ${CBUILD:+--build=${CBUILD}} \
+       ${CHOST:+--host=${CHOST}} \
+       ${CTARGET:+--target=${CTARGET}}"
+
 cd src
 
 # autoconf-2.13   # this generates ./configure, which we've added to SVN instead
@@ -39,6 +45,7 @@ cd src
 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs).*/$1-ps-debug/' Makefile.in
 mkdir -p build-debug
 cd build-debug
+echo ../configure ${CONF_OPTS} --enable-debug --disable-optimize
 ../configure ${CONF_OPTS} --enable-debug --disable-optimize
 make ${MAKE_OPTS}
 cd ..
@@ -46,6 +53,7 @@ cd ..
 perl -i.bak -pe 's/^(LIBRARY_NAME\s+= mozjs).*/$1-ps-release/' Makefile.in
 mkdir -p build-release
 cd build-release
+echo ../configure ${CONF_OPTS}
 ../configure ${CONF_OPTS}
 make ${MAKE_OPTS}
 cd ..


And by placing epatch "${FILESDIR}/0ad-spidermonkey-respect-CHOST.patch" into src_prepare() function of the ebuilds. I'll report it upstream.
Comment 46 Philip Taylor 2011-03-15 13:38:01 UTC
Created attachment 265961 [details]
0ad-9049.ebuild

New release. Added dependency on curl.
Comment 47 Buggy B. 2011-04-12 16:39:28 UTC
(In reply to comment #46)
> Created attachment 265961 [details]
> 0ad-9049.ebuild
> 
> New release. Added dependency on curl.
with this ebuild, I have:
[ebuild  N    ] dev-util/nvidia-texture-tools-2.0.8  USE="-debug" 0 kB [1]
[ebuild     U ] games-strategy/0ad-9049 [8832] USE="-debug -editor* -test" 0 kB [2=>3]
Total: 2 packages (1 upgrade, 1 new), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /var/lib/layman/nikai
 [2] /var/lib/layman/sabayon
 [3] /var/lib/layman/zugaina
--

but dev-util/nvidia-texture-tools-2.0.8 failed to compile on my Linux version 2.6.32-gentoo-r24 (root@acer1) (gcc version 4.4.5 (Gentoo 4.4.5 p1.2, pie-0.4.5) ) #3 SMP Thu Mar 10 02:49:53 MSK 2011 :
--
/usr/include/string.h:74: ошибка: старый стиль деклараций параметров в определении функции с прототипом
/usr/include/string.h:74: ошибка: опущено имя параметра
/usr/include/string.h:74: ошибка: опущено имя параметра
/usr/include/string.h:74: ошибка: опущено имя параметра
/tmp/tmpxft_0000693d_00000000-1_CompressKernel.cudafe1.stub.c:1: ошибка: expected ‘{’ at end of input
make[2]: *** [src/nvtt/CMakeFiles/nvtt.dir/CompressKernel.gen.c.o] Ошибка 1
make[1]: *** [src/nvtt/CMakeFiles/nvtt.dir/all] Ошибка 2
make: *** [all] Ошибка 2
emake failed
 * ERROR: dev-util/nvidia-texture-tools-2.0.8 failed (compile phase):
 *   Make failed!
--

and sys-libs/glibc (/usr/include/string.h) Installed versions:  2.11.3(2.2)!s{tbz2}(04:59:25 06.03.2011)(debug gd multilib nls profile -crosscompile_opts_headers-only -glibc-omitfp -hardened -selinux -vanilla)

are any ideas? does any one have nvidia-texture-tools compiled without errors and what version of GLIBC is used?

thanks.
Comment 48 Philip Taylor 2011-04-12 17:43:52 UTC
That doesn't look like this ebuild, since this one doesn't depend on nvidia-texture-tools. NVTT 2.0.8 has various bugs that cause compile errors and texture corruption, so it's not good to use that version, though it looks like there hasn't been a 2.0.9 release yet. (By default the game uses a slightly-patched bundled copy of NVTT to build with, to avoid those errors.)
Comment 49 Oisin O Malley 2011-05-22 09:23:26 UTC
Created attachment 274255 [details]
0ad-9530.ebuild

This is a ebuild for 0ad alpha 5.
Comment 50 Ooblick 2011-05-23 19:40:58 UTC
On ~amd64 the default jpeg library is now libjpeg-turbo. This gives the following error when using this ebuild:

[blocks B     ] media-libs/jpeg:0 ("media-libs/jpeg:0" is blocking media-libs/libjpeg-turbo-1.1.1)

This can be fixed by changing the "media-libs/jpeg" RDEPEND to "virtual/jpeg" which supports both libjpeg-turbo and media-libs/jpeg, in the 0ad-9530.ebuild.
Comment 51 David Heidelberg (okias) 2011-05-23 20:54:53 UTC
Created attachment 274433 [details]
0ad-9530-r1.ebuild

jpeg => virtual/jpeg;
Comment 52 Philip Taylor 2011-07-10 15:13:48 UTC
Created attachment 279649 [details]
0ad-9786.ebuild

New release (alpha 6). Changed enet dependency to newer version. Changed how the editor component is disabled.
Comment 53 Wojciech Myrda 2011-07-15 07:35:04 UTC
Created attachment 280099 [details]
0ad-9786-r1.build

according to the build instructions http://trac.wildfiregames.com/wiki/BuildInstructions#Linux the system nvtt package may be used. Ebuild reflects that change for optional package which itself is available here

http://bigvo.dyndns.org/overlay/dev-util/nvidia-texture-tools/nvidia-texture-tools-2.0.8.ebuild

P.S Build instructions require gamin to be listed as well. My guess is that should that be added too...
Comment 54 Philip Taylor 2011-07-15 11:06:31 UTC
NVTT 2.0.8 has a bug (http://code.google.com/p/nvidia-texture-tools/issues/detail?id=139) which can cause subtly erroneous output, so I'd recommend against using that particular version. (There isn't a newer version yet, so the game's bundled copy has some patches applied to fix that and some build errors - http://trac.wildfiregames.com/browser/ps/trunk/libraries/nvtt/README.txt)

The ebuild already depends on dev-libs/libgamin which is required for building, but not on app-admin/gamin for runtime - it's an optional dependency at runtime (the game will work without it, just missing some file-reloading features for developers/modders) so I don't know if it ought to be listed or not.
Comment 55 Anton Bolshakov 2011-07-28 05:56:37 UTC
Created attachment 281215 [details]
failed to compile 0ad-9786-r1.build


==== Building graphics ====
precompiled.cpp
Simulation2.cpp
cc1plus: error: obj/simulation2_Release/precompiled.h: No such file or directory
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
AutoRooters.cpp
cc1plus: error: obj/scriptinterface_Release/precompiled.h: No such file or directory
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information

NetHost.cpp
cc1plus: error: obj/network_Release/precompiled.h: No such file or directory
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
make[1]: *** [obj/scriptinterface_Release/AutoRooters.o] Error 1

Any ideas how to fix that?
Thanks.
Comment 56 Michael Schachtebeck 2011-08-04 08:39:31 UTC
(In reply to comment #53)

> according to the build instructions
> http://trac.wildfiregames.com/wiki/BuildInstructions#Linux the system nvtt
> package may be used. Ebuild reflects that change for optional package which
> itself is available here

There seems to be a bug in the ebuild - the lines

if ! use nvtt ; then
	UPDATE_ARGS="${UPDATE_ARGS} --with-system-nvtt"

should be

if use nvtt ; then
	UPDATE_ARGS="${UPDATE_ARGS} --with-system-nvtt"

instead - when USE flag nvtt is set, the shared system library should be used.
Comment 57 Anton Bolshakov 2011-09-17 14:45:23 UTC
Created attachment 286777 [details]
0ad-10288.ebuild

Version bump. I've also added the additional "pch" flag. It fixes the compilation problem on the gcc/64bit which I hit earlier.
Comment 58 Piotr Szymaniak 2011-09-17 21:51:16 UTC
Is there a bug with nvidia-texture-tools already? This bug should depend on it.
Comment 59 Anton Bolshakov 2011-09-18 05:59:05 UTC
Created attachment 286853 [details]
0ad-10288.ebuild

a small change: I removed the pch flag and disable it on amd64 only.
Also, fam wasn't working for me, "virtual/fam" fixed it.
Comment 60 Philip Taylor 2011-09-18 15:59:41 UTC
Disabling PCH shouldn't be necessary - it's always worked fine for me on amd64, and I haven't heard anyone else report the same problem. What versions of gcc and maybe ccache do you have? Can you get it to compile with "-Winvalid-pch" for more information?
Comment 61 Anton Bolshakov 2011-09-18 23:28:20 UTC
(In reply to comment #60)
> Disabling PCH shouldn't be necessary - it's always worked fine for me on amd64,

It could be the hardened profile then. Here is my gcc flags:

sys-devel/gcc-4.4.5  USE="hardened mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -graphite -gtk (-libffi) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 0 kB
Comment 62 EoD 2011-09-20 19:15:01 UTC
If I compile and install 0ad-9999 (the live version), I get the following error when I try to start it:

~ $ 0ad
./system/pyrogenesis_dbg: error while loading shared libraries: libmozjs185-ps-debug.so.1.0: cannot open shared object file: No such file or directory


Any idea where this comes from?
Comment 63 Anton Bolshakov 2011-09-21 06:21:04 UTC
(In reply to comment #62)
> libmozjs185-ps-debug.so.1.0: cannot open shared object file: No such file or
> Any idea where this comes from?

Yes, you need to modify src_install section and use that new library name instead an old one. See my ebuild for details.
Comment 64 Anton Bolshakov 2011-12-25 00:15:14 UTC
Created attachment 296893 [details]
0ad-10803.ebuild

That was the tricky one. Changes are:
 - switched to .tar.gz (app-arch/xz-utils is removed)
 - use the external dev-lang/spidermonkey by default
 - premake4 patches (see dev-util/premake files/archless.patch)

it should be possible to switch to the external dev-util/premake as well, however my second patch (see premake-script-archless.patch) need to be reviewed and applied first. I'll open a separate bug report for it.
Comment 65 Anton Bolshakov 2011-12-25 00:17:04 UTC
Created attachment 296895 [details, diff]
premake-archless.patch
Comment 66 Anton Bolshakov 2011-12-25 00:17:20 UTC
Created attachment 296897 [details, diff]
premake-script-archless.patch
Comment 67 Martin Walch 2011-12-25 10:16:30 UTC
>  - switched to .tar.gz (app-arch/xz-utils is removed)

app-arch/xz-utils may be dropped from DEPEND in any case, because it has become a part of the base profile. However, why do you want to switch from xz to gzip? The xz files are massively smaller.
Comment 68 Bash Vi 2011-12-25 10:31:10 UTC
(In reply to comment #64)
> Created attachment 296893 [details]
> 0ad-10803.ebuild
> 
> That was the tricky one. Changes are:
>  - switched to .tar.gz (app-arch/xz-utils is removed)
>  - use the external dev-lang/spidermonkey by default
>  - premake4 patches (see dev-util/premake files/archless.patch)
> 
> it should be possible to switch to the external dev-util/premake as well,
> however my second patch (see premake-script-archless.patch) need to be reviewed
> and applied first. I'll open a separate bug report for it.

Sadly, the build fails for me. It says:

==== Building pyrogenesis (release) ====
Creating obj/pyrogenesis_Release
main.cpp
Linking pyrogenesis
../../../binaries/system/libengine.a(Joystick.o): In function `CJoystick::Initialise()':
/var/tmp/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/build/workspaces/gcc/../../../source/ps/Joystick.cpp:48: undefined reference to `SDL_NumJoysticks'
/var/tmp/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/build/workspaces/gcc/../../../source/ps/Joystick.cpp:53: undefined reference to `SDL_JoystickName'
/var/tmp/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/build/workspaces/gcc/../../../source/ps/Joystick.cpp:57: undefined reference to `SDL_JoystickEventState'
/var/tmp/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/build/workspaces/gcc/../../../source/ps/Joystick.cpp:60: undefined reference to `SDL_JoystickOpen'
../../../binaries/system/libengine.a(Joystick.o): In function `CJoystick::GetAxisValue(int)':
/var/tmp/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/build/workspaces/gcc/../../../source/ps/Joystick.cpp:71: undefined reference to `SDL_JoystickNumAxes'
/var/tmp/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/build/workspaces/gcc/../../../source/ps/Joystick.cpp:74: undefined reference to `SDL_JoystickGetAxis'
collect2: ld returned 1 exit status
make[1]: *** [../../../binaries/system/pyrogenesis] Error 1
make: *** [pyrogenesis] Error 2
emake failed
Comment 69 wip 2011-12-25 11:12:20 UTC
Works for me like a charm (and took less than 5min to complete):

# emerge -u 0ad
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 3) dev-libs/nspr-4.8.9
>>> Installing (1 of 3) dev-libs/nspr-4.8.9
>>> Emerging (2 of 3) dev-lang/spidermonkey-1.8.5-r1
>>> Installing (2 of 3) dev-lang/spidermonkey-1.8.5-r1
>>> Emerging (3 of 3) games-strategy/0ad-10803 from nyx
>>> Installing (3 of 3) games-strategy/0ad-10803
>>> Jobs: 3 of 3 complete                           Load avg: 3.39, 2.77, 1.44

 * Messages for package dev-libs/nspr-4.8.9:

 * 
 * Please make sure you run revdep-rebuild after upgrade.
 * This is *extremely* important to ensure your system nspr works properly.
 * 

 * Messages for package dev-lang/spidermonkey-1.8.5-r1:

 * PT PaX marking -m
 *      /var/tmp/portage/dev-lang/spidermonkey-1.8.5-r1/image//usr/bin/js

 * Messages for package games-strategy/0ad-10803:

 * Remember, in order to play games, you have to
 * be in the 'games' group.
 * Just run 'gpasswd -a <USER> games', then have <USER> re-login.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.



(In reply to comment #68)
> (In reply to comment #64)
> > Created attachment 296893 [details]
> > 0ad-10803.ebuild
> > 
> > That was the tricky one. Changes are:
> >  - switched to .tar.gz (app-arch/xz-utils is removed)
> >  - use the external dev-lang/spidermonkey by default
> >  - premake4 patches (see dev-util/premake files/archless.patch)
> > 
> > it should be possible to switch to the external dev-util/premake as well,
> > however my second patch (see premake-script-archless.patch) need to be reviewed
> > and applied first. I'll open a separate bug report for it.
> 
> Sadly, the build fails for me. It says:
> 
[...]
Comment 70 Piotr Szymaniak 2011-12-25 11:43:47 UTC
(In reply to comment #68)
> Sadly, the build fails for me. It says:
> *snip*

Your libsdl is missing joystick USE flag?
Comment 71 Piotr Szymaniak 2011-12-25 11:50:27 UTC
Created attachment 296913 [details]
0ad-10803.ebuild

Changes:
 * sorted keywords alphabetically
 * sorted {r,}depends alphabetically
 * added missing use depend for libsdl
 * back to .xz archives
Comment 72 Anton Bolshakov 2011-12-25 14:23:48 UTC
I forgot to mention, that I don't need "--without-pch" anymore so it's commented out.

The premake suggestion is filed in the bug #395949. 
It took me 4 hours to figure it out and came up with these tiny patches, so hopefully someone with a better knowledge of ${ARCH} problem can take over from here and help to fix the root of the problem.


Happy merry xmas everyone and enjoy the game.
Comment 73 Bash Vi 2011-12-25 14:58:52 UTC
(In reply to comment #70)
> (In reply to comment #68)
> > Sadly, the build fails for me. It says:
> > *snip*
> 
> Your libsdl is missing joystick USE flag?

It is indeed. Enabling it and recompiling the lib solved the problem for me :)
Thanks a lot.

P.s. Merry Christmas :)
Comment 74 Mickaël Bucas 2012-01-07 11:05:34 UTC
Created attachment 298195 [details]
build.log
Comment 75 Mickaël Bucas 2012-01-07 11:06:30 UTC
The build of 0ad-10803.ebuild fails on my machine. It's taken from roslin overlay, and is identical to the one attached to this bug.

The message is :

make -j1 pyrogenesis Collada 
==== Building mocks_real (release) ====
Creating obj/mocks_real_Release
mocks_real.cpp
x86_64-pc-linux-gnu-g++: amd64 : Aucun fichier ou dossier de ce type
make[1]: *** [obj/mocks_real_Release/mocks_real.o] Erreur 1
make: *** [mocks_real] Erreur 2
emake failed

It does not look like a problem already reported in this bug or on Wildfire's forum or tickets.

I noticed that NVTT use flag is disabled, but NVTT is compiled anyway (see build log). My video hardware is Radeon HD 4200.

# emerge -pqv =games-strategy/0ad-10803
[ebuild  N    ] games-strategy/0ad-10803  USE="-debug -editor -nvtt -pch -test"
Comment 76 Anton Bolshakov 2012-01-07 13:25:53 UTC
Mickail,

actually, it looks exactly like the problem which my "premake-script-archless" patch is solving. Please try my ebuild and these 2 patches attached to that bug.
Comment 77 Pavel Riha 2012-01-07 22:04:53 UTC
I have the same problem (on obj/mocks_real_Release/mocks_real.o)
using ebuild from here with the two premake patches..
any idea?
Comment 78 Anton Bolshakov 2012-01-07 23:41:45 UTC
ok, it means my patch is not complete ;\, please attach emerge --info and /var/tmp/portage/games-strategy .. build/workspaces/gcc/mocks*.make.

But this is the bug #395949 really. You might want to join and help fixing it.
Comment 79 Mickaël Bucas 2012-01-07 23:42:58 UTC
I think that the problem is as follows :

 - The file build/premake/premake4/src/host/scripts.c included in the archive contains the $(ARCH) variable

 - The patch premake-script-archless.patch intends to remove this variable from the file build/premake/premake4/src/actions/make/make_cpp.lua, regenerate scripts.c, and then rebuild premake4

 - All of this is based on "make", which has a resolution of 1 second to determine if a file has been modified to rebuild a target

 - On current machines, the first build of premake4 and the regeneration of scripts.c happen within the same second, so make does not rebuild premake4

To check this, I've added a sleep between regeneration of scripts.c and premake4 rebuild, see premake-script-archless-sleep.patch attached.

I don't think it's the right solution, but the build has completed successfully.
Comment 80 Mickaël Bucas 2012-01-07 23:44:27 UTC
Created attachment 298289 [details, diff]
premake-script-archless-sleep.patch

Modified by hand from premake-script-archless.patch
Comment 81 Anton Bolshakov 2012-01-07 23:56:40 UTC
Thanks Mickaël nice finding.
The "right" solution would be to patch the external dev-util/premake-4.3 and modify the update-workspaces.sh to use it instead of that woodoo with build-in premake ;-)
Comment 82 Philip Taylor 2012-01-11 17:52:04 UTC
An external dev-util/premake-4.3 won't work since the game depends on various custom changes to Premake to add features and fix errors, and the changes might not be compatible with other applications that use Premake. (The vague goal is to converge with standard Premake at some point in the future, but that's not possible yet.)

Since we already have plenty of custom changes, and I don't know why Premake is trying to use ARCH, I added the ARCH removal in http://trac.wildfiregames.com/changeset/10894 (though that won't help for the old alpha release).
Comment 83 Piotr Szymaniak 2012-03-06 23:02:43 UTC
Created attachment 304481 [details]
0ad-10803.ebuild

Added missing "X" use depend for libsdl.
Comment 84 mardi_soir 2012-03-15 20:59:58 UTC
nvcc warning : option 'host-compilation' has been deprecated and is ignored
In file included from /opt/cuda/include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/opt/cuda/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.6 and up are not supported!
make[3]: *** [src/nvtt/CompressKernel.gen.cpp] Error 1
make[2]: *** [src/nvtt/CMakeFiles/nvtt.dir/all] Error 2
make[1]: *** [src/nvtt/CMakeFiles/nvtt.dir/rule] Error 2
make: *** [nvtt] Error 2
ERROR: NVTT build failed
Comment 85 megabaks 2012-03-16 17:06:14 UTC
(In reply to comment #84)
> /opt/cuda/include/host_config.h:82:2: error: #error -- unsupported GNU
> version! gcc 4.6 and up are not supported!
oh...
==========
#COMPILERS
if [ -f ${ROOT}/etc/portage/package.compilers ]; then
  while read target ver; do
   if [ "${target}" = "${CATEGORY}/${PN}" ]; then
    MY_GCC="$(find /usr/$MACHTYPE/gcc-bin/ -name "$ver*")"
    export ROOTPATH="${MY_GCC}:${ROOTPATH}"
    export PATH="${MY_GCC}:${PATH}"
    export LIBRARY_PATH="$(gcc-config -L):${LIBRARY_PATH}"
   fi
  done < ${ROOT}/etc/portage/package.compilers
fi
==========
in /etc/portage/bashrc
echo "category/package 4.4" >> /etc/portage/package.compilers
enjoy
Comment 86 Igor Ulyanov 2012-03-25 14:21:39 UTC
Linking pyrogenesis
/usr/lib64/libIlmThread.so.6: undefined reference to `std::_List_node_base::_M_unhook()@GLIBCXX_3.4.14'
/usr/lib64/libIlmThread.so.6: undefined reference to `std::_List_node_base::_M_hook(std::_List_node_base*)@GLIBCXX_3.4.14'
Comment 87 Anton Bolshakov 2012-03-25 14:34:47 UTC
(In reply to comment #86)

Igor, you need to be more specific then that.
Please try to provide steps which lead you to that error so people could reproduce it and try to help you.
Comment 88 Igor Ulyanov 2012-03-25 15:01:36 UTC
media-libs/ilmbase should also be compiled the same compiler version, so

echo "media-libs/ilmbase 4.4" >> /etc/portage/package.compilers

fixes previous comment issue
Comment 89 Bash Vi 2012-03-27 18:04:44 UTC
Created attachment 306879 [details]
ebuild for 0 A.D. Alpha 9

This builds for me on Gentoo Linux x86_64 Kernel 3.0.17.
I don't no if I did it correct though. All I did was uncomenting the patches and renaming the file...
All I did for testing was building on my machine, start the game and start a singleplayer match.
Comment 90 Abel Stern 2012-03-28 13:31:21 UTC
To be sure, the version number for alpha 9 is 11339, so the ebuild would be named '0ad-11339.ebuild' locally.
Comment 91 Stéphane 2012-04-09 14:28:00 UTC
Hi all...

I just tried to install the game (emerge 0ad release 10803-alpha)but it fails several times :

first one, when I launch emerge, I got this :

...
FColladaPlugins/FArchiveXML/FAXPhysicsImport.cpp
g++ -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -DLINUX -fpic  -fno-strict-aliasing -O1 -DNDEBUG -DRETAIL -IFCollada `pkg-config libxml-2.0 --cflags` -MD -MF output/release/FColladaPlugins/FArchiveXML/FAXPhysicsImport.d -c FColladaPlugins/FArchiveXML/FAXPhysicsImport.cpp -o output/release/FColladaPlugins/FArchiveXML/FAXPhysicsImport.o
FColladaPlugins/FArchiveXML/FAXSceneExport.cpp
g++ -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -DLINUX -fpic  -fno-strict-aliasing -O1 -DNDEBUG -DRETAIL -IFCollada `pkg-config libxml-2.0 --cflags` -MD -MF output/release/FColladaPlugins/FArchiveXML/FAXSceneExport.d -c FColladaPlugins/FArchiveXML/FAXSceneExport.cpp -o output/release/FColladaPlugins/FArchiveXML/FAXSceneExport.o
FColladaPlugins/FArchiveXML/FAXSceneImport.cpp
g++ -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function -DLINUX -fpic  -fno-strict-aliasing -O1 -DNDEBUG -DRETAIL -IFCollada `pkg-config libxml-2.0 --cflags` -MD -MF output/release/FColladaPlugins/FArchiveXML/FAXSceneImport.d -c FColladaPlugins/FArchiveXML/FAXSceneImport.cpp -o output/release/FColladaPlugins/FArchiveXML/FAXSceneImport.o
output/libFColladaSD.a
output/libFColladaSR.a
cp output/libFColladaSD.a ../lib/libFColladaSD.a
cp output/libFColladaSR.a ../lib/libFColladaSR.a


Building NVTT...

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Setting optimal options
--   Processor: Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
--   Compiler Flags: -O2 -fomit-frame-pointer -march=native 
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so 
-- Looking for OpenGL - found
-- Looking for GLUT - found
-- Looking for DirectX - not found
-- Looking for GLEW - found
-- Looking for Cg - not found
-- Looking for CUDA - found
-- Looking for Maya - not found
-- Found JPEG: /usr/lib64/libjpeg.so 
-- Looking for JPEG - found
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.5")
-- Found PNG: /usr/lib64/libpng.so 
-- Looking for PNG - found
-- Found TIFF: /usr/lib64/libtiff.so 
-- Looking for TIFF - found
-- Looking for OpenEXR - not found
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.7.4")
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Use thread library: -lpthread
-- Looking for include files HAVE_UNISTD_H
-- Looking for include files HAVE_UNISTD_H - found
-- Looking for include files HAVE_STDARG_H
-- Looking for include files HAVE_STDARG_H - found
-- Looking for include files HAVE_SIGNAL_H
-- Looking for include files HAVE_SIGNAL_H - found
-- Looking for include files HAVE_EXECINFO_H
-- Looking for include files HAVE_EXECINFO_H - found
-- Looking for include files HAVE_MALLOC_H
-- Looking for include files HAVE_MALLOC_H - found
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/libraries/nvtt/src/build
Scanning dependencies of target squish
Scanning dependencies of target nvcore                                                                                  
[  2%] [  4%] Building CXX object src/nvcore/CMakeFiles/nvcore.dir/Memory.cpp.o                                         
Building CXX object src/nvtt/squish/CMakeFiles/squish.dir/fastclusterfit.cpp.o                                          
[  6%] [  8%] Building CXX object src/nvtt/squish/CMakeFiles/squish.dir/weightedclusterfit.cpp.o                        
Building CXX object src/nvcore/CMakeFiles/nvcore.dir/Debug.cpp.o                                                        
[ 11%] Building CXX object src/nvtt/squish/CMakeFiles/squish.dir/colourblock.cpp.o                                      
[ 13%] Building CXX object src/nvtt/squish/CMakeFiles/squish.dir/colourfit.cpp.o                                        
[ 15%] Building CXX object src/nvtt/squish/CMakeFiles/squish.dir/colourset.cpp.o                                        
[ 17%] Building CXX object src/nvcore/CMakeFiles/nvcore.dir/StrLib.cpp.o                                                
[ 20%] Building CXX object src/nvtt/squish/CMakeFiles/squish.dir/maths.cpp.o                                            
Linking CXX static library libsquish.a                                                                                  
[ 22%] Building CXX object src/nvcore/CMakeFiles/nvcore.dir/TextReader.cpp.o                                            
[ 22%] Built target squish                                                                                              
[ 24%] Building CXX object src/nvcore/CMakeFiles/nvcore.dir/TextWriter.cpp.o
Scanning dependencies of target posh                                                                                    
[ 26%] Building C object src/nvcore/poshlib/CMakeFiles/posh.dir/posh.c.o                                                
Linking C static library libposh.a                                                                                      
[ 28%] Building CXX object src/nvcore/CMakeFiles/nvcore.dir/Radix.cpp.o                                                 
[ 28%] Built target posh                                                                                                
[ 31%] Building CXX object src/nvcore/CMakeFiles/nvcore.dir/Library.cpp.o
Linking CXX shared library libnvcore.so                                                                                 
[ 31%] Built target nvcore                                                                                              
Scanning dependencies of target nvmath
[ 33%] [ 35%] Building CXX object src/nvmath/CMakeFiles/nvmath.dir/Montecarlo.cpp.o                                     
Building CXX object src/nvmath/CMakeFiles/nvmath.dir/Random.cpp.o                                                       
[ 37%] [ 40%] Building CXX object src/nvmath/CMakeFiles/nvmath.dir/SphericalHarmonic.cpp.o                              
Building CXX object src/nvmath/CMakeFiles/nvmath.dir/Basis.cpp.o                                                        
[ 42%] Building CXX object src/nvmath/CMakeFiles/nvmath.dir/Triangle.cpp.o                                              
[ 44%] Building CXX object src/nvmath/CMakeFiles/nvmath.dir/TriBox.cpp.o                                                
Linking CXX shared library libnvmath.so                                                                                 
[ 44%] Built target nvmath                                                                                              
Scanning dependencies of target nvimage
[ 48%] [ 48%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/Filter.cpp.o                                       
Building CXX object src/nvimage/CMakeFiles/nvimage.dir/FloatImage.cpp.o                                                 
[ 51%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/Image.cpp.o                                               
[ 53%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/ImageIO.cpp.o                                             
[ 55%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/ColorBlock.cpp.o                                          
[ 57%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/BlockDXT.cpp.o                                            
[ 60%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/HoleFilling.cpp.o                                         
[ 62%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/DirectDrawSurface.cpp.o                                   
[ 64%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/Quantize.cpp.o                                            
[ 66%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/NormalMap.cpp.o                                           
[ 68%] Building CXX object src/nvimage/CMakeFiles/nvimage.dir/NormalMipmap.cpp.o                                        
Linking CXX shared library libnvimage.so                                                                                
[ 68%] Built target nvimage                                                                                             
[ 71%] Generating CompressKernel.gen.cpp
Scanning dependencies of target nvtt                                                                                    
[ 73%] [ 75%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/nvtt.cpp.o                                               
Building CXX object src/nvtt/CMakeFiles/nvtt.dir/Compressor.cpp.o                                                       
[ 77%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/nvtt_wrapper.cpp.o                                              
[ 80%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/CompressDXT.cpp.o                                               
[ 82%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/CompressRGB.cpp.o                                               
[ 84%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/QuickCompressDXT.cpp.o                                          
[ 86%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/OptimalCompressDXT.cpp.o                                        
[ 88%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/CompressionOptions.cpp.o                                        
[ 91%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/InputOptions.cpp.o                                              
[ 93%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/OutputOptions.cpp.o                                             
[ 95%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/cuda/CudaUtils.cpp.o                                            
[ 97%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/cuda/CudaCompressDXT.cpp.o                                      
[100%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/CompressKernel.gen.cpp.o                                        
/tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/libraries/nvtt/src/src/nvtt/cuda/CudaMath.h:127:52: erreur: inline function ‘float3 _Z16firstEigenVectorPf(float*)’ cannot be declared weak
/opt/cuda/bin/../include/cuda_runtime.h:184:57: erreur: inline function ‘cudaError_t _Z18cudaMemcpyToSymbolI6float3E9cudaErrorRKT_PKvmm14cudaMemcpyKind(const float3*, const void*, size_t, size_t, cudaMemcpyKind)’ cannot be declared weak
/tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/libraries/nvtt/src/src/nvtt/cuda/CompressKernel.cu:313:57: erreur: uninitialized const ‘alphaTable4__cuda_shadow_variable__’
/tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/libraries/nvtt/src/src/nvtt/cuda/CompressKernel.cu:314:57: erreur: uninitialized const ‘alphaTable3__cuda_shadow_variable__’
/tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/libraries/nvtt/src/src/nvtt/cuda/CompressKernel.cu:315:51: erreur: uninitialized const ‘prods4__cuda_shadow_variable__’
/tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/libraries/nvtt/src/src/nvtt/cuda/CompressKernel.cu:316:51: erreur: uninitialized const ‘prods3__cuda_shadow_variable__’
/tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/libraries/nvtt/src/src/nvtt/cuda/CudaMath.h:127:46: erreur: inline function ‘float3 _Z16firstEigenVectorPf(float*)’ cannot be declared weak
/opt/cuda/bin/../include/cuda_runtime.h:184:51: erreur: inline function ‘cudaError_t _Z18cudaMemcpyToSymbolI6float3E9cudaErrorRKT_PKvmm14cudaMemcpyKind(const float3*, const void*, size_t, size_t, cudaMemcpyKind)’ cannot be declared weak
make[3]: *** [src/nvtt/CMakeFiles/nvtt.dir/CompressKernel.gen.cpp.o] Erreur 1
make[2]: *** [src/nvtt/CMakeFiles/nvtt.dir/all] Erreur 2
make[1]: *** [src/nvtt/CMakeFiles/nvtt.dir/rule] Erreur 2
make: *** [nvtt] Erreur 2
ERROR: NVTT build failed
 * ERROR: games-strategy/0ad-10803 failed (compile phase):
 *   update-workspaces.sh failed
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2317:  Called die
 * The specific snippet of code:
 *       ./update-workspaces.sh ${UPDATE_ARGS} || die "update-workspaces.sh failed";
 * 
 * If you need support, post the output of 'emerge --info =games-strategy/0ad-10803',
 * the complete build log and the output of 'emerge -pqv =games-strategy/0ad-10803'.
 * This ebuild is from an overlay named 'bgo': '/var/lib/layman/bgo-overlay/'
 * The complete build log is located at '/var/log/portage/games-strategy:0ad-10803:20120409-140949.log'.
 * The ebuild environment file is located at '/tmp_portage/portage/games-strategy/0ad-10803/temp/environment'.
 * S: '/tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha'

 * Messages for package games-strategy/0ad-10803:

 * ERROR: games-strategy/0ad-10803 failed (compile phase):
 *   update-workspaces.sh failed
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2317:  Called die
 * The specific snippet of code:
 *       ./update-workspaces.sh ${UPDATE_ARGS} || die "update-workspaces.sh failed";
 * 
 * If you need support, post the output of 'emerge --info =games-strategy/0ad-10803',
 * the complete build log and the output of 'emerge -pqv =games-strategy/0ad-10803'.
 * This ebuild is from an overlay named 'bgo': '/var/lib/layman/bgo-overlay/'
 * The complete build log is located at '/var/log/portage/games-strategy:0ad-10803:20120409-140949.log'.
 * The ebuild environment file is located at '/tmp_portage/portage/games-strategy/0ad-10803/temp/environment'.
 * S: '/tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha'

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

16:18 root@luciole /home/stephane # 

On a ubuntu forum, I have found a solution. It's about to go in the build directory (I have  /tmp_portage/portage/games-strategy/0ad-10803/work/0ad-r10803-alpha/build ) and make

cd workspace
./clean-workspaces.sh
./update-workspaces.sh

after that, going in the gcc directory created and run "make".

The compile seems to go on. But when we are done, there's no clue how to get in installed (in /opt or in /usr either the way chosen).

hope to have given you few things to go on !
Comment 92 Julian Ospald 2012-04-14 18:55:45 UTC
Created attachment 308967 [details]
0ad-11339_alpha9.ebuild

Thanks for the ebuild, I hope you don't mind when I clean up the bug report a bit:
- fixed the dependencies
- patched the build system of 3rd party fcollada to respect system flags
- removed debug-useflag (we use compiler flags for that)
- re-added "--without-pch" (this works, but on live-ebuilds this is potentially broken, see 2nd comment http://trac.wildfiregames.com/ticket/1313 )
- added audio useflag
- added fam useflag (we generally don't want fam on linux)
- split ebuilds into 0ad and 0ad-data
- a few style improvements

I have also updated the ebuild for dev-util/nvidia-texture-tool.
Comment 93 Julian Ospald 2012-04-14 18:56:34 UTC
Created attachment 308969 [details]
0ad-data-11339_alpha9.ebuild
Comment 94 Julian Ospald 2012-04-14 18:57:07 UTC
Created attachment 308971 [details]
0ad-99999.ebuild
Comment 95 Julian Ospald 2012-04-14 18:57:30 UTC
Created attachment 308973 [details, diff]
11339_alpha9-fcollada-makefile.patch
Comment 96 Philip Taylor 2012-04-14 20:47:45 UTC
(In reply to comment #92)
> Thanks for the ebuild, I hope you don't mind when I clean up the bug report
> a bit

Thanks for that! A few suggestions/questions:

- Would there be any advantage in using mirror://sourceforge/ in SRC_URI? (releases.wildfiregames.com just redirects to SF, and will do so for the foreseeable future; I don't know whether mirror:// allows any useful cleverer mirror-selection)
- spidermonkey dependency should be '=', not '>=', because future SpiderMonkeys won't be source-compatible with 1.8.5
- libsdl shouldn't need audio? USE flag (the game doesn't use SDL audio)
- wxGTK needs opengl USE flag
- emake shouldn't have "CONFIG=Release" (the syntax changed so it's "config=release" now, but release mode is the default so it's not needed at all)
- I don't think nvtt should be optional - disabling it will break important functionality with ugly error messages (at least once we have some usable mod support in the game, hopefully soon). The --without-nvtt build option is a hack for experimental Android support, it's not meant to actually be used.
- FCollada Makefile patch is in http://trac.wildfiregames.com/changeset/11501/
- "we generally don't want fam on linux" - why not? (The game uses it so modders can edit data files while the game is running and it'll automatically reload them. Is there any better alternative?)
Comment 97 Julian Ospald 2012-04-14 21:49:40 UTC
thanks, fixed your suggestions and uploaded them to the official user-overlay "sunrise"

from now on see here
beta-repo (don't add this as an overlay!):
http://overlays.gentoo.org/proj/sunrise/browser/games-strategy/0ad
http://overlays.gentoo.org/proj/sunrise/browser/games-strategy/0ad-data

after the repo has been reviewed by the devs those ebuilds will be accessible on sunrise:
http://git.overlays.gentoo.org/gitweb/?p=proj/sunrise-reviewed.git;a=tree;f=games-strategy/0ad
http://git.overlays.gentoo.org/gitweb/?p=proj/sunrise-reviewed.git;a=tree;f=games-strategy/0ad-data

On Linux we have INOTIFY instead of fam which is superior. You can still enable it, but the default should be not to.
Comment 98 Philip Taylor 2012-04-14 22:02:43 UTC
(In reply to comment #97)
> On Linux we have INOTIFY instead of fam which is superior.

virtual/fam is provided by dev-libs/libgamin, which uses inotify (per http://people.gnome.org/~veillard/gamin/differences.html) - is that fine, or would it be better to change to the raw inotify API instead?
Comment 99 Samuli Suominen (RETIRED) gentoo-dev 2012-04-14 22:17:45 UTC
(In reply to comment #98)
> (In reply to comment #97)
> > On Linux we have INOTIFY instead of fam which is superior.
> 
> virtual/fam is provided by dev-libs/libgamin, which uses inotify (per
> http://people.gnome.org/~veillard/gamin/differences.html) - is that fine, or
> would it be better to change to the raw inotify API instead?

If you can avoid virtual/fam (fam or gamin) and use the inotify directly, that's better. 
Gamin is like a middle-step away from the original FAM, and both of them are now unmaintained.
Comment 100 Maciej Piechotka 2012-04-15 20:27:16 UTC
(In reply to comment #96)
> (In reply to comment #92)
> > Thanks for the ebuild, I hope you don't mind when I clean up the bug report
> > a bit
> 
> Thanks for that! A few suggestions/questions:
> 
> - Would there be any advantage in using mirror://sourceforge/ in SRC_URI?
> (releases.wildfiregames.com just redirects to SF, and will do so for the
> foreseeable future; I don't know whether mirror:// allows any useful
> cleverer mirror-selection)

At least some package managers (paludis) allow mirror selection for sourseforge.
Comment 101 Stefan Cristian 2012-04-24 11:40:12 UTC
Added a noCUDAdep patch in sabayon for-gentoo.git in order for 0ad to compile with or without CUDA-3/4. Before this, when you had CUDA-4 installed, 0ad couldn't compile with or without nvtt. Hope it's useful for you guys :)
Comment 102 Julian Ospald 2012-04-24 13:45:25 UTC
could you provide a link or attach a file? I am lazy
Comment 103 Julian Ospald 2012-04-24 14:29:08 UTC
I think you are referring to the nvidia-texture-tools patch

https://bugs.gentoo.org/show_bug.cgi?id=407191

Since we foce with-system-nvtt and the cuda-patch is already applied in sunrise's nvidia-texture-tools it is not an issue for 0ad in sunrise.
But right, 0ad upstream could/should also provide this for the bundled nvtt sources. I will try to send that build system patch to nvidia upstream too.

however I just noticed the nvtt flag is missing from the sunrise-ebuild (it is currently forced and the test-phase ignored) but is present in the ebuild attached to this bug, I will fix that.
Comment 104 Julian Ospald 2012-04-24 14:34:53 UTC
oh, I forgot, we shouldn't provide a useflag for nvtt because upstream said so :)

gonna fix the test-phase anyway
Comment 105 Philip Taylor 2012-04-24 14:35:50 UTC
(In reply to comment #103)
> 0ad upstream could/should also provide this for the bundled nvtt sources.

That was done in http://trac.wildfiregames.com/changeset/11502
Comment 106 Julian Ospald 2012-04-24 14:57:39 UTC
oh, one step ahead :)
Was that patch sent to nvidia upstream yet?

btw. people should not use the attached ebuilds, I will not update them anymore. Use sunrise-overlay.

fixed test-phase: http://overlays.gentoo.org/proj/sunrise/changeset/3ea67a550095d47af44ec57f7f70ad5c9f9fa430/


however test-phase currently fails when fam is not installed even though "--without-fam" is set.
Ideas on that from upstream?  ( ld: cannot find -lfam )
Comment 107 Philip Taylor 2012-04-24 15:19:50 UTC
(In reply to comment #106)
> Was that patch sent to nvidia upstream yet?

No.

> however test-phase currently fails when fam is not installed even though
> "--without-fam" is set.
> Ideas on that from upstream?  ( ld: cannot find -lfam )

Oops - http://trac.wildfiregames.com/changeset/11661 should fix that (though I've not tested it).
Comment 108 Julian Ospald 2012-04-24 15:52:08 UTC
(In reply to comment #107)
> Oops - http://trac.wildfiregames.com/changeset/11661 should fix that (though
> I've not tested it).

confirmed, it works, thanks for the quick fix.

added the patch to the 0ad-11339_alpha9.ebuild

http://overlays.gentoo.org/proj/sunrise/changeset/ee868ea5902e18769ba76410e056a95bda034bc2/
Comment 109 Matěj Laitl 2012-05-18 14:29:14 UTC
Julian, alpha 10 was released, do you plan to update the ebuild in sunrise overlay? It seems that dropping backported patches can be the only change.
Comment 110 Julian Ospald 2012-05-18 15:15:10 UTC
I can't/won't commit to sunrise anymore.

It's a user-overlay. We discussed whether we should import 0ad into the main tree but decided that we will wait for the first beta-release.

until then I'm maintaining 0ad in "hasufell" overlay (already updated there)
https://github.com/hasufell/hasufell-overlay/tree/master/games-strategy/0ad

# layman -a hasufell

feel free to also update it in sunrise if you want.
Comment 111 Matěj Laitl 2012-05-19 10:36:25 UTC
(In reply to comment #110)
> I can't/won't commit to sunrise anymore.
> 
> It's a user-overlay. We discussed whether we should import 0ad into the main
> tree but decided that we will wait for the first beta-release.

Ah, interesting, I didn't know that you shouldn't commit to sunrise once you become a regular developer.

I would vote for adding it to tree right away (if you're willing to maintain it) as there is a strong demand for it, the latest alphas are already polished more that average game in games-* and because availability in main tree would promote 0 A.D. even more for the benefit of the 0. A.D. team.

> until then I'm maintaining 0ad in "hasufell" overlay (already updated there)
> https://github.com/hasufell/hasufell-overlay/tree/master/games-strategy/0ad
> 
> # layman -a hasufell
> 
> feel free to also update it in sunrise if you want.

I'm fine with using your overlay, we just didn't know about it. I would prefer if the ebuild was removed from the sunrise so that people use your updated one abd don't duplicate effort on maintaining another copy.

Cheers and thanks for your work on 0 A.D. in Gentoo.
Comment 112 RedEyedMan 2012-09-09 21:23:48 UTC
Created attachment 323336 [details]
Ebuild for 0 A.D. Alpha 11 Kronos

Ebuild for 0 A.D. Alpha 11 Kronos tested by me.
Comment 113 Julian Ospald 2012-09-09 21:28:54 UTC
(In reply to comment #112)
> Created attachment 323336 [details]
> Ebuild for 0 A.D. Alpha 11 Kronos
> 
> Ebuild for 0 A.D. Alpha 11 Kronos tested by me.

it's already updated in my overlay, if you have suggestions on how to improve it/have issues please use the github tracker, so we don't duplicate work.

https://github.com/hasufell/hasufell-overlay/issues
Comment 114 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-01-08 15:13:25 UTC
*** Bug 450898 has been marked as a duplicate of this bug. ***
Comment 115 C. Wijtmans 2013-01-23 14:12:30 UTC
hi, i was wondering if we can move some games like 0ad to gamerlay?
Comment 116 Julian Ospald 2013-01-23 14:55:25 UTC
(In reply to comment #115)
> hi, i was wondering if we can move some games like 0ad to gamerlay?

why? I maintain it in my overlay and _only_ there. All other ebuilds are not supported by myself. (Feel free to fork it however)

Once 0ad reaches a state we think is appropriate we will include it in the main tree.
Comment 117 Andrew Savchenko gentoo-dev 2013-01-23 17:19:53 UTC
(In reply to comment #116)
> why? I maintain it in my overlay and _only_ there. All other ebuilds are not
> supported by myself. (Feel free to fork it however)

Consider ordinary users for a bit. If for any new game they'll have to include some random overlay, that will be a mess.

As far as I understand, this is exactly is what gamerlay was created for: to be a staging ground for a new games. (New in terms of portage view, not necessearely new as a game itself. And well, there is a games overlay too, I don't understand why both are needed.) Anyway ideally users have to just add a single overlay dedicated for not-yet-in-tree games.
 
Of course, this is your right to support your ebuild whenever you want, but you position looks too egocentric for me at this moment.
Comment 118 Matěj Laitl 2013-01-23 17:22:50 UTC
(In reply to comment #117)
> (In reply to comment #116)
> > why? I maintain it in my overlay and _only_ there. All other ebuilds are not
> > supported by myself. (Feel free to fork it however)
> 
> Consider ordinary users for a bit. If for any new game they'll have to
> include some random overlay, that will be a mess.

I'm pretty fine with hasufell's overlay and I can be only grateful towards Julian for maintaining the ebuild.
Comment 119 Julian Ospald 2013-01-23 17:35:10 UTC
(In reply to comment #117)
> (In reply to comment #116)
> > why? I maintain it in my overlay and _only_ there. All other ebuilds are not
> > supported by myself. (Feel free to fork it however)
> 
> Consider ordinary users for a bit. If for any new game they'll have to
> include some random overlay, that will be a mess.

It is not a random overlay, this is my gentoo developer overlay where I host multiple games which are not ready for the tree yet, unsupportable or live ebuilds.

> 
> As far as I understand, this is exactly is what gamerlay was created for: to
> be a staging ground for a new games. (New in terms of portage view, not
> necessearely new as a game itself. And well, there is a games overlay too, I
> don't understand why both are needed.) Anyway ideally users have to just add
> a single overlay dedicated for not-yet-in-tree games.
>  
> Of course, this is your right to support your ebuild whenever you want, but
> you position looks too egocentric for me at this moment.

gamerlay is a trashcan for quick ebuilds and I will not contribute anything there, feel free to do that yourself, but don't expect any help from me.
The few ebuilds I imported from gamerlay to the tree were a mess and almost took a complete rewrite.

Also, I file bugs at 0ad upstream, backport patches and are in direct touch with those developers. If you think that is egocentric, I am sorry.
You might also find egocentric that I am a sunrise dev and give ebuild reviews for free.
I strongly advise people to contribute to sunrise instead of gamerlay where you got no QA whatsoever. It is not a real developer overlay and not a real user overlay, but sunrise is open for _every_ user and all ebuilds pass a review, so the end-user profits from that too.
http://www.gentoo.org/proj/en/sunrise/

Btw., those ebuilds are under GPL-2, so you can fork, copy, do (almost) whatever you want anywhere.
Comment 120 C. Wijtmans 2013-01-23 22:02:51 UTC
I didnt mean to offend anyone but i got steam and grimrock from the gamerlay and someone was kind enough to start adding overgrowth to the overlay and planning to add some other games from indiebundle. Not really sure if its a good idea to add a dozen overlays because games are scattered all over the place.. what is gentoo really worth if we dont want to contribute to eachothers overlays?
Comment 121 Matěj Laitl 2013-01-23 22:37:13 UTC
(In reply to comment #120)
> I didnt mean to offend anyone but i got steam and grimrock from the gamerlay
> and someone was kind enough to start adding overgrowth to the overlay and
> planning to add some other games from indiebundle. (...)

Guys, please don't discourage Julian even more, you should be thankful for his work, not persuade him to do what *you* think is better.

The plan is clear, in his overlay until mature enough, then more to main tree. I don't see anyting wrong with it.
Comment 122 C. Wijtmans 2013-01-24 18:17:31 UTC
All i wondered is if someone could add the 0ad ebuild to the gamerlay overlay. I appreciate that people spent their time to make the ebuilds, i tried several times but i am just not good at it or got the time for it to make a proper one. Games are the only relaxation time i have and even then they are also a job for me. I also don't want to add a dozen overlays because i am afraid it will cause some conflictions with dependencies. I didnt mean to offend anyone.
Comment 123 Julian Ospald 2013-01-24 18:28:02 UTC
(In reply to comment #122)
> because i am afraid it will cause some conflictions with dependencies.

my overlay does not. It is 100% portage tree compatible and does not overwrite any existing libs with fun-stuff. I cannot say that for other overlays.

Also, make yourself familiar with overlay priority https://wiki.gentoo.org/wiki/Overlay#Overlay_priorities

and package.mask. You can mask a whole overlay via
*/*::gamerlay
and unmask particular packages from the same overlay in package.unmask:
games-strategy/foo::gamerlay

But this is offtopic, ask basic questions like that in #gentoo on IRC or the ML.

What you are suggesting is to duplicate work and confuse users which ebuild to pick, just because you have difficulties to manage your overlays.
Comment 124 C. Wijtmans 2013-01-24 20:05:20 UTC
(In reply to comment #123)
erlay
> 
> But this is offtopic, ask basic questions like that in #gentoo on IRC or the
> ML.

Where did you see a question? You started going off topic, all i asked was someone to add 0ad to the gamerlay

> 
> What you are suggesting is to duplicate work and confuse users which ebuild
> to pick, just because you have difficulties to manage your overlays.

I dont have difficulty managing my overlays because i dont add an overlay just to get one game. I think you have ego issues.
Comment 125 Matěj Laitl 2013-01-24 20:11:01 UTC
(In reply to comment #124)
> (In reply to comment #123)
> > But this is offtopic, ask basic questions like that in #gentoo on IRC or the
> > ML.
> 
> Where did you see a question? You started going off topic, all i asked was
> someone to add 0ad to the gamerlay

The question was implied, because you really have apparent difficulties managing our overlays.

> > What you are suggesting is to duplicate work and confuse users which ebuild
> > to pick, just because you have difficulties to manage your overlays.
> 
> I dont have difficulty managing my overlays because i dont add an overlay
> just to get one game. I think you have ego issues.

OMG please stop it, such comments don't help anybody. Really. Pretty please.
Comment 126 C. Wijtmans 2013-01-24 20:14:10 UTC
(In reply to comment #125)
> The question was implied, because you really have apparent difficulties
> managing our overlays.

This is plain paranoia.
All i asked was someone to add 0ad to the gamerlay and everyone goes offtopic then you blame me for people going off topic.
Gentoo really starts to SUCK, you people are mental.
Comment 127 Sobhan Mohammadpour (RETIRED) gentoo-dev 2013-01-24 20:30:31 UTC
(In reply to comment #126)
> (In reply to comment #125)
> > The question was implied, because you really have apparent difficulties
> > managing our overlays.
> 
> This is plain paranoia.
> All i asked was someone to add 0ad to the gamerlay and everyone goes
> offtopic then you blame me for people going off topic.
> Gentoo really starts to SUCK, you people are mental.

i think respect must be rule and you can't force ANY ONE to do any thing for you. note that you don't pay devs money like windows . even windows won't change any thing for you
Comment 128 Julian Ospald 2013-01-24 20:36:58 UTC
(In reply to comment #126)
> All i asked was someone to add 0ad to the gamerlay

You seem unable to listen

1. you can do that yourself (which also means to keep up with every version bump/change there is)
2. you can even do that in sunrise

so stop asking other people to do your work in order to please your overlay-preferences.

This really reminds me of ubuntu users behavior.
Comment 129 Sobhan Mohammadpour (RETIRED) gentoo-dev 2013-01-24 21:20:06 UTC
btw hasufell ty for your overlay
Comment 130 David Heidelberg (okias) 2013-05-27 21:17:36 UTC
Please get it into portage.
Comment 131 Nils Freydank 2014-01-17 23:20:32 UTC
I rewrote an 0ad-9999 ebuild with slot support (full svn installation + 'stable' alpha releases are possible due to different slots).
Later I wrote also an ebuild for depencies only, so you can install the deps via portage and use the SVN tree as described here:

http://trac.wildfiregames.com/wiki/BuildInstructions#Linux

ATM I host the ebuilds on out-of-layman-overlay, but feel free to add it to other overlays or the official tree:

https://git.rout0r.org/fluxnet/overlay

Kind regards,
holgersson
Comment 132 Nils Freydank 2014-01-17 23:21:33 UTC
Created attachment 368060 [details]
0ad-9999 with slot "svn"
Comment 133 Nils Freydank 2014-01-17 23:22:31 UTC
Created attachment 368062 [details]
metadata.xml for 0ad-9999 with svn slot.
Comment 134 Nils Freydank 2014-01-17 23:23:56 UTC
Created attachment 368064 [details]
0ad-9999 svn DEP-EBUILD (won't build any game data, only deps).

metadata.xml would be same as for 0ad-9999 (svn).
Comment 135 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-01 13:12:48 UTC
*** Bug 499930 has been marked as a duplicate of this bug. ***
Comment 136 Julian Ospald 2014-05-21 18:09:37 UTC
+*0ad-0.0.16_alpha (21 May 2014)
+
+  21 May 2014; Julian Ospald <hasufell@gentoo.org> +0ad-0.0.16_alpha.ebuild,
+  +files/0ad-0.0.16_alpha-gentoo.patch, +metadata.xml:
+  initial import wrt #278541

+*0ad-data-0.0.16_alpha (21 May 2014)
+
+  21 May 2014; Julian Ospald <hasufell@gentoo.org>
+  +0ad-data-0.0.16_alpha.ebuild, +metadata.xml:
+  initial import wrt #278541
Comment 137 Julian Ospald 2014-05-21 18:10:19 UTC
if you previously had some overlay ebuilds, then you probably want to re-emerge

emerge -av 0ad::gentoo

because the versioning has changed