$OpenBSD: patch-lib_colord_cd-icc-store_c,v 1.1 2014/04/11 10:48:17 ajacoutot Exp $

/var/lib -> /var/db

--- lib/colord/cd-icc-store.c.orig	Thu Feb 13 20:22:12 2014
+++ lib/colord/cd-icc-store.c	Fri Apr 11 11:47:28 2014
@@ -210,7 +210,7 @@ cd_icc_store_add_icc (CdIccStore *store, GFile *file, 
 	icc = cd_icc_new ();
 	filename = g_file_get_path (file);
 	if (store->priv->cache != NULL) {
-		if (g_str_has_prefix (filename, "/usr/share/color/icc/colord/")) {
+		if (g_str_has_prefix (filename, "${LOCALBASE}/share/color/icc/colord/")) {
 			cache_key = g_build_filename ("/org/freedesktop/colord",
 						      "profiles",
 						      filename + 28,
@@ -655,11 +655,11 @@ cd_icc_store_search_kind (CdIccStore *store,
 		break;
 	case CD_ICC_STORE_SEARCH_KIND_MACHINE:
 		g_ptr_array_add (locations, g_strdup (CD_SYSTEM_PROFILES_DIR));
-		g_ptr_array_add (locations, g_strdup ("/var/lib/color/icc"));
+		g_ptr_array_add (locations, g_strdup ("/var/db/color/icc"));
 		break;
 	case CD_ICC_STORE_SEARCH_KIND_SYSTEM:
 		g_ptr_array_add (locations, g_strdup ("/usr/share/color/icc"));
-		g_ptr_array_add (locations, g_strdup ("/usr/local/share/color/icc"));
+		g_ptr_array_add (locations, g_strdup ("${LOCALBASE}/share/color/icc"));
 		g_ptr_array_add (locations, g_strdup ("/Library/ColorSync/Profiles/Displays"));
 		break;
 	default:
