summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/shared-mime-info/shared-mime-info/install-data-hook.patch
blob: 4c075f254901a9ce70c614d13c15dd55fd078d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
fix shared-mime-info build race condition

The definition of install-data-hook in Makefile.am leads
to multiple, overlapping, executions of install-binPROGRAMS
target.  We modify the definition to avoid that.

Signed-off-by: Joe Slater <jslater@windriver.com>

--- a/Makefile.am
+++ b/Makefile.am
@@ -44,7 +44,9 @@ $(pkgconfig_DATA): config.status
 @INTLTOOL_XML_RULE@
 @INTLTOOL_DESKTOP_RULE@
 
-install-data-hook: install-binPROGRAMS
+# do NOT make this dependent on anything!
+#
+install-data-hook:
 if ENABLE_UPDATE_MIMEDB
 	$(DESTDIR)"$(bindir)/update-mime-database" -V "$(DESTDIR)$(datadir)/mime"
 endif