gtk+-3.24.14: Compilation error on macOS when using a case-sensitive file system
Steps to reproduce
- Download gtk+-3.24.14
- Configure it to use the quartz backend
- Try building GTK using
make
Current behavior
Compilation fails with
In file included from gdkdnd-quartz.c:24:
./gdkquartz-gtk-only.h:26:10: fatal error: 'Appkit/Appkit.h' file not found
#include <Appkit/Appkit.h>
Expected outcome
Compilation and installation succeeds.
Version information
- gtk+-3.24.14
- macOS High Sierra 10.13.6 with case-sensitive file system
Additional information
The cause for the compilation error is a simple typo in line 26 of gdk/quartz/gdkquartz-gtk-only.h
. The AppKit framework is included with <Appkit/Appkit.h>
instead of <AppKit/AppKit.h>
. This doesn't matter if macOS is installed on a case-insensitive file system, but causes the failure on case-sensitive file systems. Patching the typo in the header fixes the problem.
See the original MacPorts issue #60168 for more details.