ports/devel/glib20/files/patch-gio_xdgmime_xdgmime.c
Tobias C. Berner 55cdb2679b devel/glib20: Fix mime search path when LOCALBASE != /usr/local (honour LOCALBASE)
- explicitely not bumping port revision, as the package does not change for people
  who are using the defaults LOCALBASE=/usr/local -- no need to burden the package
  builders for this.

PR:		225378
Submitted by:	John Hein <jcfyecrayz@liamekaens.com>
2021-02-12 19:40:20 +00:00

11 lines
400 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- gio/xdgmime/xdgmime.c.orig 2020-12-17 11:47:11 UTC
+++ gio/xdgmime/xdgmime.c
@@ -235,7 +235,7 @@ xdg_init_dirs (void)
xdg_data_dirs = getenv ("XDG_DATA_DIRS");
if (xdg_data_dirs == NULL)
- xdg_data_dirs = "/usr/local/share/:/usr/share/";
+ xdg_data_dirs = "%%LOCALBASE%%/share/";
/* Work out how many dirs were dealing with. */
if (xdg_data_home != NULL || home != NULL)