[Pkg-pascal-devel] Castle Game Engine 6.4 "fixes" branch for FPC 3.2.0

Abou Al Montacir abou.almontacir at sfr.fr
Mon Aug 3 22:42:49 BST 2020


Looking more attentively at the CGE make file I was surprised by the following
lines:
	fpc fpmake.pp	@echo 'Running fpmake. If this fails saying that "rtl"
is not found, remember to set FPCDIR environment variable, see 
http://wiki.freepascal.org/FPMake .'# Workaround FPC >= 3.x problem (bug?) ---
it ignores $FPCDIR, but --globalunitdir works	if [ '(' -n "$(FPCDIR)" ')' -a \
	     '(' $(shell fpc -iV) '!=' '2.6.4' ')' -a \	     '(' $(shell fpc
-iV) '!=' '2.6.2' ')' ]; then \	   ./fpmake --globalunitdir="$(FPCDIR)" -v -o
-Ur; \	else \	   ./fpmake -v -o -Ur; \	fi
It seems that the messages at the end of the wiki page was mis interpreted to
hide a bug on Debian FPC customization changes.
I looked more deeply on this and discovered that the global units dir was not
fixed when the change of the default units path was applied in order to support
multi-arch.

I fixed this on FPC and uploaded it.
--- fpc.orig/fpcsrc/packages/fpmkunit/src/fpmkunit.pp+++
fpc/fpcsrc/packages/fpmkunit/src/fpmkunit.pp@@ -4538,6 +4538,9 @@
begin   BinInstallDir:='';   LibInstallDir:='';   ExamplesInstallDir:='';+  if
GlobalUnitDir = '' then begin+    GlobalUnitDir := FBaseInstallDir;+  end;
end;  So now we can remove the above check and use a simple line to build CGE.
-- 
Cheers,
Abou Al Montacir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20200803/3c861dcb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20200803/3c861dcb/attachment.sig>


More information about the Pkg-pascal-devel mailing list