This file includes a patch to support switching between native and generic
application information interfaces.
The native interfaced is used for Quartz-based builds of GTK+ and uses
application bundle information, while the generic interface is the freedesktop
implementation working with standard .desktop files.
Both options are mutually exclusive, as glib (so far) only supports one
specific implementation that must be compiled and linked statically into the
shared library at build time.
For X11 builds of glib (our default), we want to support .desktop files.
IMPORTANT: this file includes only changes as generated after running
autoreconf, but not to the automake/autoconf templates
(configure.ac, Makefile.am), since we cannot easily use
autoreconf in MacPorts due to other patches changing the
generated configure script directly.
Any such changes after the patch phase would be overwritten by
If you intend to change this patch, follow these steps:
- run NOCONFIGURE=1 ./autogen.sh
- copy the source directory as glib-...-old
- apply patch-configure-switch-for-gappinfo-impl.diff
- make any changes necessary, but ONLY to files that are being
used by autoconf/automake/libtool to generate other files
(e.g., configure.ac, Makefile.am) - do not edit configure or
- run NOCONFIGURE=1 ./autogen.sh again
- diff against glib-...-old and save as
patch-configure-switch-for-gappinfo-impl-mp.diff
- *move* any changes to files used by autoconf/automake to
patch-configure-switch-for-gappinfo-impl.diff, so that
the new patch-configure-switch-for-gappinfo-impl-mp.diff file
only includes generated changes
WARNING: changes to autoconf.ac will lead to the build system trying to
re-generate and re-run the configure script, which will OVERWRITE
MacPorts-specific changes!
--- config.h.in.orig 2017-11-22 22:39:54.000000000 -0600
+++ config.h.in 2017-11-22 22:41:24.000000000 -0600
+/* Prefer the generic (freedesktop-based) application information
+#undef USE_APPINFO_GENERIC
+/* Prefer the native application information implementation */
+#undef USE_APPINFO_NATIVE
--- configure.orig 2017-11-22 22:39:53.000000000 -0600
+++ configure 2017-11-22 22:41:23.000000000 -0600
+APPINFO_IMPL_GENERIC_FALSE