Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 219559

Summary: games-rpg/vegastrike 0.5.0
Product: Gentoo Linux Reporter: Matija "hook" Šuklje <matija>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: CONFIRMED ---    
Severity: enhancement CC: achea89+gentoobugzilla, aperion, ben.vighy, bugzie, ciklop1979, florian.berger, haavardw, lebkoungcity, matija, orzel, quazgar, robink, silvio.gerli, volkerarmin
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
URL: http://vegastrike.sourceforge.net
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: First vegastrike-0.5.0 ebuild
cleaner and fixed ebuild
vegastrike-0.5.0.ebuild
0.5.0 ebuild with new URI
ebuild for new version with src
build.log error
fixes the problem in http://bugs.gentoo.org/attachment.cgi?id=211936
Rewriting of ebuild, should work now.
Doesn't compile in x86
build.log of compilation error with gcc 4.2
build.log of compilation error with gcc 4.3.4
new ebuild, applies two patches
patch for gcc-4.4
patch for >=glibc-2.10
Latest try
build.log, no compile anymore amd64
build.log, no compile anymore amd64
Patch to make vegastrike work with libpng-1.4 as well
build.log
vegastrike-0.5.0 ebuild
vegastrike 0.5.1 patch for gcc 4.7

Description Matija "hook" Šuklje 2008-04-28 01:00:21 UTC
Vega Strike 0.5.0 is finally out. It would be really cool to see it back in portage.

This version is *not* yet ported to Ogre, so I suppose bumping the old ebuilds should work.
Comment 1 Volker Hemmann 2008-04-30 02:47:38 UTC
but it does check for ogre ;)

and something else: its configure expect the ffmpeg headers in /usr/include/ffmpeg. The way they are installed on gentoo makes them 'invisible' for the configure script. 

At the moment, ffmpeg is not needed, so it should not be a problem - but using the old ebuilds may not be feasable. So some patching might be needed.
Comment 2 Nicola 2008-05-02 17:37:05 UTC
i've already prepared an ebuild that builds the svn tree.. so building from sources with this release could be done modifing that ebuild.

it would be simpler and faster ;-)

http://bugs.gentoo.org/show_bug.cgi?id=65084 
here you can find the vegastrike-9999.ebuild from which you can create the 0.5.0 one, or should i do it for you? :-)

let me know.

Bye! :-)
Comment 3 Matija "hook" Šuklje 2008-05-02 18:15:36 UTC
If you could, it would be awesome :]

Sadly I lack the skills to do it properly and time to learn how to :/

Maybe now it would finally get into portage again :D
Comment 4 Nicola 2008-05-04 10:56:49 UTC
Created attachment 151789 [details]
First vegastrike-0.5.0 ebuild

Ok, this is a suitable ebuild. for me it works, try it and tell me :-)

i will backport changes to the previous svn ebuild, too.

p.s. a good way of learning how to make ebuilds is to modify existing ebuilds for our own needs :-)
Comment 5 Volker Hemmann 2008-05-04 18:11:58 UTC
Hi,

some comments, without trying the ebuild:

AFAIK vs makes use of nvidia-cg for effects. Maybe you could add that as use-flag?

Is filtering ffast-math really necessary? I have built it with ffast-math and had so far no corruptions.

Oh, and to set any 'good' CFLAGS (like march) you need the enable-flags config option. 
Comment 6 Matija "hook" Šuklje 2008-05-04 19:54:02 UTC
Compiled and seems to run ok as well on my AMD64 :]
Comment 7 Nicola 2008-05-05 19:00:17 UTC
(In reply to comment #5)
> Hi,
Hi :-)

> AFAIK vs makes use of nvidia-cg for effects. Maybe you could add that as
> use-flag?
well it's marked "very experimental", I think it would not be a good idea, but i can add it and put a warning for the user to disable it if something goes wrong; but i think it will be possible when there will be no warning about it being "very experimental".

> Is filtering ffast-math really necessary? I have built it with ffast-math and
> had so far no corruptions.
I experienced them building the svn a couple of months ago. I don't like that flag, it's know to cause a lot of problems, and it's not even sure it gives appreciable performance boost. 
Maybe i can remove the filter, and let the user decide (adding again a warning for the user, telling him to disable it, if he experiences corruptions with that flag enabled.)

> Oh, and to set any 'good' CFLAGS (like march) you need the enable-flags config
> option. 
mhh it's not handy, if you want to preserve the ability for the user to decide whether enable -ffast-math or not.
I prefer the direct substitution in the Makefile to be sure we're doing what we want.


Bye! :-)
Comment 8 Andree Chea 2008-05-24 22:29:04 UTC
Merged in amd64 and seems to work ok here too. :)
Comment 9 Mark 2008-07-20 10:17:48 UTC
works for mee too on AMD64. There is a good chance that the ebuild will work on more amd64 systems, so it can be put into portage again :-)
Comment 10 DaggyStyle 2008-10-08 10:49:22 UTC
hey, can you explain the purpose of the following code in the ebuild?
# it causes corruptions
filter-flags -ffast-math


# Let's optimize, removing also broken -ffast-math
if ! use debug; then
      sed -i -e "s:-ffast-math:${CXXFLAGS}:g" Makefile \
      || die "sed of CXXFLAGS failed"
fi
 
