Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48062 - ebuild: games-strategy/netherearth
Summary: ebuild: games-strategy/netherearth
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Andrej Kacian (RETIRED)
URL: http://braingames.getput.com/nether/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-04-16 12:03 UTC by Alexandru Toma
Modified: 2005-09-08 22:44 UTC (History)
1 user (show)

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


Attachments
netherearth-0.51.ebuild (netherearth-0.51.ebuild,1.87 KB, text/plain)
2004-04-16 12:04 UTC, Alexandru Toma
Details
netherearth-0.51-gentoo-paths.patch (netherearth-0.51-gentoo-paths.patch,4.25 KB, patch)
2004-04-16 12:06 UTC, Alexandru Toma
Details | Diff
netherearth-0.51.ebuild (netherearth-0.51.ebuild,1.89 KB, text/plain)
2004-09-16 12:22 UTC, Alexandru Toma
Details
netherearth-0.51.ebuild (netherearth-0.51.ebuild,1.89 KB, text/plain)
2004-10-07 11:08 UTC, Alexandru Toma
Details
netherearth-0.51.ebuild (netherearth-0.51.ebuild,1.90 KB, text/plain)
2005-02-19 07:27 UTC, Alexandru Toma
Details
netherearth-0.52.ebuild (netherearth-0.52.ebuild,2.25 KB, text/plain)
2005-06-18 09:48 UTC, Andrej Kacian (RETIRED)
Details
Makefile for sources to compile (Makefile,991 bytes, text/plain)
2005-06-18 09:48 UTC, Andrej Kacian (RETIRED)
Details
netherearth-0.52-linux.patch (netherearth-0.52-linux.patch,1.23 KB, patch)
2005-06-18 09:49 UTC, Andrej Kacian (RETIRED)
Details | Diff
netherearth-0.52.ebuild (netherearth-0.52.ebuild,1.77 KB, text/plain)
2005-06-19 16:18 UTC, Andrej Kacian (RETIRED)
Details
netherearth-0.52.ebuild (netherearth-0.52.ebuild,1.84 KB, text/plain)
2005-06-19 17:39 UTC, Andrej Kacian (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Toma 2004-04-16 12:03:59 UTC
"Nether Earth was the very first real time strategy game. It worked on a SPECTRUM machine, and only needed 48KB of RAM to work!! It has all the tipical elements of strategy games: resources, factories, combat units, etc."
(from http://braingames.getput.com/nether/"

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alexandru Toma 2004-04-16 12:04:38 UTC
Created attachment 29434 [details]
netherearth-0.51.ebuild
Comment 2 Alexandru Toma 2004-04-16 12:06:11 UTC
Created attachment 29435 [details, diff]
netherearth-0.51-gentoo-paths.patch

A patch to modify the config and savegame paths and also some fopen()
permissions
Comment 3 Alexandru Toma 2004-04-16 12:08:07 UTC
Suggested category: games-strategy
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-09-13 01:09:22 UTC
Not liking the non-versioning of the archive from upstream.  I've emailed the author and asked him to rename the archive.  I'll wait a bit and see if he fixes things.

Some comments:

Use the header from header.txt
There's a command-line option to unzip to rename files.
Whack the .db file in src_unpack, not src_install
No need for a loop for the maps models sound textures stuff.  just pass a big list to doins
Comment 5 Alexandru Toma 2004-09-16 12:22:13 UTC
Created attachment 39707 [details]
netherearth-0.51.ebuild

>> Use the header from header.txt
Err... what's different from that header? I don't see any difference.

>> There's a command-line option to unzip to rename files.
Yes, unzip has such a flag but I didn't know what unpack uses. What are the
unpack dependencies? Does it use app-arch/unzip?

>> Whack the .db file in src_unpack, not src_install
Done.

>> No need for a loop for the maps models sound textures stuff.  just pass a
big list to doins
Sorry, but I don't understand what you mean. Doesn't doins have to be preceeded
by an insinto?

Note: I haven't tested the new ebuild, since I don't have access to my
computer. but it should work. If you want further modiffications then please
post your comments (mainly to the issues above).
Comment 6 Alexandru Toma 2004-10-07 11:08:57 UTC
Created attachment 41305 [details]
netherearth-0.51.ebuild

Finally fixed the header... took me long enough to notice ;)
Comment 7 Christoph Brill (egore) (RESIGNED) 2004-10-07 12:28:05 UTC
ebuild works fine for me
Comment 8 Alexandru Toma 2005-02-19 07:27:52 UTC
Created attachment 51598 [details]
netherearth-0.51.ebuild

Updated header and added "local f" to src_unpack
Comment 9 Alexandru Toma 2005-05-19 07:22:07 UTC
Version 0.52 is apparently out... didn't have time to check it out... it won't
be soon though...
Comment 10 Andrej Kacian (RETIRED) gentoo-dev 2005-06-07 18:58:28 UTC
Too bad the website is offline - I really wanted to play this game tonight.
Comment 11 Andrej Kacian (RETIRED) gentoo-dev 2005-06-08 14:24:24 UTC
Hm, this is what I get during the compilation, even if I add -fpermissive to
CXXFLAGS, as suggested by g++:

g++ -march=pentium4 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden
-fpermissive -c mainmenu.cpp -o mainmenu.o
main.cpp:281:1: warning: no newline at end of file
g++ -march=pentium4 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden
-fpermissive -c maps.cpp -o maps.o
In file included from maps.cpp:13:
list.h: In member function `T* List<T>::GetRandom()':
list.h:297: warning: there are no arguments to `rand' that depend on a template
parameter, so a declaration of `rand' must be available
list.h:297: error: `RAND_MAX' undeclared (first use this function)
list.h:297: error: (Each undeclared identifier is reported only once for each
function it appears in.)
make: *** [maps.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: games-strategy/netherearth-0.51 failed.
!!! Function games_src_compile, Line 164, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

# emerge --info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11.3 i686)
=================================================================
System uname: 2.6.11.3 i686 Intel(R) Celeron(R) CPU 2.60GHz
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.1.3-r1, 2.2.3-r5, 2.3.5, 2.4.1
sys-apps/sandbox:    1.2.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer
-fvisibility-inlines-hidden -fpermissive"
DISTDIR="/usr/gentoo/distfiles"
FEATURES="autoconfig ccache collision-protect cvs digest distlocks sandbox
sfperms sign strict userpriv"
GENTOO_MIRRORS="http://mirror.gentoo.sk/pub
ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://ftp.easynet.nl/mirror/gentoo"
LC_ALL="sk_SK.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/gentoo/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/gentoo/portage"
PORTDIR_OVERLAY="/usr/gentoo/overlay"
SYNC="cvs://ticho@cvs.gentoo.org:/var/cvsroot"
USE="x86 X aalib adns alsa apache2 apm avi berkdb bitmap-fonts bluetooth cdr
crypt curl divx4linux eds emboss encode esd faad fam ffmpeg flac font-server
foomaticdb gd gdbm gif gnutls gphoto2 gtk gtk2 guile icecast imagemagick imlib
ipv6 java jpeg junit libg++ libwww mad mailwrapper mbox mikmod mmx mozilla
moznocompose moznoirc moznomail moznoxft mp3 mpeg ncurses nls nntp nptl nvidia
ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline
real ruby samba sample sasl sdl slang speex sse sse2 ssl tcltk tcpd tetex tiff
truetype truetype-fonts type1 type1-fonts unicode vim-with-x vorbis xine xml
xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS

And... Thanks for those distfiles, Alexandru. :)
Comment 12 Andrej Kacian (RETIRED) gentoo-dev 2005-06-08 14:37:20 UTC
Using gcc 3.3.4 this package compiles and runs just fine.
Comment 13 Chris Gianelloni (RETIRED) gentoo-dev 2005-06-09 06:11:05 UTC
Andrej: try removing -fvisibility-inlines-hidden and see if it works...
Comment 14 Alexandru Toma 2005-06-16 01:35:26 UTC
http://www.braingames.getput.com/nether/default.asp seems to be available 
again. Anyone who is interested in this game can download version 0.52 now.
Comment 15 Andrej Kacian (RETIRED) gentoo-dev 2005-06-18 09:48:08 UTC
Created attachment 61452 [details]
netherearth-0.52.ebuild

A working ebuild for 0.52. files/Makefile and files/${P}-linux.patch will
follow.
Comment 16 Andrej Kacian (RETIRED) gentoo-dev 2005-06-18 09:48:55 UTC
Created attachment 61453 [details]
Makefile for sources to compile

This makefile was taken from sources-pavel.zip for previous version
Comment 17 Andrej Kacian (RETIRED) gentoo-dev 2005-06-18 09:49:50 UTC
Created attachment 61454 [details, diff]
netherearth-0.52-linux.patch

This patch fixes missing includes which prevented 0.52 from being compiled on
linux.
Comment 18 Andrej Kacian (RETIRED) gentoo-dev 2005-06-18 09:50:30 UTC
Comment on attachment 61452 [details]
netherearth-0.52.ebuild

Changing description so that it fits previous ones.
Comment 19 Andrej Kacian (RETIRED) gentoo-dev 2005-06-19 11:59:37 UTC
games@, is it ok if I add this package and maintain it in accord(sp?) with first
paragraph of your requirements[1]?

1. http://dev.gentoo.org/~vapier/i-wanna-be-in-the-games-herd.html
Comment 20 Mr. Bones. (RETIRED) gentoo-dev 2005-06-19 14:01:59 UTC
ebuild comments:

unzip the zip file manually and use -LL instead of the mv calls
don't make it depend on sed, but do make it depend on unzip
dep on virtual/glut
inherit games last
make the quoting like most of the other games ebuilds
fix the "Rename all .MAP files to .map" code to be reasonable
error check file io
one insinto and one call to doins -r for the game data install
rename DEST_DIR to DATA_DIR and move it into src_unpack
There is no reason to sed Makefile since that is provided in FILESDIR.  Just fix
it there.
Comment 21 Andrej Kacian (RETIRED) gentoo-dev 2005-06-19 16:18:02 UTC
Created attachment 61527 [details]
netherearth-0.52.ebuild

Uh, yes, I forgot to mention that the ebuild was more of a proof-of-concept and
that final version would be less crude, but it's too late for that now. Noone
believes me, right? :)

