First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 48062
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Andrej Kacian (RETIRED) <ticho@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alexandru Toma <flash3001@yahoo.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
netherearth-0.51.ebuild netherearth-0.51.ebuild text/plain Alexandru Toma 2004-04-16 12:04 0000 1.87 KB Details
netherearth-0.51-gentoo-paths.patch netherearth-0.51-gentoo-paths.patch patch Alexandru Toma 2004-04-16 12:06 0000 4.25 KB Details | Diff
netherearth-0.51.ebuild netherearth-0.51.ebuild text/plain Alexandru Toma 2004-09-16 12:22 0000 1.89 KB Details
netherearth-0.51.ebuild netherearth-0.51.ebuild text/plain Alexandru Toma 2004-10-07 11:08 0000 1.89 KB Details
netherearth-0.51.ebuild netherearth-0.51.ebuild text/plain Alexandru Toma 2005-02-19 07:27 0000 1.90 KB Details
netherearth-0.52.ebuild netherearth-0.52.ebuild text/plain Andrej Kacian (RETIRED) 2005-06-18 09:48 0000 2.25 KB Details
Makefile Makefile for sources to compile text/plain Andrej Kacian (RETIRED) 2005-06-18 09:48 0000 991 bytes Details
netherearth-0.52-linux.patch netherearth-0.52-linux.patch patch Andrej Kacian (RETIRED) 2005-06-18 09:49 0000 1.23 KB Details | Diff
netherearth-0.52.ebuild netherearth-0.52.ebuild text/plain Andrej Kacian (RETIRED) 2005-06-19 16:18 0000 1.77 KB Details
netherearth-0.52.ebuild netherearth-0.52.ebuild text/plain Andrej Kacian (RETIRED) 2005-06-19 17:39 0000 1.84 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 48062 depends on: Show dependency tree
Show dependency graph
Bug 48062 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-04-16 12:03 0000
"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 From Alexandru Toma 2004-04-16 12:04:38 0000 -------
Created an attachment (id=29434) [edit]
netherearth-0.51.ebuild

------- Comment #2 From Alexandru Toma 2004-04-16 12:06:11 0000 -------
Created an attachment (id=29435) [edit]
netherearth-0.51-gentoo-paths.patch

A patch to modify the config and savegame paths and also some fopen()
permissions

------- Comment #3 From Alexandru Toma 2004-04-16 12:08:07 0000 -------
Suggested category: games-strategy

------- Comment #4 From Mr. Bones. 2004-09-13 01:09:22 0000 -------
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 From Alexandru Toma 2004-09-16 12:22:13 0000 -------
Created an attachment (id=39707) [edit]
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 From Alexandru Toma 2004-10-07 11:08:57 0000 -------
Created an attachment (id=41305) [edit]
netherearth-0.51.ebuild

Finally fixed the header... took me long enough to notice ;)

------- Comment #7 From Christoph Brill (egore) 2004-10-07 12:28:05 0000 -------
ebuild works fine for me

------- Comment #8 From Alexandru Toma 2005-02-19 07:27:52 0000 -------
Created an attachment (id=51598) [edit]
netherearth-0.51.ebuild

Updated header and added "local f" to src_unpack

------- Comment #9 From Alexandru Toma 2005-05-19 07:22:07 0000 -------
Version 0.52 is apparently out... didn't have time to check it out... it won't
be soon though...

------- Comment #10 From Andrej Kacian (RETIRED) 2005-06-07 18:58:28 0000 -------
Too bad the website is offline - I really wanted to play this game tonight.

------- Comment #11 From Andrej Kacian (RETIRED) 2005-06-08 14:24:24 0000 -------
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 From Andrej Kacian (RETIRED) 2005-06-08 14:37:20 0000 -------
Using gcc 3.3.4 this package compiles and runs just fine.

------- Comment #13 From Chris Gianelloni (RETIRED) 2005-06-09 06:11:05 0000 -------
Andrej: try removing -fvisibility-inlines-hidden and see if it works...

------- Comment #14 From Alexandru Toma 2005-06-16 01:35:26 0000 -------
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 From Andrej Kacian (RETIRED) 2005-06-18 09:48:08 0000 -------
Created an attachment (id=61452) [edit]
ebuild for 0.52

A working ebuild for 0.52. files/Makefile and files/${P}-linux.patch will
follow.

------- Comment #16 From Andrej Kacian (RETIRED) 2005-06-18 09:48:55 0000 -------
Created an attachment (id=61453) [edit]
Makefile for sources to compile

This makefile was taken from sources-pavel.zip for previous version

------- Comment #17 From Andrej Kacian (RETIRED) 2005-06-18 09:49:50 0000 -------
Created an attachment (id=61454) [edit]
netherearth-0.52-linux.patch

This patch fixes missing includes which prevented 0.52 from being compiled on
linux.

------- Comment #18 From Andrej Kacian (RETIRED) 2005-06-18 09:50:30 0000 -------
(From update of attachment 61452 [edit])
Changing description so that it fits previous ones.

------- Comment #19 From Andrej Kacian (RETIRED) 2005-06-19 11:59:37 0000 -------
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 From Mr. Bones. 2005-06-19 14:01:59 0000 -------
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 From Andrej Kacian (RETIRED) 2005-06-19 16:18:02 0000 -------
Created an attachment (id=61527) [edit]
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 From Mr. Bones. 2005-06-19 16:58:51 0000 -------
> 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 From Andrej Kacian (RETIRED) 2005-06-19 17:39:35 0000 -------
Created an attachment (id=61532) [edit]
netherearth-0.52.ebuild

Fixed the quoting and added some more "|| die" checks

------- Comment #24 From Andrej Kacian (RETIRED) 2005-06-19 17:40:38 0000 -------
(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 From Chris Gianelloni (RETIRED) 2005-09-07 12:43:26 0000 -------
(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 From Andrej Kacian (RETIRED) 2005-09-08 11:29:29 0000 -------
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 From Mr. Bones. 2005-09-08 22:44:47 0000 -------
I added some more error checking to src_install but it generally looked good.

First Last Prev Next    No search results available      Search page      Enter new bug