#94 Cannot disable update-desktop-database

Cosmetic bug
closed-fixed
nobody
None
5
2014-03-20
2012-10-05
Daniel Macks
No

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.

Discussion

    • status: open --> closed-fixed
    • Group: --> Cosmetic bug