Anyway:
> make the quoting like most of the other games ebuilds
I don't know what you mean. Can you give me an example please?

> error check file io
I'm not sure I know what you mean - perhaps adding return code checks to all
file manipulating commands?

> rename DEST_DIR to DATA_DIR and move it into src_unpack
DATA_DIR needs to stay in global scope, because it is also used in
src_install().

I'm uploading a new version of ebuild.
Comment 22 Mr. Bones. (RETIRED) gentoo-dev 2005-06-19 16:58:51 UTC
> DATA_DIR needs to stay in global scope, because it is also used in src_install().

no it doesn't - portage keeps track of it.

>> error check file io
> I'm not sure I know what you mean - perhaps adding return code checks to all
file manipulating commands?

right... the || die thing

re: quoting

S=.... no quotes.
cd "${S}" ... quotes.  same for FILEDIR and DATA_DIR
Comment 23 Andrej Kacian (RETIRED) gentoo-dev 2005-06-19 17:39:35 UTC
Created attachment 61532 [details]
netherearth-0.52.ebuild

Fixed the quoting and added some more "|| die" checks
Comment 24 Andrej Kacian (RETIRED) gentoo-dev 2005-06-19 17:40:38 UTC
(In reply to comment #23)
> Created an attachment (id=61532) [edit]
> netherearth-0.52.ebuild
> 
> Fixed the quoting and added some more "|| die" checks

Oh and DATA_DIR too.
Comment 25 Chris Gianelloni (RETIRED) gentoo-dev 2005-09-07 12:43:26 UTC
(In reply to comment #19)
> games@, is it ok if I add this package and maintain it in accord(sp?) with first
> paragraph of your requirements[1]?
> 
> 1. http://dev.gentoo.org/~vapier/i-wanna-be-in-the-games-herd.html

I see no problem with you adding this package.  Sorry that we didn't answer this
question sooner.  There's still some cleanup that needs to be done on this
ebuild before committing it, but I'm sure you'll take care of that... =]

Don't forget to list yourself as the maintainer in metadata.xml
Comment 26 Andrej Kacian (RETIRED) gentoo-dev 2005-09-08 11:29:29 UTC
Thanks, committed after some more clean up - mainly quoting.
games@, if you're content with the ebuild, mark this bug as FIXED, otherwise I'm
ready to be scolded here.

Alexandru, thanks for the initial ebuild.
Comment 27 Mr. Bones. (RETIRED) gentoo-dev 2005-09-08 22:44:47 UTC
I added some more error checking to src_install but it generally looked good.