ports/devel/glib20/files/patch-glib_gutils.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

20 lines
638 B
C

--- glib/gutils.c.orig 2020-12-17 11:47:11 UTC
+++ glib/gutils.c
@@ -2500,7 +2500,7 @@ g_build_system_data_dirs (void)
*/
#ifndef G_OS_WIN32
if (!data_dirs || !data_dirs[0])
- data_dirs = "/usr/local/share/:/usr/share/";
+ data_dirs = "%%LOCALBASE%%/share/:/usr/share/";
data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
#else
@@ -2594,7 +2594,7 @@ g_build_system_config_dirs (void)
}
#else
if (!conf_dirs || !conf_dirs[0])
- conf_dirs = "/etc/xdg";
+ conf_dirs = "%%LOCALBASE%%/etc/xdg:/etc/xdg";
conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
#endif