GNOME Bugzilla – Bug 516620
[0.4.2] GalleryExport makefile tries to delete /usr/lib/f-spot/extensions/GalleryExport.addin.xml
Last modified: 2008-03-12 15:05:59 UTC
Please describe the problem: When building F-Spot with a diverted DESTDIR (for example, when building a Debian package for it), the build process fails in extensions/GalleryExport during install phase: rm -f /usr/lib/f-spot/extensions/GalleryExport.addin.xml Steps to reproduce: 1. Execute configure and make 2. Try executing make install as a normal user with a diverted DESTDIR, for example, DESTDIR=/tmp/f-spot Actual results: Installation tries to delete /usr/lib/f-spot/extensions/GalleryExport.addin.xml and fails because the user is not root. Expected results: Installation tries to delete (DESTDIR)/usr/lib/f-spot/extensions/GalleryExport.addin.xml and succeeds, because this file either doesn't exist or is deletable by a normal user. Does this happen every time? Yes. Other information:
fixed in r3681
Created attachment 106877 [details] [review] Actually respect $(DESTDIR). The fix committed didn't actually solve the problem - the custom install hook is still looking at entirely the wrong file. If a user left the wrong permissions on the installed XML file, then it would get deleted accidentally. Here is a better fix.
fixed in r3743
*** Bug 522031 has been marked as a duplicate of this bug. ***