Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5578 - FlightGear-0.7.10.ebuild (follow up to SimGear-0.0.18.ebuild)
Summary: FlightGear-0.7.10.ebuild (follow up to SimGear-0.0.18.ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://www.numlock.ch
Whiteboard:
Keywords:
Depends on: 1315 5574 7683
Blocks:
  Show dependency tree
 
Reported: 2002-07-25 15:28 UTC by Daniel Mettler
Modified: 2002-09-10 06:39 UTC (History)
2 users (show)

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


Attachments
FlightGear-0.7.10_gentoo.tgz (FlightGear-0.7.10_gentoo.tgz,1.48 KB, application/x-tgz)
2002-07-25 15:30 UTC, Daniel Mettler
Details
FlightGear-0.7.10_gentoo.tgz (FlightGear-0.7.10_gentoo.tgz,1.47 KB, application/x-tgz)
2002-08-26 05:28 UTC, Daniel Mettler
Details
FlightGear-0.7.10_gentoo.tgz (FlightGear-0.7.10_gentoo.tgz,1.83 KB, application/x-tgz)
2002-08-29 11:33 UTC, Daniel Mettler
Details
FlightGear-0.8.0.ebuild (FlightGear-0.8.0.ebuild,2.74 KB, text/plain)
2002-09-09 02:54 UTC, Rigo
Details
FlightGear-0.8.0.ebuild (FlightGear-0.8.0.ebuild,2.74 KB, text/plain)
2002-09-09 08:21 UTC, Rigo
Details
FlightGear-0.8.0-r1.ebuild (FlightGear-0.8.0-r1.ebuild,2.70 KB, text/plain)
2002-09-10 06:15 UTC, Rigo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Mettler 2002-07-25 15:28:52 UTC
This is my ebuild for Flight Gear which is a (great :) free flight simulator       
project (http://www.flightgear.org).     
      
It depends on SimGear-0.0.18.ebuild     
(http://bugs.gentoo.org/show_bug.cgi?id=5574) and the not yet released ebuild     
of metakit (by Julien Herfurth, http://bugs.gentoo.org/show_bug.cgi?id=1315),     
thus it should not be released prior to those (the rest of the dependencies is 
in CVS already). 
    
It passes lintool and has been successfully tested with       
       
CHOST="i686-pc-linux-gnu"       
CFLAGS="-march=athlon-tbird -O3 -mmmx -m3dnow -pipe       
CXXFLAGS=${CFLAGS}      
      
on Gentoo 1.3b (using GCC 3.1 and ccache).    
    
Attached is a tarball of app-games/FlightGear (including Changelog, digests,  
ebuild) ready to be extracted to /usr/portage  
  
For testing convenience, a tarball including SimGear, FlightGear and the above  
mentioned metakit ebuild is available from 
http://www.icu.unizh.ch/~mettlerd/gentoo/files/FlightGear-0.7.10_gentoo_3in1.tgz.  
Simply extract it to /usr/portage, do an "emerge FlightGear" and you're ready 
for take-off ;) Note: FlightGear requires a properly set up graphics card 
which is capable of OpenGL. I only tested it with Nvidia's OpenGL driver, but 
it should work with Mesa too. 
 
Enjoy your flight! ;) 
 
dan
Comment 1 Daniel Mettler 2002-07-25 15:30:09 UTC
Created attachment 2586 [details]
FlightGear-0.7.10_gentoo.tgz
Comment 2 Rigo 2002-07-26 02:40:53 UTC
Saw it install plib, but it doesn't see this afterwards

(Gcc 3.1, 1.3)


checking for plib/pu.h... no

You *must* have the plib library installed on your system to build
the FGFS simulator!

Please see README.plib for more details.

configure aborted.
make: *** No targets specified and no makefile found.  Stop.
make: *** No targets specified and no makefile found.  Stop.

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 40, Exitcode 2
!!! emake of SimGear failed

!!! emerge aborting on  /usr/portage/media-libs/SimGear/SimGear-0.0.18.ebuild .
lappy root # emerge search plib
[ Results for search key : plib ]
[ Applications found : 1 ]
 
*  media-libs/plib
      Latest version Available: 1.4.2-r1
      Latest version Installed: 1.4.2-r1
      Homepage: http://plib.sourceforge.net
      Description: 
      plib: a multimedia library used by many games
Comment 3 Daniel Mettler 2002-07-26 05:32:00 UTC
strange... i have tested it with the same plib (1.4.2-r1) and it's fine here.      
'md5sum /usr/include/plib/pu.h' should print      
        
93a33522f0795b9945ba5f381f573576  /usr/include/plib/pu.h        
        
do you use gentoo 1.3a or 1.3b? x86, ppc, sparc? is there the same problem 
when you install other plib dependent games (e.g. emerge torcs)?     
      
for testing, try the following (rebuild glut and plib prior to installing 
simgear and flightgear):      
      
emerge rsync      
emerge glut plib SimGear FlightGear      
Comment 4 Rigo 2002-07-26 10:08:15 UTC
#md5sum /usr/include/plib/pu.h
93a33522f0795b9945ba5f381f573576  /usr/include/plib/pu.h

So it's the same...(using 1.3a i86)

emerge torcs does work (doesn't see it checking for plib though)

I also include the last section from the config.log:

<SNIP>
ICE -lXi -lXext -lX11 -lpthread -lm  1>&5
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
configure:3634: checking for plib/pu.h
configure:3644: gcc -E -I/usr/local/include -I/usr/X11R6/include conftest.c
>/dev/null 2>conftest.out
cpp0: warning: changing search order for system directory "/usr/local/include"
cpp0: warning:   as it has already been specified as a non-system directory
configure: failed program was:
#line 3639 "configure"
#include "confdefs.h"
#include <plib/pu.h>
</SNIP>
Comment 5 Daniel Mettler 2002-08-26 05:26:47 UTC
it turned out that simgear/flightgear not liking parallel make was the reason 
for the build problems. thanks a lot to bernie bright from flightgear-devel 
for this hint! 
 
i will now attach corrected versions of the simgear and flightgear ebuilds 
(same version numbers, thus take care to use the *latest* attachments for 
testing). these ebuild tarballs are also available at 
http://www.icu.unizh.ch/~mettlerd/gentoo/, including a '2in1' tarball for 
testing convenience. 
 
changes: simgear 
* added missing dependency (>=dev-libs/libdnet-1.4) 
* logging disabled by default now 
* changed emake to make 
 
changes: flightgear 
* logging disabled by default now 
* changed emake to make 
 
now these work fine on my box (gentoo 1.4, gcc 3.2). please test, thanks. 
Comment 6 Daniel Mettler 2002-08-26 05:28:54 UTC
Created attachment 3433 [details]
FlightGear-0.7.10_gentoo.tgz

this obsoletes the previous attachment (2586)!
Comment 7 Daniel Mettler 2002-08-29 11:33:41 UTC
Created attachment 3541 [details]
FlightGear-0.7.10_gentoo.tgz

includes a fix for configure, replaces all previous
FlightGear-0.7.10_gentoo.tgz (2585, 3432)
Comment 8 Rigo 2002-09-09 02:54:01 UTC
Created attachment 3761 [details]
FlightGear-0.8.0.ebuild
Comment 9 Rigo 2002-09-09 08:21:07 UTC
Created attachment 3765 [details]
FlightGear-0.8.0.ebuild

This one actually compiles/installs ;-)
Comment 10 Daniel Mettler 2002-09-09 14:53:09 UTC
hmm.. are you sure it compiles, rigo? i just tried it on my box and it doesn't:

g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src 
-I/usr/X11R6/include  -march=athlon-tbird -O2 -pipe -c -o httpd.o `test -f
httpd.cxx || echo './'`httpd.cxx
In file included from /usr/include/g++-v32/backward/strstream:51,
                 from httpd.cxx:37:
/usr/include/g++-v32/backward/backward_warning.h:32:2: warning: #warning This
file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
Examples include substituting the <X> header for the <X.h> header for C++
includes, or <sstream> instead of the deprecated header <strstream.h>. To
disable this warning use -Wno-deprecated.
make[2]: *** No rule to make target `jpg-httpd.cxx', needed by `jpg-httpd.o'.  Stop.
make[2]: Leaving directory
`/var/tmp/portage/FlightGear-0.8.0/work/FlightGear-0.8.0/src/Network'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/FlightGear-0.8.0/work/FlightGear-0.8.0/src'
make: *** [all-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 60, Exitcode 2
!!! make of FlightGear failed

first i thought that this would be another abort-caused-by-new-gcc-warnings bug
again, but even with -Wno-deprecated it doesn't compile. unfortunately i've no
time to fix it (see my note on bug #5574 ;) thus if anybody has time...

flightgear 0.8.0 looks very promising, can't wait to check it out :)
Comment 11 Rigo 2002-09-09 15:18:51 UTC
Well, I'm running 3.2 only and 4 me...Well.. yes ;)

Did you used plib-1.6.0 (Bug #7683 ) ?


Recompiled SimGear without jpeg (see ebuild) ? 


It looks like the same problem with SimGear....
Comment 12 Daniel Mettler 2002-09-09 15:47:51 UTC
> Did you used plib-1.6.0 (Bug #7683 ) ? 
 
yep. i just renamed the current ebuild to plib-1.6.0 and it compiled. did you 
change anything for plib-1.6.0 in the ebuild? 
 
> Recompiled SimGear without jpeg (see ebuild) ? 
 
yep. 
 
> It looks like the same problem with SimGear.... 
 
this jpeg thing confuses me a bit. did you also use automake 1.4-p5 and 
autoconf 2.13 when successfully building fg 0.8.0? 
Comment 13 Daniel Mettler 2002-09-09 19:14:15 UTC
btw. problem solved ;) just had to manually unmerge the old plib, simgear and     
flightgear ebuilds before emerging the new ones (a bit amazing though, needs   
some more observations).   
   
nb. the respective (new) fgfs-base package was not installed (fg doesn't run 
without it). patch:   
 
--- FlightGear-0.8.0.ebuild     Tue Sep 10 02:03:25 2002 
+++ FlightGear-0.8.0-r1.ebuild  Tue Sep 10 02:03:29 2002 
@@ -4,7 +4,7 @@  
  
 DESCRIPTION="Flight Gear is a free flight simulator project."  
 HOMEPAGE="http://www.flightgear.org/"  
-SRC_URI="ftp://ftp.flightgear.org/pub/fgfs/Source/${P}.tar.gz"  
+SRC_URI="ftp://baron.flightgear.org/pub/fgfs/Source/${P}.tar.gz  
ftp://baron.flightgear.org/pub/fgfs/Shared/fgfs-base-${PV}.tar.gz"  
  
 LICENSE="GPL-2"  
 SLOT="0"  
@@ -70,13 +70,12 @@  
 }  
  
 src_install () {  
-       dodir /usr/share/${PN}  
+  
        make DESTDIR=${D} install || die "make install of FlightGear failed"  
  
        dodoc AUTHORS COPYING ChangeLog docs-mini/* NEWS README Thanks || die  
"make install of FlightGear failed: dodoc failed"  
  
        # Install the base package into /usr/share.  
-       (  insinto /usr/share/${PN}  
-       cp -a ${S}/src/* ${D}/usr/share/${PN} || die "make install of  
FlightGear failed: Copying the base package failed" )  
+       cp -a ../FlightGear ${D}/usr/share || die "make install of FlightGear  
failed: Copying the base package failed"  
  
 }  
  
this one works for me, but i have not tested it thorougly. the config options 
(especially those commented out) eventually need some tweaking (perhaps  
there are new options available or some deprecated etc.) etc. it's just not me 
who can do it currently...sorry. 
Comment 14 Rigo 2002-09-10 05:41:48 UTC
Ah, already found it strange I didn't have FlightGear instead of
FlightGear-0.8.0 in my working-dir ... ;-)


I'll put your changes (And will test the options) in a new ebuild today...


Thanks 4 the tips, Rigo
Comment 15 Rigo 2002-09-10 06:15:53 UTC
Created attachment 3790 [details]
FlightGear-0.8.0-r1.ebuild

Uncommented configuration-options (all except old mouse input support (is it
needed ?)

Regards, Rigo
Comment 16 Rigo 2002-09-10 06:39:51 UTC
And if somebody could explain how I can get in the air ? ;-D