GNOME Bugzilla – Bug 705249
Cannot disable update-desktop-database
Last modified: 2014-03-20 17:58:56 UTC
In a packaging/buildfarm environment, 'make install' goes to a staging location (via DESTDIR=...). Because it's not the "live" target system, it also must not add alter the various databases on the local machine. In pybliographer-1.2.15, 'make install' unconditionally runs the Makefile recipe: install-data-hook: update-desktop-database $(DESTDIR)$(appdir) \ || echo "**** Warning: cannot update mime cache (recommended for Gnome >= 2.8)" This action needs to be disablable somehow. Many packages have a ./configure --disable-update-desktop-database or similar flag. An alternative that other packages do is to assume that if DESTDIR is used, it's building on a non-target machine, and so running u-d-d could be protected by a shell-test for that variable being blank. https://sourceforge.net/p/pybliographer/bugs/94/
Fixed in https://git.gnome.org/browse/pybliographer/commit/?id=816b6d8759