On 03/01/2013 19:31, Valerio Aimale wrote:
The Mac Os X packaging infrastructure in the source tree is a bit ancient. Things I've noticed:
- configure.ac uses syntax that is not conforming anymore with
autoconf/automake/authohear 1.13. Going forward that should be updated.
- the scripts osx-build.sh os-app.sh needs update for the newest Xcode
versions. they don't work out of the box.
- the dylib base relocation infrastructure needed to be rewritten
- the Platypus-derived ScriptExec executable might not be needed anymore
- in this version, the app bundle executes the sh script directly.
Features:
- The version I packaged runs gtk-2.0+quartz. It does not need
X11/Xquartz anymore to run. This is the direction GIMP has gone to as well.
- It uses the same theme as GIMP. I think it's a good consistency
decision, and it's the theme that looks best on Mtn Lion.
If somebody want to try and report problems, I'd appreciate it
A few other things I noticed while quickly browsing the content of the package:
1) The large size of the app (~500 MB!) is to a large extent due to the number of aspell dicts included in the bundle (size of 'Contents/Resources/share/aspell': ~300 MB).
IIRC configuring aspell with the relocatable self-contained osx app never fully worked (unless one had the original installation (MacPorts tree) of the build env on the local system still in place). Since your app is huge, and the size of the included aspell dicts is larger than everything else combined, it might be worth to do a local test first with the build env moved out of the way, and with fresh preferences, whether one can select any of those languages from inside Inkscape for spellchecking e.g. depending on the UI language, or not. If not, I would recommend to only include the standard aspell resources for English for now, and maybe one additional language (it will reduce the size of the download greatly). Once the packaging/configuration issue with aspell has been solved, the project could then e.g. offer optional packages with additional dicts for download.
Related bug report: - Bug #396322 https://bugs.launchpad.net/inkscape/+bug/396322 “Allow additional dictionaries for the spell checker on OS X”
2) AFAICT the port 'gdk-pixbuf2' used for creating the package did not include an entry for SVG files via librsvg, see 'Contents/Resources/etc/gtk-2.0/gdk-pixbuf.loaders' Possible a bug (or intentional omission) in MacPorts' Portfile of librsvg, I'm not sure (there was quite a mess and several updates IIRC last year to resolve/prevent circular dependencies with librsvg and gtk2). AFAIU this missing loader will prevent displaying SVG files linked with an <image> tag (partially supported SVG feature in Inkscape), see also comments #33 and below in this related bug report:
- Bug #168244 https://bugs.launchpad.net/inkscape/+bug/168244 “[packaging] image tag does not find SVG source”
Regards, V