Comment 11 Nicola 2008-10-08 17:40:00 UTC
(In reply to comment #10)
> hey, can you explain the purpose of the following code in the ebuild?
> # it causes corruptions
> filter-flags -ffast-math

this removes -ffast-math from the CFLAGS defined in /etc/make.conf (if defined)
(and you should know it, since it's a function defined by gentoo standard eclasses)

> # Let's optimize, removing also broken -ffast-math
> if ! use debug; then
>       sed -i -e "s:-ffast-math:${CXXFLAGS}:g" Makefile \
>       || die "sed of CXXFLAGS failed"
> fi

this substitues your own CFLAGS (well, CXXFLAGS, but that's not the point) into the flags defined by the ./configure of vegastrike. (since it adds -O2 -ffast-math, by itself when debug is not enabled, overriding the ones passed during "econf")

It's a sloppy way to do it, but it's the less sloppy among all.

It should be quite clear, ain't it?

Comment 12 Volker Hemmann 2008-10-08 19:20:21 UTC
since ffast-math is set by the makefile itself, the filtering should be unnecessary. In fact, vegastrike works very well with that flag.
Comment 13 Nicola 2008-10-08 19:52:52 UTC
(In reply to comment #12)
> since ffast-math is set by the makefile itself, the filtering should be
> unnecessary. In fact, vegastrike works very well with that flag.
> 

maybe for you, but I experienced corruptions with -ffast-math enabled.

Ok if you want you can remove the filter from the ebuild, and set "per package custom CXXFLAGS" to enable it for you, but I'd rather not enable it by default since there could be people experiencing corruptions, since I did!

no matter if in some cases it works, in the general ebuild behavior it needs too work for everybody by default! then people can add tweaks for their own platforms.

I hope you embrace this theory.
Comment 14 Volker Hemmann 2008-10-08 20:06:05 UTC
you filter the flag from make.conf and it is set by the makefiles. So you win nothing.

Except if you don't set the release option and compile everything with no optimization at all then the makefile doesn't set ffast-math

hmmm.
for example, this configure:
./configure --prefix=/home/.../vegastrike_cvs --exec-prefix=/home/.../vegastrike_cvs --with-data-dir=/home/.../vegastrike_cvs/data --enable-release=3 --enable-flags="-O3 -msse3 -march=k8" --disable-debug

results in this flags:
configure: Compiling with CXXFLAGS:   -pipe -O3 -ffast-math -O3 -msse3 -march=k8 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread.
Comment 15 Nicola 2008-10-08 20:37:17 UTC
(In reply to comment #14)
> you filter the flag from make.conf and it is set by the makefiles. So you win
> nothing.
> 
> Except if you don't set the release option and compile everything with no
> optimization at all then the makefile doesn't set ffast-math

that's why i then do this:

> # Let's optimize, removing also broken -ffast-math
> if ! use debug; then
>       sed -i -e "s:-ffast-math:${CXXFLAGS}:g" Makefile \
>       || die "sed of CXXFLAGS failed"
> fi

which substitutes your CXXFLAGS directly in the Makefile, after the ./configure finishes.

If you remove:

> filter-flags -ffast-math

from the ebuild, then you can pass -ffast-math through your CXXFLAGS, and you should be happy. (system-wide or "per package", it doesn't matter)

it's quite easy the way this works. Here a simple explanation made by 3 points and 1 solution:

1) The configure enables -ffast-math by default, even if on some architectures (mine for example) it's broken; 
2) it doesn't accept CXXFLAGS passed to the configure in the usual way (the way econf, the ebuild function, passes CXXFLAGS to it); 
3) it only accepts CXXFLAGS through the release option, that adds (as previously said) -ffast-math.

now, you would like to leave -ffast-math, but I told you that, if it works for you, I doesn't necessarily work for everybody (this is mathematical :) ), so we need a way to avoid enabling it by default.
so:
I filtered it in the CXXFLAGS passed by /etc/make.conf to be sure everybody can play without corruptions, and then, enabling release option, I used the -ffast-math put in the Makefile by the ./configure, to identify where Makefile defines CXXFLAGS, and put there our CXXFLAGS from make.conf

now, if you want absolutely -ffast-math (that's not even sure to give real performance boosts!) you can remove the filter on the CXXFLAGS coming from your make.conf and then you will be able to easily pass them to the build process.

This is all. I don't want to lose so much time for such a meaningless point like "enabling -ffast-math". You could ask to more experienced people how evil that option is. If it works for you, I'm happy for you, but don't make it compulsory for other people if not sure it works for everybody.
Comment 16 Volker Hemmann 2008-10-08 21:02:51 UTC
Hi,

emm, 3) is wrong. You can give flags, without editing the makefiles (just not remove them) with the --enable-flags= configure option.

Also, I am not usng ffast-math by default. But I do trust upstream to know what they do when they set certain flags. And I have seen the differences in vs of ffast-math and no ffast-math.
Please, i am not a fan of that option. But do you have had problems with vegastrike with it set?
Comment 17 DaggyStyle 2008-10-09 05:55:07 UTC
well I'm not sure about all of this, what I do know is that the following line generates an error in the environment file: sed -i -e "s:-ffast-math:${CXXFLAGS}:g" Makefile \
it should be sed -i -e "s/-ffast-math/${CXXFLAGS}/g" Makefile \
Comment 18 Jakub Kowalski 2008-11-18 23:45:55 UTC
Everything seems to work OK but there are some errors during emerge:

----------------------------------------

>>> Unpacking source...
>>> Unpacking vegastrike-linux-0.5.0.tar.bz2 to /var/tmp/portage/games-action/vegastrike-0.5.0/work
mv: nie można przenieść `data' do własnego podkatalogu `data/data'
[ mv: cannot move `data' to its own subdirectory `data/data' ]
>>> Unpacking vegastrike-source-0.5.0.tar.bz2 to /var/tmp/portage/games-action/vegastrike-0.5.0/work
/var/tmp/portage/games-action/vegastrike-0.5.0/temp/environment: line 2655: cd: /var/tmp/portage/games-action/vegastrike-0.5.0/work/vegastrike-0.5.0/vegastrike-0.5.0: Nie ma takiego pliku ani katalogu
[ line 2655: cd: /var/tmp/(...) No such file or directory ]

----------------------------------------

In brackets [] I put translation for localized messages. I'm not sure how original messages should look, so they may not exactly same as in English locale.

It looks like something is messed with directories in src_unpack() function.
Comment 19 DaggyStyle 2009-03-08 19:07:58 UTC
Created attachment 184347 [details]
cleaner and fixed ebuild

the previous ebuild had errors and mistypes, I've cleaned it a corrected it
Comment 20 Justin Clift 2009-04-19 01:37:39 UTC
As a thought, people seem to be forgetting they can vote for this bug/ebuild:

  http://bugs.gentoo.org/votes.cgi
Comment 21 geoscope 2009-06-08 01:21:14 UTC
(In reply to comment #19)
> Created an attachment (id=184347) [edit]
> cleaner and fixed ebuild
> 
> the previous ebuild had errors and mistypes, I've cleaned it a corrected it
> 

I'd suggest 2 changes:

SRC_URI="
    http://garr.dl.sourceforge.net/sourceforge/${PN}/${PN}-linux-${PV}.tar.bz2
    http://garr.dl.sourceforge.net/sourceforge/${PN}/${PN}-source-${PV}.tar.bz2"

to

SRC_URI="
    http://downloads.sourceforge.net/sourceforge/${PN}/${PN}-linux-${PV}.tar.bz2
    http://downloads.sourceforge.net/sourceforge/${PN}/${PN}-src-${PV}.tar.bz2"


1. Let their mirror rotation sort out the download location.
2. More importantly, you had "source" not "src" in the 2nd filename
Comment 22 Piotr Szymaniak 2009-06-08 06:37:17 UTC
Created attachment 193853 [details]
vegastrike-0.5.0.ebuild

Fixed SRC_URI, removed the subversion crap, added few missing || dies.

The dodir/cp in lines 168-169 should be replaced by insinto/doins.
Comment 23 Silvio 2009-11-27 09:08:09 UTC
Created attachment 211299 [details]
0.5.0 ebuild with new URI

With the right URI but it gives this error:
2009-11-27 09:57:00 (210 KB/s) - "/usr/portage/distfiles/vegastrike-src-0.5.0.tar.bz2" salvato [9083609/9083609]

('Filesize does not match recorded size', 9083609L, 2951729)
!!! Fetched file: vegastrike-src-0.5.0.tar.bz2 VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      9083609
!!! Expected: 2951729
Refetching... File renamed to '/usr/portage/distfiles/vegastrike-src-0.5.0.tar.bz2._checksum_failure_.ta2_VY'

!!! Couldn't download 'vegastrike-src-0.5.0.tar.bz2'. Aborting.
Comment 24 Silvio 2009-11-29 10:15:59 UTC
Created attachment 211507 [details]
ebuild for new version with src

This ebuild is not perfect:
>>> Unpacking source...
>>> Unpacking vegastrike-linux-0.5.0.tar.bz2 to /var/tmp/portage/games-simulation/vegastrike-0.5.0/work
mv: impossibile spostare `data' in una subdirectory di sè stesso, `data/data'
>>> Unpacking vegastrike-src-0.5.0.tar.bz2 to /var/tmp/portage/games-simulation/vegastrike-0.5.0/work
/var/tmp/portage/games-simulation/vegastrike-0.5.0/temp/environment: line 3030: cd: /var/tmp/portage/games-simulation/vegastrike-0.5.0/work/vegastrike-0.5.0/vegastrike-0.5.0: No such file or directory
sed: impossibile leggere launcher/saveinterface.cpp: No such file or directory
 * ERROR: games-simulation/vegastrike-0.5.0 failed:
 *   sed launcher/saveinterface.cpp failed
 *
 * Call stack:
 *     ebuild.sh, line  49:  Called src_unpack
 *   environment, line 3031:  Called die
 * The specific snippet of code:
 *       sed -i -e "s!/usr/games/vegastrike!${GAMES_DATADIR}/vegastrike!" -e "s!/usr/local/bin!${GAMES_BINDIR}!" launcher/saveinterface.cpp || die "sed launcher/saveinterface.cpp failed";
 *
 * If you need support, post the output of 'emerge --info =games-simulation/vegastrike-0.5.0',
 * the complete build log and the output of 'emerge -pqv =games-simulation/vegastrike-0.5.0'.
 * This ebuild is from a repository named 'manual'
 * The complete build log is located at '/var/tmp/portage/games-simulation/vegastrike-0.5.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-simulation/vegastrike-0.5.0/temp/environment'.
 * S: '/var/tmp/portage/games-simulation/vegastrike-0.5.0/work/vegastrike-0.5.0'

>>> Failed to emerge games-simulation/vegastrike-0.5.0, Log file:
Comment 25 Silvio 2009-12-04 00:04:14 UTC
Created attachment 211936 [details]
build.log error

In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/include/g++-v4/ext/hash_map:59,                                                
                 from ./src/gnuhash.h:21,                                                                                                 
                 from ./src/hashtable.h:25,                                                                                               
                 from ./src/xml_support.h:9,                                                                                              
                 from ./src/configxml.h:31,                                                                                               
                 from src/networking/client.h:28,                                                                                         
                 from src/networking/client.cpp:1:                                                                                        
/usr/lib/gcc/i686-pc-linux-gnu/4.4.2/include/g++-v4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.                                                                                                               
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.   -I./boost/1_33    -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG  -DUSE_STENCIL_BUFFER=1  -I/usr/include/python2.4 -DHAVE_PYTHON=1    -I./src   -pipe  -O2 -march=native -O2 -pipe -fomit-frame-pointer  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -c -o src/networking/savenet_util.o src/networking/savenet_util.cpp                               
boost/1_33/src/tuple.cpp: In static member function 'static boost::python::detail::new_reference_t* boost::python::detail::tuple_base::call(const boost::python::api::object&)':                                                                                                    
boost/1_33/src/tuple.cpp:13: warning: deprecated conversion from string constant to 'char*'                                               
make[1]: *** [boost/1_33/src/tuple.o] Error 1                                                                                             
make[1]: *** Waiting for unfinished jobs....                                                                                              
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/include/g++-v4/ext/hash_map:59,                                                
                 from ./src/gnuhash.h:21,                                                                                                 
                 from ./src/hashtable.h:25,                                                                                               
                 from ./src/xml_support.h:9,                                                                                              
                 from ./src/star_system_generic.h:7,                                                                                      
                 from ./src/universe_generic.h:28,                                                                                        
                 from ./src/vs_globals.h:6,                                                                                               
                 from ./src/cmd/unit_generic.h:36,                                                                                        
                 from src/networking/fileutil.cpp:1:                                                                                      
/usr/lib/gcc/i686-pc-linux-gnu/4.4.2/include/g++-v4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/include/g++-v4/ext/hash_map:59,
                 from ./src/gnuhash.h:21,
                 from ./src/hashtable.h:25,
                 from ./src/xml_support.h:9,
                 from ./src/gfx/cockpit_generic.h:3,
                 from src/networking/savenet_util.cpp:3:
/usr/lib/gcc/i686-pc-linux-gnu/4.4.2/include/g++-v4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
make[1]: Leaving directory `/var/tmp/portage/games-simulation/vegastrike-0.5.0/work/vegastrike-0.5.0'
make: *** [all] Error 2
 * ERROR: games-simulation/vegastrike-0.5.0 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  49:  Called src_compile
 *   environment, line 2990:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =games-simulation/vegastrike-0.5.0',
 * the complete build log and the output of 'emerge -pqv =games-simulation/vegastrike-0.5.0'.
 * This ebuild is from a repository named 'manual'
 * The complete build log is located at '/var/tmp/portage/games-simulation/vegastrike-0.5.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-simulation/vegastrike-0.5.0/temp/environment'.
 * S: '/var/tmp/portage/games-simulation/vegastrike-0.5.0/work/vegastrike-0.5.0
Comment 26 quazgar 2009-12-20 01:04:30 UTC
Created attachment 213526 [details]
fixes the problem in http://bugs.gentoo.org/attachment.cgi?id=211936

This ebuild seems to fix the problem mentioned in #24, but maybe there's a better way?  This is the diff from the previous to my ebuild:

--- vegastrike-0.5.0.ebuild~    2009-12-19 14:55:35.000000000 +0100
+++ vegastrike-0.5.0.ebuild     2009-12-20 01:56:04.000000000 +0100
@@ -66,7 +66,8 @@
                "${S}/data/documentation/vegastrike.1" \
                || die "sed data/documentation/vegastrike.1 failed"

-       cd "${S}/${P}"
+       #cd "${S}/${P}"
+       cd "${WORKDIR}/vegastrike-source-0.5.0"
        sed -i \
                -e "s!/usr/games/vegastrike!${GAMES_DATADIR}/vegastrike!" \
                -e "s!/usr/local/bin!${GAMES_BINDIR}!" \

Emerging fails at a slightly later point now though, maybe I'll try to fix that at some later point.
Comment 27 quazgar 2009-12-20 15:06:26 UTC
Compilation and running definitely works for me out of the box if done by hand, have a look here:

http://vegastrike.sourceforge.net/mediawiki/index.php?title=HowTo:Compile_from_released_source

As for the remaining issues (references to /usr/local/foo), maybe it would be easier to put the fixes into a patch that can be simply applied in a single command?
Comment 28 quazgar 2009-12-21 00:45:46 UTC
Created attachment 213628 [details]
Rewriting of ebuild, should work now.

Ok, could you please try out this ebuild everyone?  It works perfectly for me on amd64, so tests on other platforms are appreciated.  QA still complains about precompiled python object files in /usr/share, and the install process is less than elegant, but better than the previous one, I think.

I left most parts of the old ebuild still in, so it would be hardly any work to reactivate those lines of code.  If there's a reason to include them again, please do so.

Other than that, I'd like to see the ebuild back in the portage tree soon.
Comment 29 Silvio 2009-12-22 00:00:51 UTC
Created attachment 213711 [details]
Doesn't compile in x86

Unfortunatly it does not compile in my x86.

My build.log in attachment, it ends with:

/usr/lib/gcc/i686-pc-linux-gnu/4.4.2/include/g++-v4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.   
In file included from src/networking/netclient_login.cpp:14:                                                   
./src/networking/lowlevel/vsnet_dloadmgr.h:24: warning: declaration 'class VSFileSystem::VSFile' does not declare anything                                                                                                    
In file included from src/networking/netclient.cpp:60:                                                         
./src/networking/lowlevel/vsnet_dloadmgr.h:24: warning: declaration 'class VSFileSystem::VSFile' does not declare anything                                                                                                    
make[1]: *** [src/networking/netclient.o] Error 1                                                              
make[1]: Leaving directory `/var/tmp/portage/games-rpg/vegastrike-0.5.0/work/vegastrike-source-0.5.0'          
make: *** [all] Error 2                                                                                        
 * ERROR: games-rpg/vega


Here my emerge --info:


Portage 2.2_rc60 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo i686)
=================================================================                      
System uname: Linux-2.6.32-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 21 Dec 2009 23:30:01 +0000                                                 
ccache version 2.4 [enabled]                                                                       
app-shells/bash:     4.0_p35                                                                       
dev-java/java-config: 2.1.10                                                                       
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.4, 3.1.1-r1                                              
dev-util/ccache:     2.4-r8                                                                        
dev-util/cmake:      2.8.0                                                                         
sys-apps/baselayout: 2.0.1                                                                         
sys-apps/openrc:     0.6.0                                                                         
sys-apps/sandbox:    2.2                                                                           
sys-devel/autoconf:  2.13, 2.64                                                                    
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1                                            
sys-devel/binutils:  2.20                                                                          
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   2.2.6b                                                                        
virtual/os-headers:  2.6.30-r1                                                                     
ACCEPT_KEYWORDS="x86 ~x86"                                                                         
ACCEPT_LICENSE="*"                                                                                 
CBUILD="i686-pc-linux-gnu"                                                                         
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"                                              
CHOST="i686-pc-linux-gnu"                                                                          
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb /var/spool/fax/etc"                                                   
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="-march=native -O2 -pipe -fomit-frame-pointer"                                                        
DISTDIR="/usr/portage/distfiles"                                                                               
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                          
GENTOO_MIRRORS=" http://mirror.ovh.net/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ rsync://rsync3.it.gentoo.org/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo/"                                           
LANG="it_IT"                                                                                                   
LC_ALL="it_IT"                                                                                                 
LDFLAGS="-Wl,-O1"                                                                                              
LINGUAS="it en"                                                                                                
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/portage/local/layman/voyageur /usr/portage/local/layman/armagetron /usr/portage/local/layman/sunrise /usr/portage/local/layman/trauma /usr/portage/local/layman/zugaina /usr/portage/local/layman/sinte /usr/portage/local/layman/rion /usr/portage/local/manual"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3ds X a52 aac acl acpi aiglx akode alias alsa amr ao apache apm audiofile autoreplace avi bash-completion berkdb bitmap-fonts bluetooth bmp browserplugin bzip bzip2 cairo cdaudio cdr cli connectionstatus contactnotes cracklib crypt cups cxx dialup djvu dri dv dvd dvdr dvdread ebook ethereal exif fam fat ffmpeg firefox flac fluidsynth foomaticdb fortran freetds gdbm gif glib glitz gphoto2 gpm gps gpu groupwise gtk gtk2 hal highlight history hvm i8x0 iconv ieee1394 imagemagick innodb ipod ipv6 irc ithreads jack java javascript jingle jpeg jpeg2k kde kerberos kqemu lame laptop ldap lm_sensors lucene m4a midi mime mmx mmxext modules mozilla mp3 mp4 mpeg mpeg2 mplayer mssql mudflap mysql ncurses netmeeting nls nowlistening npt1 nptl nptlonly nsplugin ntfs nvidia odbc ogg openexr opengl openipmi openmp oss pam pcmcia pcre pda pdf perl pmu png portaudio postgres ppds pppd prelude python qt qt3support qt4 quicktime rar raw rdesktop readline reflection reiserfs samba sametime sdl semantic-desktop session smp sms speex spell spl sse sse2 ssl subtitles svg sysfs tcpd texteffect texteffects theora tidy tiff timidity translator truetype truetype-fonts twolame type1-fonts unicode usb utempter v4l v4l2 vcd vorbis webkit webpresence wifi win32codecs winpopup wlm wmf wxwindows x86 xcb xine xml xorg xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="snd_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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 30 quazgar 2009-12-22 16:03:39 UTC
Silvio, this looks like your error:

./boost/1_33/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("

Google says that it's because of gcc-4.4 (I still use 4.3), but there's a patch for it at Archlinux.
http://aur.archlinux.org/packages.php?ID=16783
Could you try out if this works for you?
http://aur.archlinux.org/packages/vegastrike/vegastrike/vegastrike-gcc44.diff

Thank you for testing!
rubikcube
Comment 31 Silvio 2009-12-26 11:06:47 UTC
Created attachment 214194 [details]
build.log of compilation error with gcc 4.2

It doesn't compile both with gcc 4.3 and with gcc 4.2
build.log of compilation with 4.2 in attachment
I am not able to apply patches. Sorry.
I will try nexxt week. I will study.
However it is not a problem of gcc version.
Comment 32 quazgar 2009-12-29 19:38:01 UTC
(In reply to comment #31)
> Created an attachment (id=214194) [details]
> build.log of compilation error with gcc 4.2

Hello Silvio,
is the error excactly the same for gcc-4.3?  Since 4.3.4  is the latest stable on (nearly) all platforms, I think that that's the most important target right now.

I think that all major problems (on a standard system) should be reported upstream (and I'm willing to help there too), but I'm confident that we'll get it running.

rubikcube
Comment 33 Silvio 2010-01-01 10:15:15 UTC
Created attachment 214819 [details]
build.log of compilation error with gcc 4.3.4

Here the compilation log of error whoile using gcc 4.3.4.
nothing changes. no compilation.
Comment 34 quazgar 2010-01-01 16:26:58 UTC
Created attachment 214837 [details]
new ebuild, applies two patches

No guarantee that it works, but could you give the new ebuild (and the two patches) a try, Silvio?  With ~x86, you probably have glibc-2.11, so this fix might work for you as well.
Comment 35 quazgar 2010-01-01 16:27:33 UTC
Created attachment 214839 [details, diff]
patch for gcc-4.4

patch 1/2, for gcc 4.4
Comment 36 quazgar 2010-01-01 16:27:59 UTC
Created attachment 214840 [details, diff]
patch for >=glibc-2.10

Patch for glibc 2.10 or later
Comment 37 quazgar 2010-01-01 17:52:40 UTC
Created attachment 214859 [details]
Latest try

Oops, tried to apply one change twice, the second patch is not necessary after all, it is included already in the gcc44 patch.  For a final release, we might need to reconsider naming so that the names reflect the actual content.

This forum discussion might be relevant for further problems:
http://vegastrike.sourceforge.net/forums/viewtopic.php?f=5&t=14856
Comment 38 Silvio 2010-01-03 23:29:11 UTC
(In reply to comment #37)
> Oops, tried to apply one change twice, the second patch is not necessary after
> all, it is included already in the gcc44 patch.  For a final release, we might
> need to reconsider naming so that the names reflect the actual content.


Good work, :-)
This one works fine.

Thanx a lot.

I think it could be added to portage, couldn't it?
Comment 39 quazgar 2010-01-04 17:34:30 UTC
If it works for x86 (not just compiling, but also running) and if a maintainer can be found... then yes, into portage with it :)
Comment 40 Silvio 2010-05-10 06:39:18 UTC
(In reply to comment #39)
> If it works for x86 (not just compiling, but also running) and if a maintainer
> can be found... then yes, into portage with it :)
> 

I've change architecture to amd64 two weeks ago and Vegastrike compilied well.

But yesterday portage had an updated version of:
 media-libs/libpng-1.4.2
and afterwords I had to recompile a lot of packages 
(88 packages) with revdep-rebuild.

One of this packages was Vegastrike,  but it doesn't recompile anymore. ù
I tried with gcc 4.4 4.3 4.2.

Afterwards I will post my build.log.

here my emerge --info:

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 10 May 2010 06:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
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.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.2.4-r1, 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://mirror.ovh.net/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ rsync://rsync3.it.gentoo.org/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo/"
LANG="it_IT"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
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="/var/lib/layman/sunrise /var/lib/layman/voyageur /usr/portage/local/manual"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3ds 64bit X a52 aac acl acpi aiglx akode alias alsa amd64 amr ao apache apm audiofile autoreplace avi bash-completion berkdb bitmap-fonts bluetooth bmp branding browserplugin bzip bzip2 cairo cdaudio cdr cli connectionstatus consolekit contactnotes cracklib crypt cups cvd cxx dbus dialup djvu dri dts dv dvd dvdr dvdread ebook emboss encode ethereal exif fam fat ffmpeg firefox flac fluidsynth foomaticdb fortran freetds gdbm gif gimp git glib glitz gphoto2 gpm gps gpu groupwise gtk hal highlight history hvm i8x0 iconv ieee1394 imagemagick innodb iphone ipod ipv6 irc ithreads jack java javascript jingle jpeg jpeg2k kde kerberos kqemu lame laptop lcms ldap libnotify lm_sensors lucene m4a mad mdnsresponder-compat mercurial midi mikmod mime mmx mmxext mng modules moonlight mozilla mp3 mp4 mpeg mpeg2 mplayer mssql mudflap multilib musepack musicbrainz mysql ncurses netmeeting nls nowlistening npt1 nptl nptlonly nsplugin ntfs nvidia odbc ogg openexr opengl openipmi openmp oss pam pango pcmcia pcre pda pdf perl phonon pmu png portaudio postgres ppds pppd prelude python python3 qt qt3support qt4 quicktime rar raw rdesktop rdp readline reflection reiserfs samba sametime sane sdl semantic-desktop session smp sms soundtouch speex spell spl sse sse2 ssl startup-notification subtitles subversion svg sysfs tcpd texteffect texteffects theora tidy tiff timidity translator truetype truetype-fonts twolame type1-fonts unicode usb utempter v4l v4l2 vcd virtualbox vorbis wavpack webkit webpresence wifi win64 winetriks winpopup wlm wmf wxwindows x264 xcb xen xine xml xorg xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="snd_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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" RUBY_TARGETS="ruby18" SANE_BACKENDS="mustek_usb epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa nouveau" 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, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 41 Silvio 2010-05-10 06:41:24 UTC
Created attachment 230917 [details]
build.log, no compile anymore amd64
Comment 42 Silvio 2010-05-10 06:42:32 UTC
Created attachment 230919 [details]
build.log, no compile anymore amd64
Comment 43 Silvio 2010-05-10 06:44:09 UTC
(In reply to comment #42)
> Created an attachment (id=230919) [details]
> build.log, no compile anymore amd64
> 

Sorry, the file is the same but firefox somehow posted it two times.
I cannot find how to delete one.
Sorry again.
Comment 44 quazgar 2010-05-10 20:36:51 UTC
Hi Silvio,
this looks as if VS doesn't know about libpng-1.4 yet:

src/gfx/vsimage.cpp: In member function 'unsigned char* VSImage::ReadPNG()':
src/gfx/vsimage.cpp:352: error: 'png_set_gray_1_2_4_to_8' was not declared in this scope

(From your build.log, the "-j3" option made it harder to spot the error though.)

Maybe this should be reported as a bug upstream?  See also item 3.m on http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt

Unfortunately I don't know enough about M4/autotools to write a fixup that works for both png APIs.
Comment 45 quazgar 2010-05-10 20:43:09 UTC
Note: It seems to have been noticed already here (on Windows, but the same libpng API incompatibility issue):
http://vegastrike.sourceforge.net/forums/viewtopic.php?f=5&t=15259
Comment 46 quazgar 2010-05-10 21:05:07 UTC
Created attachment 231009 [details, diff]
Patch to make vegastrike work with libpng-1.4 as well

Edit: It seems that this quick fix works for libpng-1.2 as well, at least it should compile.  It would be great if you could test it :)
Comment 48 Silvio 2010-05-11 08:03:13 UTC
(In reply to comment #46)
> Created an attachment (id=231009) [details]
> Patch to make vegastrike work with libpng-1.4 as well
> 
> Edit: It seems that this quick fix works for libpng-1.2 as well, at least it
> should compile.  It would be great if you could test it :)
> 

It doesn't compile yet.

Afterward I post build.log, however it exits with:

/usr/include/features.h:160:1: warning: this is the location of the previous definition
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4/ext/hash_map:59,
                 from ./src/gnuhash.h:21,
                 from ./src/hashtable.h:25,
                 from ./src/xml_support.h:9,
                 from ./src/star_system_generic.h:7,
                 from ./src/universe_generic.h:28,
                 from ./src/vs_globals.h:6,
                 from src/cmd/ai/flybywire.h:4,
                 from src/cmd/ai/flykeyboard.h:9,
                 from src/cmd/ai/flykeyboard.cpp:2:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
make[1]: Leaving directory `/var/tmp/portage/games-rpg/vegastrike-0.5.0/work/vegastrike-source-0.5.0'
Comment 49 Silvio 2010-05-11 08:05:02 UTC
Created attachment 231049 [details]
build.log

here the build.log with the compilation error for my amd64 machine (my emerge --info is:

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 11 May 2010 05:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
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.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.2.4-r1, 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://mirror.ovh.net/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ rsync://rsync3.it.gentoo.org/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo/"
LANG="it_IT"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
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="/var/lib/layman/sunrise /var/lib/layman/voyageur /var/lib/layman/bangert /usr/portage/local/manual"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds 64bit X a52 aac acl acpi aiglx akode alias alsa amd64 amr ao apache apm audiofile autoreplace avi bash-completion berkdb bitmap-fonts bluetooth bmp branding browserplugin bzip bzip2 cairo cdaudio cdr cli connectionstatus consolekit contactnotes cracklib crypt cups cvd cxx dbus dialup djvu dri dts dv dvd dvdr dvdread ebook emboss encode ethereal exif fam fat ffmpeg firefox flac fluidsynth foomaticdb fortran freetds gdbm gif gimp git glib glitz gphoto2 gpm gps gpu groupwise gtk hal highlight history hvm i8x0 iconv ieee1394 imagemagick innodb iphone ipod ipv6 irc ithreads jack java javascript jingle jpeg jpeg2k kde kerberos kqemu lame laptop lcms ldap libnotify lm_sensors lucene m4a mad mdnsresponder-compat mercurial midi mikmod mime mmx mmxext mng modules moonlight mozilla mp3 mp4 mpeg mpeg2 mplayer mssql mudflap multilib musepack musicbrainz mysql ncurses netmeeting nls nowlistening npt1 nptl nptlonly nsplugin ntfs nvidia odbc ogg openexr opengl openipmi openmp oss pam pango pcmcia pcre pda pdf perl phonon pmu png portaudio postgres ppds pppd prelude python python3 qt qt3support qt4 quicktime rar raw rdesktop rdp readline reflection reiserfs samba sametime sane sdl semantic-desktop session smp sms soundtouch speex spell spl sse sse2 ssl startup-notification subtitles subversion svg sysfs tcpd texteffect texteffects theora tidy tiff timidity translator truetype truetype-fonts twolame type1-fonts unicode usb utempter v4l v4l2 vcd virtualbox vorbis wavpack webkit webpresence wifi win64 winetriks winpopup wlm wmf wxwindows x264 xcb xen xine xml xorg xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="snd_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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" RUBY_TARGETS="ruby18" SANE_BACKENDS="mustek_usb epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa nouveau" 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, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 50 Silvio 2010-05-11 20:39:46 UTC
(In reply to comment #46)
> Created an attachment (id=231009) [details]
> Patch to make vegastrike work with libpng-1.4 as well
> 
> Edit: It seems that this quick fix works for libpng-1.2 as well, at least it
> should compile.  It would be great if you could test it :(In reply to comment #48)
> (In reply to comment #46)
> > Created an attachment (id=231009) [details] [details]
> > Patch to make vegastrike work with libpng-1.4 as well
> > 
> > Edit: It seems that this quick fix works for libpng-1.2 as well, at least it
> > should compile.  It would be great if you could test it :)
> > 
> 
> It doesn't compile yet.

As I can see the error seems to indicate that it doesn't apply the patch:

Index: src/gfx/vsimage.cpp
===================================================================
--- src/gfx/vsimage.cpp	(revision 12206)
+++ src/gfx/vsimage.cpp	(working copy)
@@ -349,7 +349,7 @@ unsigned char *	VSImage::ReadPNG()
 		png_set_palette_to_rgb(png_ptr);
 		   
 	if (this->img_color_type == PNG_COLOR_TYPE_GRAY && this->img_depth < 8)
-		png_set_gray_1_2_4_to_8(png_ptr);
+		png_set_expand_gray_1_2_4_to_8(png_ptr);
 
 	png_set_expand (png_ptr);
 	png_read_update_info (png_ptr,info_ptr);
Index: objconv/imageproc/change_channels.cpp
===================================================================

Infact in the build.log I found again:


src/gfx/vsimage.cpp: In member function 'unsigned char* VSImage::ReadPNG()':
src/gfx/vsimage.cpp:352: error: 'png_set_gray_1_2_4_to_8' was not declared in this scope
src/gfx/vsimage.cpp: In member function 'VSFileSystem::VSError VSImage::WritePNG(unsigned char*)'

I'm not expert of ebuild and patch, so I tried to modified your patch deleting the two:
"this->" 
thinking they could be something remained from editing. But same error.

Hope to hear news from you soon.

Silvio



Comment 51 Silvio 2010-05-11 21:54:02 UTC
Created attachment 231133 [details]
vegastrike-0.5.0 ebuild

Ebuild that use patch for libpng-1,4.
Comment 52 Silvio 2010-05-11 21:58:32 UTC
(In reply to comment #51)
> Created an attachment (id=231133) [details]
> vegastrike-0.5.0 ebuild
> 
> Ebuild that use patch for libpng-1,4.
> 

It works fine for me, this ebuild with the two patches (gcc44 and libpng-1.4).
It compiles and works.

Thanks to all.

Silvio
Comment 53 Matija "hook" Šuklje 2010-06-25 11:04:50 UTC
There's a few things that I wonder about this ebuild.

1) What do USE="sdl" and USE="stencil-buffer" do and how stable or desirable are those two.

2) The ebuild then calls on the user to run 'vsinstall' to set up an account and 'vssetup' to set up VegaStrike, but none of these two executables are present.
Comment 54 Matija "hook" Šuklje 2010-06-25 11:55:02 UTC
Hmmm, I tried all sorts of combinations of "stencil-buffer" and "sdl" USE flags, but although it compiles for me, the game crashes always just a second after I get shown the mail dock (just after I click "Campaign").
Comment 55 Jimmy.Jazz 2012-04-29 21:32:59 UTC
Created attachment 310459 [details, diff]
vegastrike 0.5.1 patch for gcc 4.7
Comment 56 lebkoungcity 2015-01-26 00:50:02 UTC
Is there a chance that someone who knows how to do it (that excludes me...) would update the ebuild for the current stable version of vegastrike (0.5.1.r1)?

I tried to do it but I failed :(

I think there are only some minor issues e.g. virtual/glut, jpeg, updating the version of the files to download, the location of the files and directories and such things.

But I fail to do it right...


Sorry that I couldn't resolve it by myself!
Comment 57 Silvio 2016-08-26 06:42:37 UTC
I try to use build in "vortex" overlay:

http://gpo.zugaina.org/games-simulation/vegastrike

As it has been happening for the last years in all versions, the compilation phase exits while compling vegastrike-data (just download and extract I think!) with the following error, that seems to me to be a simple code error in the ebuild of "vegastrike-data"




>>> Emerging (1 of 2) games-simulation/vegastrike-data-9999::vortex
>>> Unpacking source...
 * Copying data to work directory...
>>> Source unpacked in /var/tmp/portage/games-simulation/vegastrike-data-9999/work
>>> Preparing source in /var/tmp/portage/games-simulation/vegastrike-data-9999/work ...
/var/tmp/portage/games-simulation/vegastrike-data-9999/temp/environment: line 5246: cd: /var/tmp/portage/games-simulation/vegastrike-data-9999/work/data: No such file or directory
sed: can't read /var/tmp/portage/games-simulation/vegastrike-data-9999/work/data/documentation/vegastrike.1: No such file or directory
 * ERROR: games-simulation/vegastrike-data-9999::vortex failed (prepare phase):
 *   sed data/documentation/vegastrike.1 failed
 * 
 * Call stack:
 *     ebuild.sh, line 115:  Called src_prepare
 *   environment, line 5249:  Called die
 * The specific snippet of code:
 *       sed -i -e "s!/usr/local/share/doc!/usr/share/doc!" -e "s!/usr/local/share/vegastrike!${GAMES_DATADIR}/vegastrike!" -e "s!/usr/local/bin!${GAMES_BINDIR}!" -e "s!/usr/local/lib/man!/usr/share/man!" "${S}/data/documentation/vegastrike.1" || die "sed data/documentation/vegastrike.1 failed";
 * 
 * If you need support, post the output of `emerge --info '=games-simulation/vegastrike-data-9999::vortex'`,
 * the complete build log and the output of `emerge -pqv '=games-simulation/vegastrike-data-9999::vortex'`.
 * The complete build log is located at '/var/tmp/portage/games-simulation/vegastrike-data-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-simulation/vegastrike-data-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/games-simulation/vegastrike-data-9999/work'
 * S: '/var/tmp/portage/games-simulation/vegastrike-data-9999/work'

>>> Failed to emerge games-simulation/vegastrike-data-9999, Log file:

>>>  '/var/tmp/portage/games-simulation/vegastrike-data-9999/temp/build.log'

 * Messages for package games-simulation/vegastrike-data-9999:

 * ERROR: games-simulation/vegastrike-data-9999::vortex failed (prepare phase):
 *   sed data/documentation/vegastrike.1 failed
 * 
 * Call stack:
 *     ebuild.sh, line 115:  Called src_prepare
 *   environment, line 5249:  Called die
 * The specific snippet of code:
 *       sed -i -e "s!/usr/local/share/doc!/usr/share/doc!" -e "s!/usr/local/share/vegastrike!${GAMES_DATADIR}/vegastrike!" -e "s!/usr/local/bin!${GAMES_BINDIR}!" -e "s!/usr/local/lib/man!/usr/share/man!" "${S}/data/documentation/vegastrike.1" || die "sed data/documentation/vegastrike.1 failed";
 * 
 * If you need support, post the output of `emerge --info '=games-simulation/vegastrike-data-9999::vortex'`,
 * the complete build log and the output of `emerge -pqv '=games-simulation/vegastrike-data-9999::vortex'`.
 * The complete build log is located at '/var/tmp/portage/games-simulation/vegastrike-data-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-simulation/vegastrike-data-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/games-simulation/vegastrike-data-9999/work'
 * S: '/var/tmp/portage/games-simulation/vegastrike-data-9999/work'
Comment 58 Thomas Capricelli 2016-11-03 21:58:22 UTC
tried the ebuild from vortex overlay, fails with:

games-simulation/vegastrike-data-9999/temp/build.log:

 * Package:    games-simulation/vegastrike-data-9999
 * Repository: vortex
 * Maintainer: nikai@nikai.net games                                                                                                           
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux policykit userland_GNU                                                                
 * FEATURES:   compressdebug preserve-libs sandbox splitdebug userpriv usersandbox                                                             
 * Copying data to work directory...                                                                                                           
/var/tmp/portage/games-simulation/vegastrike-data-9999/temp/environment: riga 5267: cd: /var/tmp/portage/games-simulation/vegastrike-data-9999/work/data: File o directory non esistente                                                                                                      
sed: impossibile leggere /var/tmp/portage/games-simulation/vegastrike-data-9999/work/data/documentation/vegastrike.1: File o directory non esistente
Comment 59 Silvio 2016-12-31 17:02:28 UTC
To me exit compiling 

games-simulation/vegastrike-data-9999

with

>>> Emerging (1 of 2) games-simulation/vegastrike-data-9999::vortex
>>> Unpacking source...
 * subversion switch start -->
 *      old repository: https://svn.code.sf.net/p/vegastrike/code/trunk/data@13728
 *      new repository: https://vegastrike.svn.sourceforge.net/svnroot/vegastrike/trunk/data
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en
svn: warning: please check that your locale name is correct
Redirecting to URL 'https://svn.code.sf.net/p/vegastrike/code/trunk/data':
At revision 13728.
 *    working copy: /usr/portage/distfiles/svn-src/vegastrike/data

 * Copying data to work directory...
>>> Source unpacked in /var/tmp/portage/games-simulation/vegastrike-data-9999/work
>>> Preparing source in /var/tmp/portage/games-simulation/vegastrike-data-9999/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-simulation/vegastrike-data-9999/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/games-simulation/vegastrike-data-9999/work ...
 * Nothing to compile.
>>> Source compiled.
>>> Test phase [not enabled]: games-simulation/vegastrike-data-9999

>>> Install vegastrike-data-9999 into /var/tmp/portage/games-simulation/vegastrike-data-9999/image/ category games-simulation
/usr/bin/install: cannot stat 'data/master_part_list.csv': No such file or directory
!!! doins: data/master_part_list.csv does not exist
doins failed
Comment 60 Silvio 2016-12-31 17:05:55 UTC
emerging in this way:


LANG=C emerge vegastrike


it gives:

>>> Emerging (1 of 2) games-simulation/vegastrike-data-9999::vortex
>>> Unpacking source...
 * subversion switch start -->
 *      old repository: https://svn.code.sf.net/p/vegastrike/code/trunk/data@13728
 *      new repository: https://vegastrike.svn.sourceforge.net/svnroot/vegastrike/trunk/data
Redirecting to URL 'https://svn.code.sf.net/p/vegastrike/code/trunk/data':
At revision 13728.
 *    working copy: /usr/portage/distfiles/svn-src/vegastrike/data

 * Copying data to work directory...
>>> Source unpacked in /var/tmp/portage/games-simulation/vegastrike-data-9999/work
>>> Preparing source in /var/tmp/portage/games-simulation/vegastrike-data-9999/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-simulation/vegastrike-data-9999/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/games-simulation/vegastrike-data-9999/work ...
 * Nothing to compile.
>>> Source compiled.
>>> Test phase [not enabled]: games-simulation/vegastrike-data-9999

>>> Install vegastrike-data-9999 into /var/tmp/portage/games-simulation/vegastrike-data-9999/image/ category games-simulation
/usr/bin/install: cannot stat 'data/master_part_list.csv': No such file or directory
!!! doins: data/master_part_list.csv does not exist
doins failed