GNOME Bugzilla – Bug 792282
gtk4 hard-codes the prefix of iso-codes in gtk/language-names.c and demos/gtk-demo/language-names.c
Last modified: 2018-01-07 06:57:27 UTC
Both gtk/language-names.c and demos/gtk-demo/language-names.c hard-code ISO_CODES_PREFIX to /usr, and it causes warning messages to show on the terminal on FreeBSD because iso-codes can never be installed to /usr. FreeBSD ports use /usr/local as prefix by default. iso-codes package provides a .pc file, so we can easily know the prefix by running 'pkg-config --variable=prefix iso-codes'.
Created attachment 366432 [details] [review] build: Use pkg-config to find iso-codes Instead of hard-coding the path of iso-codes, we can get the prefix with pkg-config. We still fallback to /usr when it is not available.
Review of attachment 366432 [details] [review]: Looks good to me
Attachment 366432 [details] pushed as 14b181e - build: Use pkg-config to find iso-codes