Installing from eBuild fails

Installing from eBuild fails

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
KaiT
Posts: 1
Joined: 27 Jul 2007, 20:27

Installing from eBuild fails

Post by KaiT »

Hi,

first of all i loved this game back in the year it coming out. played it a lot with friends on the lan and bought all the two epansion :) as far as i know there were only two. So im really glad that there is e version of this great game today.

But i have one problem. Im running gentoo linux on my laptop and downloaded the eBuild for this grat game. i followed the steps here

spring.clan-sy.com/wiki/SetupGuide#0.74b3_For_Gentoo_With_Portage

but when i come to run

emerge spring

it cancels with the following message
>>> Unpacking source...
>>> Unpacking spring_0.74b3_src.tar.bz2 to /var/tmp/portage/games-strategy/spring-0.74-r3/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/games-strategy/spring-0.74-r3/work/spring_0.74b3 ...
[33;01m*[0m This ebuild installs directly from a development repository. This means the code might be broken and not compile or -although that's unlikely- somehow damage your setup!
[32;01m*[0m If anything is not working as expected, consider filing a bug report at the project's website. Don't forget to include appropriate debug information, such as gdb or valgrind backtraces.
[31;01m*[0m Please run "echo "media-libs/sdl-image jpeg png gif" >> /etc/portage/package.use" and re-emerge dev-libs/boost.

!!! ERROR: games-strategy/spring-0.74-r3 failed.
Call stack:
ebuild.sh, line 1621: Called dyn_compile
ebuild.sh, line 973: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
spring-0.74-r3.ebuild, line 48: Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/games-strategy/spring-0.74-r3/temp/build.log'.
I followed the advice and added
media-libs/sdl-image jpeg png gif to /etc/portage/package.use
and reemerged boost and sdl but it didnt help.....

Can anyone help? id really love to play spring...

Thank you
Kai
Nobody
Posts: 2
Joined: 15 Aug 2005, 07:51

Post by Nobody »

Your ebuild is outdated. Current version is 75b2.
I don't think there is an official ebuild for it though.
You'll have to add a new ebuild yourself.

Copy the 74b3 ebuild in a local overlay and rename it to spring spring-0.75-r2.ebuild
Change to beginning of the file to this (change the ???? back to http - spam filter...):
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit games eutils toolchain-funcs

MY_PV="0.75b2"
S=${WORKDIR}/spring_${MY_PV}
DESCRIPTION="Linux port of a futuristic realtime strategy game in full 3d"
HOMEPAGE="????://taspring-linux.berlios.de/"
SRC_URI="????://download.berlios.de/taspring-linux/spring_${MY_PV}_src.tar.bz2
????://download2.berlios.de/taspring-linux/spring_${MY_PV}_src.tar.bz2
????://spring.clan-sy.com/dl/spring_${MY_PV}_src.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug omni optimize unity-lobby"
RESTRICT="nomirror"

.........
For the rest of the file, I kept the 74b3 version.
You'll then have to put this in a local overlay, digest it .....


As for the compilation error, I have no problem compiling it. I have the following versions and use flags :
[ebuild R ] virtual/glut-1.0 0 kB [?=>0]
[ebuild R ] media-libs/glew-1.3.5 382 kB [?=>0]
[ebuild R ] media-libs/devil-1.6.7-r1 USE="X gif jpeg opengl png sdl tiff* -allegro -mng -xpm" 2,943 kB [?=>0]
[ebuild R ] media-libs/openal-0.0.8-r1 USE="alsa arts esd mp3 sdl vorbis -debug" 851 kB [?=>0]
[ebuild R ] dev-libs/boost-1.34.0-r1 USE="doc -debug -icu -pyste -tools" 0 kB [0]
[ebuild R ] media-libs/jpeg-6b-r8 23 kB [?=>0]
[ebuild R ] media-libs/libsdl-1.2.12 USE="X aalib alsa arts esd libcaca opengl oss xinerama xv -dga -directfb -fbcon -ggi -nas -noaudio -noflagstrip -nojoystick -novideo -svga" 0 kB [0]
[ebuild R ] media-libs/sdl-image-1.2.6 USE="gif jpeg png tiff" 0 kB [0]
[ebuild R ] dev-util/scons-0.97 430 kB [?=>0]


A few more things. After the installation, you'll also have to get a few mods from unknown-files and a lobby (aflobby works quite well on linux)
semi
Posts: 69
Joined: 30 Mar 2007, 20:42

Post by semi »

There is an ebuild for 0.75b2, I've made one and created an overlay to use with layman. I've carefully checked that they are as correct as possible. I and Radtoo are in the process of getting them hosted by gentoo.

And SpringLobby works great on linux too.
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Post by malric »

Are these hosted somewhere until they are accepted by Gentoo ? (if so maybe you should modify http://spring.clan-sy.com/wiki/SetupGui ... th_Portage
semi
Posts: 69
Joined: 30 Mar 2007, 20:42

Post by semi »

With luck I can publish the overlay host during this weekend.
semi
Posts: 69
Joined: 30 Mar 2007, 20:42

Post by semi »

Nonor
Posts: 19
Joined: 28 Dec 2006, 01:21

Post by Nonor »

Hi,
Thx a lot for the ebuild & overlay but how can I compile Spring with the optimize option enable? I've checked the log, it's disable by default...
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

scons configure optimize={1, 2, 3}

edit: nm, didn't see you meant for an overlay
Nonor
Posts: 19
Joined: 28 Dec 2006, 01:21

Post by Nonor »

Ok, I got it, optimize is disabled if debug is enable... And debug is an ebuild keyword.
Post Reply

Return to “Linux”