Blame SOURCES/0708-artificially-serialize-building-of-.policy-files.patch

17b0f1
From ce45cf8651fabe48a75d8773dbdbf68f3dc77137 Mon Sep 17 00:00:00 2001
17b0f1
From: David Tardon <dtardon@redhat.com>
17b0f1
Date: Tue, 15 Jan 2019 19:05:41 +0100
17b0f1
Subject: [PATCH] artificially serialize building of .policy files
17b0f1
17b0f1
This avoids concurrent write access to translation cache by
17b0f1
intltool-merge.
17b0f1
17b0f1
Resolves: #1272485
17b0f1
---
17b0f1
 Makefile.am | 10 ++++++++++
17b0f1
 1 file changed, 10 insertions(+)
17b0f1
17b0f1
diff --git a/Makefile.am b/Makefile.am
17b0f1
index 40ebbe98ee..995c421b8b 100644
17b0f1
--- a/Makefile.am
17b0f1
+++ b/Makefile.am
17b0f1
@@ -653,6 +653,16 @@ dist_doc_DATA = \
17b0f1
 
17b0f1
 @INTLTOOL_POLICY_RULE@
17b0f1
 
17b0f1
+# Force serial build of policy files
17b0f1
+# Note that this ignores the fact that almost all of these files are only built optionally,
17b0f1
+# but a change in configure options is extremely unlikely at this point.
17b0f1
+src/core/org.freedesktop.systemd1.policy : src/hostname/org.freedesktop.hostname1.policy
17b0f1
+src/hostname/org.freedesktop.hostname1.policy : src/import/org.freedesktop.import1.policy
17b0f1
+src/import/org.freedesktop.import1.policy : src/locale/org.freedesktop.locale1.policy
17b0f1
+src/locale/org.freedesktop.locale1.policy : src/login/org.freedesktop.login1.policy
17b0f1
+src/login/org.freedesktop.login1.policy : src/machine/org.freedesktop.machine1.policy
17b0f1
+src/machine/org.freedesktop.machine1.policy : src/timedate/org.freedesktop.timedate1.policy
17b0f1
+
17b0f1
 # ------------------------------------------------------------------------------
17b0f1
 
17b0f1
 MANPAGES =