python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / shared-mime-info / 0001-Remove-incorrect-dependency-from-install-data-hook.patch
bloba0d3fb0fb34d4e575409e8a227b6492e4004da3c
1 From 3bcb00e27ab09c433fdfecace0d48a6a7ed55ea8 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Fri, 22 Apr 2016 23:14:32 +0200
4 Subject: [PATCH] Remove incorrect dependency from install-data-hook
6 Having install-binPROGRAMS as a dependency of install-data-hook is not
7 correct, as it causes the installation of programs to be executed
8 twice, and those two installations are racing with each other, causing
9 random installation failures.
11 In addition, this dependency is not needed: the install-data-hook
12 calls the update-mime-database program in one of two ways:
14 - When cross-compiling, using the program pointed by
15 UPDATE_MIME_DATABASE, which is already built, and is not installed
16 by install-binPROGRAMS.
18 - When compiling natively, suing the update-mime-database from the
19 build directory, so there is no need to depend on
20 install-binPROGRAMS.
22 This patch is similar to the patch used by the Yocto Project at
23 http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-support/shared-mime-info/shared-mime-info/install-data-hook.patch.
25 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
26 ---
27 Makefile.am | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
30 diff --git a/Makefile.am b/Makefile.am
31 index 6fc4f73..c318dc3 100644
32 --- a/Makefile.am
33 +++ b/Makefile.am
34 @@ -52,7 +52,7 @@ else
35 update_mime_database="$(top_builddir)/update-mime-database$(EXEEXT)"
36 endif
38 -install-data-hook: install-binPROGRAMS
39 +install-data-hook:
40 if ENABLE_UPDATE_MIMEDB
41 $(update_mime_database) -V "$(DESTDIR)$(datadir)/mime"
42 endif
43 --
44 2.6.4