[Pkg-pascal-devel] Castle Model Viewer 5.2.0

Peter Blackman peter at pblackman.plus.com
Sun Nov 24 10:42:37 GMT 2024


On 24/11/2024 07:03, Michalis Kamburelis wrote:
> Can you submit a full instructions you execute and full output that results?
Attaching the debian tarball (the source package build works).
Just unpack the debian directory into the source tree at top level.
Easiest way to try a build, is to run debuild (no options or switches 
needed)
(debuild is in the Debian package devscripts)

> - To be clear, it's not "Castle Model Viewer" appending the "src",
> it's the Castle Game Engine build tool (
Whatever. My point is that "Castle Game Engine" and "Castle Model Viewer",
need to use the same directories. This does not seem to be happening.

> - Now, when Debian is packaging Castle Game Engine, it all should not
> matter, at least for simple building of programs. The paths to
> precompiled engine units should be specified inside your /etc/fpc.cfg
> and the CASTLE_ENGINE_PATH should not be necessary.
NO, please!!  /etc/fpc.cfg is owned by fpc, and under root privilege.
I can't be changed by another package's build.

You can use a local fpc.cfg, or an environment variable.
> - It's still a mystery what defines the (incorrect) CASTLE_ENGINE_PATH
> in this case.
It not a mystery, I thought I defined it correctly
(using the directory that the units are actually in),
but its gets mangled by "/src" being appended.
If I remove the definition, build fails immediately with
Fatal: Can't find unit CastleUtils used by castle_model_converter

I suspect the solution is to get working definitions of
FPCDIR, CGE_UNITS_DIR & CASTLE_ENGINE_PATH into debian/rules
Nothing I have tried so far will work.

> Note that I'm writing it all as upstream, I'm not testing on a Debian
> system CGE from Debian packages. So, forgive me some guessing above :)
>
> I'm using Debian myself too, but as upstream I generally test more how
> things work with our downloads ( https://castle-engine.io/download ).
> But if you can tell me what Debian version you're testing (stable,
> testing, unstable?) and how do you reproduce this, I'll be happy to
> take a look.
FWIW, I'm using Trixie (testing),
but if you can demonstrate a working build on any distribution
(without changing /etc/fpc.cfg !) that would be useful.
(Even Arch AUR, or Ubuntu ppa would help)


Regards,
Peter





-------------- next part --------------
A non-text attachment was scrubbed...
Name: castle-model-viewer_5.2.0-1.debian.tar.xz
Type: application/x-xz
Size: 4008 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20241124/9ea1490e/attachment.xz>


More information about the Pkg-pascal-devel mailing list