GNOME Bugzilla – Bug 740864
Symlink target for D-Bus service files includes DESTDIR
Last modified: 2014-12-02 10:16:25 UTC
The change in 1.3.0 to merge all miner .desktop files into the D-Bus service files (ccbd489c79136388400f93af4f67f05516dc6a0e) used symlinks between the D-Bus service directory and the tracker miner directory. This is fine, but DESTDIR was used as the target of the link. Upon installation into DESTDIR, this is fine (as the symlink points to a file within DESTDIR), but upon installation of the DESTDIR tree into the real root, the symlink will dangle, as it still targets the DESTDIR location. The target of the symlink should be the target in the real root, not the DESTDIR root.
Created attachment 291726 [details] [review] change the symlink target to use the install root
Comment on attachment 291726 [details] [review] change the symlink target to use the install root Thanks for the patch, I see your point. I do wonder if this patch will cause problems for distros, but it looks right to me.
Review of attachment 291726 [details] [review]: Thanks! Pushed to master as e3f290872f3d1a7e40d37d54ba992a029d78fc33. This should improve the situation for distributions, as (at least) Fedora packaging tools fail to build a binary package if the symlinks point inside DESTDIR. I came up with this patch while preparing the 1.3.0 update for Fedora: http://pkgs.fedoraproject.org/cgit/tracker.git/commit/?id=684e287eb8b1544a04b5c0fd5595eed7d94ed119