[gnome-ostree] 3.6: xcb-libxcb: Add patch to fix parallel make
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] 3.6: xcb-libxcb: Add patch to fix parallel make
- Date: Mon, 13 Aug 2012 19:51:00 +0000 (UTC)
commit f906eafe2b7dbf088d538ae073c7026da48b5df2
Author: Colin Walters <walters verbum org>
Date: Mon Aug 13 15:50:07 2012 -0400
3.6: xcb-libxcb: Add patch to fix parallel make
gnomeos-3.6.json | 3 +-
...x-parallel-make-issue-creating-man-direct.patch | 39 ++++++++++++++++++++
2 files changed, 41 insertions(+), 1 deletions(-)
---
diff --git a/gnomeos-3.6.json b/gnomeos-3.6.json
index e97abb2..f785257 100644
--- a/gnomeos-3.6.json
+++ b/gnomeos-3.6.json
@@ -258,7 +258,8 @@
"patches": ["xorg-autogen.patch"]},
{"src": "fd:xcb/libxcb",
- "patches": ["xorg-autogen.patch"]},
+ "patches": ["xorg-autogen.patch",
+ "xcb-libxcb-c_client-Fix-parallel-make-issue-creating-man-direct.patch"]},
{"src": "fd:xorg/lib/libX11",
"patches": ["xorg-autogen.patch"]},
diff --git a/patches/xcb-libxcb-c_client-Fix-parallel-make-issue-creating-man-direct.patch b/patches/xcb-libxcb-c_client-Fix-parallel-make-issue-creating-man-direct.patch
new file mode 100644
index 0000000..24c7e68
--- /dev/null
+++ b/patches/xcb-libxcb-c_client-Fix-parallel-make-issue-creating-man-direct.patch
@@ -0,0 +1,39 @@
+From 34a1ce1ba3a72ec989ac0c01a37c9c9aa33a0c2d Mon Sep 17 00:00:00 2001
+From: Colin Walters <walters verbum org>
+Date: Mon, 13 Aug 2012 15:06:23 -0400
+Subject: [PATCH] c_client: Fix parallel-make issue creating 'man' directory
+
+With make -j, it was possible to hit a race condition in the code to
+make the 'man' directory.
+---
+ src/c_client.py | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/c_client.py b/src/c_client.py
+index d006d30..31ed3b5 100644
+--- a/src/c_client.py
++++ b/src/c_client.py
+@@ -5,6 +5,7 @@ from functools import reduce
+ import getopt
+ import os
+ import sys
++import errno
+ import time
+ import re
+
+@@ -2902,8 +2903,11 @@ Refer to the README file in xcb/proto for more info.
+ raise
+
+ # Ensure the man subdirectory exists
+-if not os.path.exists('man'):
++try:
+ os.mkdir('man')
++except OSError, e:
++ if e.errno != errno.EEXIST:
++ raise
+
+ today = time.strftime('%Y-%m-%d', time.gmtime(os.path.getmtime(args[0])))
+
+--
+1.7.11.2
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]