[Pkg-pascal-devel] Castle Game Engine 6.0 release in Debian

Michalis Kamburelis michalis.kambi at gmail.com
Fri Mar 24 17:45:22 UTC 2017


2017-03-24 5:53 GMT+01:00 Paul Gevers <elbrus at debian.org>:
> It's me again (sorry). It looks like this may be about the final mail
> before I have 6.0.2 ready for Debian Experimental (in time for Ubuntu if
> I don't have so many issues with the new version of view3dscene ;) )

Great!

I like answering questions about my engine, and together we have made
engine better as a result of this, so no need to say sorry:) I
appreciate the time you take to package everything perfectly, and I'm
happy that the engine will be nicely represented in Debian and Ubuntu
-- systems that I use myself, and encourage others to use.

> I am having a bit of problems with "castle-curves --help".
> First (easily solvable by me) it depends on libgail-common and
> libatk-adaptor to prevent the following behavior in a (headless) build
> environment:
> (pbuild13858) testavoira castle-game-engine-6.0.2+dfsg1 #
> tools/castle-curves/castle-curves --help
> Gtk-Message: Failed to load module "gail"
> Gtk-Message: Failed to load module "atk-bridge"
>
> (castle-curves:25764): Gtk-WARNING **: cannot open display:
>
> However, after installing those packages, I still get:
> (pbuild13858) testavoira castle-game-engine-6.0.2+dfsg1 #
> tools/castle-curves/castle-curves --help
>
> (castle-curves:26516): Gtk-WARNING **: cannot open display:
> (pbuild13858) testavoira castle-game-engine-6.0.2+dfsg1 # echo $?
> 1
>
> So help2man fails during building of the man page for it. Is this easily
> solvable or do I need to tweak around this?
>

I see. castle-curves (in fact, CastleWindow unit) was initializing GTK
too early. There was a mechanism to delay initialization of X display,
but it was not utilized fully, to delay the initialization of
everything related to GTK and X.

This is improved now:) For GTK and "pure Xlib" backends. (You're using
GTK backend by default.) Please take this patch:
https://github.com/castle-engine/castle-engine/commit/aa441e5546184e5d9270e2630310ae8a4c9d72cc

Calling "castle-curves --help" now should not make GTK or Xlib calls,
so it should go smoothly in a headless environment.

Regards,
Michalis



More information about the Pkg-pascal-devel mailing list