On Tue, 2012-03-06 at 16:21 +0100, Lutz Lehmann wrote: > Steps to reproduce: > > cp -r /usr/share/doc/fp-compiler/2.6.0/graph /tmp > cd /tmp/graph > fpcmake -v -w > > results in > > FPCMake Version 2.0.0 [2012/01/13] > Processing Makefile.fpc > Targets: "i386-linux" > Globals: > FPCDIR = "/etc/alternatives" > PACKAGESDIR = "$(FPCDIR)/packages $(FPCDIR)/packages/base ... > Error: Target "linux", package "rtl" not found > > > Obviously, the FPCDIR path is totally wrong, resulting in a useless > search path for the rtl units. > Setting it explicitely by > > export FPCDIR=/usr/lib/fpc > > has no effect. I found no configuration file responsible for this, so I > assume it is part of the binary file. This is because /usr/lib/fpc is not a valid FPCDIR path
> Please check if there is something like a reference to the path of > args[0] hard-coded in the sources or build script. I'll have a look to that soon. For now I have a quick workaround that I tested is working: FPCDIR=/usr/lib/fpc/ fpcmake-2.6.0 -v -w Cheers,
signature.asc
Description: This is a digitally signed message part