Bug#887575: [Pkg-pascal-devel] Bug#887575: Bug#887575: Bug#887575: Bug#887575: castle-game-engine FTBFS with fpc 3.0.4

2018-01-19 Thread Michalis Kamburelis
2018-01-19 9:23 GMT+01:00 Abou Al Montacir :
> To be clear: It's not just a matter of having correct /etc/fpc.cfg --
> the fpmake also needs to know the root location of FPC units. (You
> would have to ask fpmake authors why they did it like this.) But that
> is why we have this complication with $FPCDIR or --globalunitdir or
> auto-detecting it.
>
> I've not been fan of fpmake, and I was used to compile my programs directly
> using fpc prog.pas.
> I understand one need to have some tool to build big projects, but then why
> not lazbuild.

You can use lazbuild to build Castle Game Engine (just run "lazbuild"
on packages/castle_base.lpk , packages/castle_window.lpk,
packages/castle_components.lpk). However, this requires having
lazbuild installed, which is part of Lazarus. It is not available if
you only have "bare" FPC installed.

That is the only reason why I'm maintaining also an option to build
using fpmake :)

Regards,
Michalis



Bug#887575: [Pkg-pascal-devel] Bug#887575: Bug#887575: Bug#887575: Bug#887575: castle-game-engine FTBFS with fpc 3.0.4

2018-01-19 Thread Abou Al Montacir
Hi Michalis,
On Thu, 2018-01-18 at 22:25 +0100, Michalis Kamburelis wrote:
> 2018-01-18 20:56 GMT+01:00 Michalis Kamburelis :
> > So, we should get to the point where CGE (or any other package
> > using fpmake) can be compiled by simple
> > 
> > ~~~
> > unset FPCDIR
> > fpc fpmake.pp
> > ./fpmake # without any additional options like --globalunitdir
> > ~~~
> > 
> 
> I created a "simplest possible example of using fpmake", so that you
> can test it all without dealing with (unrelated) Castle Game Engine
> code and Makefiles:
> 
> - Get https://github.com/michaliskambi/simplest-fpmake-test .
> - Run "./testme.sh", that just calls "./fpmake".
> - I think that we should make it "just work" if user installed FPC
> from a Debian package. Without the need to set $FPCDIR, without the
> need to pass --globalunitdir .
> 
> Right now, it will not work. Right now, you need to use
> --globalunitdir pointing to the proper location when invoking fpmake
> (see testme.sh comments).
> 
> (In the previous FPC versions, setting environment variable FPCDIR was
> also enough, without the need for --globalunitdir . It doesn't work
> for me now, although I see that the code reading $FPCDIR is in
> TFPCDefaults.CompilerDefaults. As far as I observed, this was broken
> in FPC 3.x upstream, unrelated to Debian.)
Thank you  for this example. I'll use it to debug this WE and hope we get it
fixed by beginning of next week.

-- 
Cheers,
Abou Al Montacir

signature.asc
Description: This is a digitally signed message part