3
0
Fork 0
forked from mirrors/nixpkgs

gnome3.tracker-miners: fix build

This commit is contained in:
Jan Tojnar 2018-03-05 02:10:37 +01:00
parent 53caca4adb
commit a57e9e289f
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 19 additions and 7 deletions

View file

@ -1,5 +1,5 @@
{ stdenv, intltool, fetchurl, libxml2, upower
, pkgconfig, gtk3, glib
, substituteAll, pkgconfig, gtk3, glib, gexiv2
, bash, wrapGAppsHook, itstool, vala, sqlite, libxslt
, gnome3, librsvg, gdk_pixbuf, libnotify
, evolution-data-server, gst_all_1, poppler
@ -32,18 +32,19 @@ stdenv.mkDerivation rec {
bzip2 evolution-data-server exempi flac giflib glib gnome3.totem-pl-parser
gnome3.tracker gst_all_1.gst-plugins-base gst_all_1.gstreamer icu
json-glib libcue libexif libgsf libiptcdata libjpeg libpng libseccomp libsoup
libtiff libuuid libvorbis libxml2 poppler taglib upower
libtiff libuuid libvorbis libxml2 poppler taglib upower gexiv2
];
LANG = "en_US.UTF-8"; # for running tests
doCheck = true;
postPatch = ''
substituteInPlace src/libtracker-common/tracker-domain-ontology.c --replace \
'SHAREDIR, "tracker", "domain-ontologies"' \
'"${gnome3.tracker}/share", "tracker", "domain-ontologies"'
'';
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit (gnome3) tracker;
})
];
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Projects/Tracker;

View file

@ -0,0 +1,11 @@
--- a/src/libtracker-miners-common/tracker-domain-ontology.c
+++ b/src/libtracker-miners-common/tracker-domain-ontology.c
@@ -372,7 +372,7 @@
if (!priv->ontology_location) {
gchar *ontology_path;
- ontology_path = g_build_filename (SHAREDIR, "tracker", "ontologies",
+ ontology_path = g_build_filename ("@tracker@", "share", "tracker", "ontologies",
priv->ontology_name, NULL);
if (!g_file_test (ontology_path, G_FILE_TEST_IS_DIR)) {