After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 705249 - Cannot disable update-desktop-database
Cannot disable update-desktop-database
Status: RESOLVED FIXED
Product: pybliographer
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Pybliographer maintainer(s)
Pybliographer maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-08-01 07:58 UTC by Germán Poo-Caamaño
Modified: 2014-03-20 17:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Germán Poo-Caamaño 2013-08-01 07:58:42 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/
Comment 1 Germán Poo-Caamaño 2014-03-20 17:58:56 UTC
Fixed in https://git.gnome.org/browse/pybliographer/commit/?id=816b6d8759