GNOME Bugzilla – Bug 657871
Patch to only update the MIME database if DESTDIR is not set
Last modified: 2019-02-22 11:58:10 UTC
Created attachment 195351 [details] [review] gcr: Only update the MIME database if DESTDIR is not set Instead of making all distros use --disable-update-mime, it's better to just check if DESTDIR is set and avoid updating the MIME database in that case. The attached patch implements this. Also, while at that, fixed it so that update-mime-database is actually called _after_ the .xml file gets installed.
Have you tested this with 'make distcheck'?
Created attachment 195581 [details] [review] [v2] gcr: Don't update the MIME database if DESTDIR is set Updated the patch to fix 'make distcheck' errors.
Thanks! Kept configure.ac as it was before this patch, no need to change it. Merged.
Thanks! The reason for the configure.ac change was to get the echo "*** MIME database not updated. After (un)install, run this:"; \ echo "*** $(update_mime_database_cmd)"; \ message even when --disable-update-mime is used. But works this way too.
That's true. I missed that. Although if it is explicitly disabled, we could assume that the packager/builder is aware of what was done.