Hi,

Long story short, the new build platform for OSX to test at
http://www.b2ck.com/~ced/tryton-4.6.0.dmg


Yesterday, when I built the OSX client for the release 4.6, I made the
simple test to launch it and connect to the demo server. But it did not
launch, indeed it just bounced few times on the dock and it vanish
without any error message.
As there was an update few weeks before of the OS, I tried an older
client (4.4.2) and it started normally. So I suspected that the GTK
libraries were too old for what we use in the series so I tried to
update the libraries. And it was the mistakes which I would discover 48
hours after. The GTK+ libraries are build using the official jhbuild
tool: https://wiki.gnome.org/Projects/GTK+/OSX/Building
The update did not go well, it crashed multiple times, to the point that
the environment was no more usable. So I decided to rebuild everything
from scratch. I skip the part where openssl does not compile, some
patches did not apply etc. I finally got a new environment that seemed
to work. I could launch the client from command line, connect to demo
server etc. So I built a new bundler and it crashed exactly the same
way. But this time launching the application from command line failed
also. I found that 'gdk.pixbuf_new_from_file' was not returning a pixbuf
for the 'png' files. So I started to debug this behaviour slowly because
it required to make a new bundle for each changes. I could not find an
explanation to this behaviour. But I remembered that I had to install
manually an header from glib 'gio/gdesktopappinfo.h' so I investigate
this issue because it may be that libraries were wrongly linked.
I discover that the libraries glib and pygobject from jhbuild are not
compatible anymore. I could not find a set of version that allowed
jhbuild to build both. I think jhbuild is no more used for Gtk+-2 but
only for Gtk+-3. 24 hours have already passed since the first attempt to
build release 4.6, I was closed to give up and declare that we can no
more support OSX until we migrate fully to Gtk+-3 and Python-3.
In a last attempt to find a solution, I tried https://brew.sh/. And I
think it is a good choice, it is like when we switched to MSYS2.
I installed every dependencies from brew and some with pip like
python-dateutil and cx_Freeze. And so I build again a bundle to discover
that it crashes exactly like all the previous one but only from the
launcher, at least it works from command line. So I'm back at the point
as the beginning.
I finally found by change this bug report:
https://github.com/GNS3/gns3-gui/issues/495
And it is exactly the problem, the stupid Apple is appending a random
argument "-psn_" to the program. So I made a similar fix at
https://bugs.tryton.org/issue6899 and build a final bundle which starts
from launcher: http://www.b2ck.com/~ced/tryton-4.6.0.dmg

The result is that I broke the old build system and I can not rebuild it
because of incompatible dependencies.
I have a brew environment on which I can build new series starting from
4.2. But the brew environment is global to the system so I can not test
if it works on a vanilla setup. So I'm requesting from user who has a
vanilla OSX without brew (python, gtk+ etc) to test this new bundle
before I publish it.
Do not report that calender view is not working, it is expected because
brew does not have goocanvas library that works with Gtk+-2.

Thanks,
-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20171101000314.GF5001%40kei.

Reply via email to