<html><head></head><body><div>Hi All,</div><div><span><pre><br></pre></span></div><div>On Sun, 2024-11-24 at 10:42 +0000, Peter Blackman wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>On 24/11/2024 07:03, Michalis Kamburelis wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Can you submit a full instructions you execute and full output that results?<br></div></blockquote><div>Attaching the debian tarball (the source package build works).<br></div><div>Just unpack the debian directory into the source tree at top level.<br></div><div>Easiest way to try a build, is to run debuild (no options or switches <br></div><div>needed)<br></div><div>(debuild is in the Debian package devscripts)<br></div></blockquote><div>I'll have a look at this, I think this is more on our side, rather than on upstream side.</div><div>I'm just lacking a bit of time, but would for sure dig into this before next WE.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>- To be clear, it's not "Castle Model Viewer" appending the "src",<br></div><div>it's the Castle Game Engine build tool (<br></div></blockquote><div>Whatever. My point is that "Castle Game Engine" and "Castle Model Viewer",<br></div><div>need to use the same directories. This does not seem to be happening.</div></blockquote><div>Normally, CGE provides FP units path and all units should be found.</div><div>On Debian, we don't compile against sources, we enforce using pre-compiled units to conform to Debian policy.</div><div>The issue, is that most FPC packages love using sources and this creates trouble for us, but we need to tack all related issues and then ask upstream to fix them.</div><div><br></div><div>The fact that CGE sources are not found, is normal, as we should not even build depend on CGE sources.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>- Now, when Debian is packaging Castle Game Engine, it all should not<br></div><div>matter, at least for simple building of programs. The paths to<br></div><div>precompiled engine units should be specified inside your /etc/fpc.cfg<br></div><div>and the CASTLE_ENGINE_PATH should not be necessary.<br></div></blockquote><div>NO, please!! /etc/fpc.cfg is owned by fpc, and under root privilege.<br></div><div>I can't be changed by another package's build.<br></div></blockquote><div>Yes, but CGE adds a file in /etc/fpc.cfg.d/ which support was added by me to handle similar issues on FPC libraries.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div>You can use a local fpc.cfg, or an environment variable.<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>- It's still a mystery what defines the (incorrect) CASTLE_ENGINE_PATH<br></div><div>in this case.<br></div></blockquote><div>It not a mystery, I thought I defined it correctly<br></div><div>(using the directory that the units are actually in),<br></div><div>but its gets mangled by "/src" being appended.<br></div><div>If I remove the definition, build fails immediately with<br></div><div>Fatal: Can't find unit CastleUtils used by castle_model_converter<br></div><div><br></div><div>I suspect the solution is to get working definitions of<br></div><div>FPCDIR, CGE_UNITS_DIR & CASTLE_ENGINE_PATH into debian/rules<br></div><div>Nothing I have tried so far will work.<br></div></blockquote><div>Let me check all this and I'll also write some doc about how FPC based libraries should work.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Note that I'm writing it all as upstream, I'm not testing on a Debian<br></div><div>system CGE from Debian packages. So, forgive me some guessing above :)<br></div><div><br></div><div>I'm using Debian myself too, but as upstream I generally test more how<br></div><div>things work with our downloads ( <a href="https://castle-engine.io/download">https://castle-engine.io/download</a> ).<br></div><div>But if you can tell me what Debian version you're testing (stable,<br></div><div>testing, unstable?) and how do you reproduce this, I'll be happy to<br></div><div>take a look.<br></div></blockquote><div>FWIW, I'm using Trixie (testing),<br></div><div>but if you can demonstrate a working build on any distribution<br></div><div>(without changing /etc/fpc.cfg !) that would be useful.<br></div><div>(Even Arch AUR, or Ubuntu ppa would help)</div></blockquote><div>Generally, one should build using sid which is easy if you have gbp and pbuilder correctly configured.</div><div>I can help on that if needed.</div><div style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 14.666667px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;"><span><pre>-- <br></pre><pre>Cheers,
Abou Al Montacir
</pre></span></div><br class="Apple-interchange-newline"></body></html>