summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2012-07-31 18:17:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-06 15:39:37 +0100
commit1b348704a65428d90bae022a7c4aaf813c506a2a (patch)
tree582226ac28f18c8e20d088630995845357451cc9 /meta
parent3f8e65fd444c57763a0881b929d6551aaf23b70b (diff)
downloadpoky-1b348704a65428d90bae022a7c4aaf813c506a2a.tar.gz
gthumb: fix parallel build problems
It's possible with a parallel build for make to spin waiting for a file change when it isn't going to. Fix the build rules so this doesn't happen. [YOCTO #2319] (From OE-Core rev: dea6a0eb2bf06b3dc47e276a046d8dd828e47228) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-gnome/gthumb/files/parallel.patch158
-rw-r--r--meta/recipes-gnome/gthumb/gthumb_2.12.4.bb6
2 files changed, 161 insertions, 3 deletions
diff --git a/meta/recipes-gnome/gthumb/files/parallel.patch b/meta/recipes-gnome/gthumb/files/parallel.patch
new file mode 100644
index 0000000000..20ce5c5aa2
--- /dev/null
+++ b/meta/recipes-gnome/gthumb/files/parallel.patch
@@ -0,0 +1,158 @@
1From 34969cde1dcb7740b4a7c3b6e3d04d481e5980b5 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com>
3Date: Tue, 31 Jul 2012 17:26:27 +0100
4Subject: [PATCH] build: Fix parallel build problems with enum generation
5
6This is a backport from a patch against master.
7
8Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=680925]
9---
10 extensions/file_tools/Makefile.am | 10 ++++------
11 extensions/importer/Makefile.am | 10 ++++------
12 extensions/pixbuf_savers/Makefile.am | 10 ++++------
13 gthumb/Makefile.am | 10 ++++------
14 4 files changed, 16 insertions(+), 24 deletions(-)
15
16diff --git a/extensions/file_tools/Makefile.am b/extensions/file_tools/Makefile.am
17index 7785eff..d70a8a5 100644
18--- a/extensions/file_tools/Makefile.am
19+++ b/extensions/file_tools/Makefile.am
20@@ -24,17 +24,16 @@ HEADER_FILES = \
21 gth-file-tool-undo.h \
22 preferences.h
23
24-enum-types.h: $(HEADER_FILES) $(GLIB_MKENUMS)
25+enum-types.h: $(HEADER_FILES)
26 $(AM_V_GEN)( $(GLIB_MKENUMS) \
27 --fhead "#ifndef ENUM_TYPES_H\n#define ENUM_TYPES_H\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
28 --fprod "/* enumerations from \"@filename@\" */\n" \
29 --vhead "GType @enum_name@_get_type (void);\n#define GTH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
30 --ftail "G_END_DECLS\n\n#endif /* ENUM_TYPES_H */" \
31 $^> xgen-$(@F) \
32- && (cmp -s xgen-$(@F) enum-types.h || cp xgen-$(@F) enum-types.h ) \
33- && rm -f xgen-$(@F) )
34+ && mv -f xgen-$(@F) enum-types.h )
35
36-enum-types.c: $(HEADER_FILES) enum-types.h
37+enum-types.c: $(HEADER_FILES)
38 $(AM_V_GEN)( $(GLIB_MKENUMS) \
39 --fhead "#include <glib-object.h>\n" \
40 --fprod "\n/* enumerations from \"@filename@\" */\n#include \"@filename@\"" \
41@@ -42,8 +41,7 @@ enum-types.c: $(HEADER_FILES) enum-types.h
42 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
43 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
44 $^> xgen-$(@F) \
45- && (cmp -s xgen-$(@F) enum-types.c || cp xgen-$(@F) enum-types.c ) \
46- && rm -f xgen-$(@F) )
47+ && mv -f xgen-$(@F) enum-types.c )
48
49 libfile_tools_la_SOURCES = \
50 $(ENUM_TYPES) \
51diff --git a/extensions/importer/Makefile.am b/extensions/importer/Makefile.am
52index 29e7f2c..07c1eba 100644
53--- a/extensions/importer/Makefile.am
54+++ b/extensions/importer/Makefile.am
55@@ -14,17 +14,16 @@ HEADER_FILES = \
56 preferences.h \
57 utils.h
58
59-gth-import-enum-types.h: $(HEADER_FILES) $(GLIB_MKENUMS)
60+gth-import-enum-types.h: $(HEADER_FILES)
61 $(AM_V_GEN)( $(GLIB_MKENUMS) \
62 --fhead "#ifndef ENUM_TYPES_H\n#define ENUM_TYPES_H\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
63 --fprod "/* enumerations from \"@filename@\" */\n" \
64 --vhead "GType @enum_name@_get_type (void);\n#define GTH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
65 --ftail "G_END_DECLS\n\n#endif /* ENUM_TYPES_H */" \
66 $^> xgen-$(@F) \
67- && (cmp -s xgen-$(@F) gth-import-enum-types.h || cp xgen-$(@F) gth-import-enum-types.h ) \
68- && rm -f xgen-$(@F) )
69+ && mv -f xgen-$(@F) gth-import-enum-types.h )
70
71-gth-import-enum-types.c: $(HEADER_FILES) gth-import-enum-types.h
72+gth-import-enum-types.c: $(HEADER_FILES)
73 $(AM_V_GEN)( $(GLIB_MKENUMS) \
74 --fhead "#include <glib-object.h>\n" \
75 --fprod "\n/* enumerations from \"@filename@\" */\n#include \"@filename@\"" \
76@@ -32,8 +31,7 @@ gth-import-enum-types.c: $(HEADER_FILES) gth-import-enum-types.h
77 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
78 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
79 $^> xgen-$(@F) \
80- && (cmp -s xgen-$(@F) gth-import-enum-types.c || cp xgen-$(@F) gth-import-enum-types.c ) \
81- && rm -f xgen-$(@F) )
82+ && mv -f xgen-$(@F) gth-import-enum-types.c )
83
84 libimporter_la_SOURCES = \
85 $(ENUM_TYPES) \
86diff --git a/extensions/pixbuf_savers/Makefile.am b/extensions/pixbuf_savers/Makefile.am
87index bfe9f34..4764c32 100644
88--- a/extensions/pixbuf_savers/Makefile.am
89+++ b/extensions/pixbuf_savers/Makefile.am
90@@ -10,17 +10,16 @@ ENUM_TYPES = \
91 HEADER_FILES = \
92 preferences.h
93
94-enum-types.h: $(HEADER_FILES) $(GLIB_MKENUMS)
95+enum-types.h: $(HEADER_FILES)
96 $(AM_V_GEN)( $(GLIB_MKENUMS) \
97 --fhead "#ifndef ENUM_TYPES_H\n#define ENUM_TYPES_H\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
98 --fprod "/* enumerations from \"@filename@\" */\n" \
99 --vhead "GType @enum_name@_get_type (void);\n#define GTH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
100 --ftail "G_END_DECLS\n\n#endif /* ENUM_TYPES_H */" \
101 $^> xgen-$(@F) \
102- && (cmp -s xgen-$(@F) enum-types.h || cp xgen-$(@F) enum-types.h ) \
103- && rm -f xgen-$(@F) )
104+ && mv -f xgen-$(@F) enum-types.h )
105
106-enum-types.c: $(HEADER_FILES) enum-types.h
107+enum-types.c: $(HEADER_FILES)
108 $(AM_V_GEN)( $(GLIB_MKENUMS) \
109 --fhead "#include <glib-object.h>\n" \
110 --fprod "\n/* enumerations from \"@filename@\" */\n#include \"@filename@\"" \
111@@ -28,8 +27,7 @@ enum-types.c: $(HEADER_FILES) enum-types.h
112 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
113 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
114 $^> xgen-$(@F) \
115- && (cmp -s xgen-$(@F) enum-types.c || cp xgen-$(@F) enum-types.c ) \
116- && rm -f xgen-$(@F) )
117+ && mv -f xgen-$(@F) enum-types.c )
118
119 libpixbuf_savers_la_SOURCES = \
120 $(ENUM_TYPES) \
121diff --git a/gthumb/Makefile.am b/gthumb/Makefile.am
122index e9e385e..2f14e03 100644
123--- a/gthumb/Makefile.am
124+++ b/gthumb/Makefile.am
125@@ -296,17 +296,16 @@ gthumb_CFLAGS = \
126 -DGTHUMB_EXTENSIONS_DIR=\"$(extensions_dir)\" \
127 $(NULL)
128
129-gth-enum-types.h: $(PUBLIC_HEADER_FILES) $(GLIB_MKENUMS)
130+gth-enum-types.h: $(PUBLIC_HEADER_FILES)
131 $(AM_V_GEN)( $(GLIB_MKENUMS) \
132 --fhead "#ifndef GTH_ENUM_TYPES_H\n#define GTH_ENUM_TYPES_H\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
133 --fprod "/* enumerations from \"@filename@\" */\n" \
134 --vhead "GType @enum_name@_get_type (void);\n#define GTH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
135 --ftail "G_END_DECLS\n\n#endif /* GTH_ENUM_TYPES_H */" \
136 $^> xgen-$(@F) \
137- && (cmp -s xgen-$(@F) gth-enum-types.h || cp xgen-$(@F) gth-enum-types.h ) \
138- && rm -f xgen-$(@F) )
139+ && mv -f xgen-$(@F) gth-enum-types.h )
140
141-gth-enum-types.c: $(PUBLIC_HEADER_FILES) gth-enum-types.h
142+gth-enum-types.c: $(PUBLIC_HEADER_FILES)
143 $(AM_V_GEN)( $(GLIB_MKENUMS) \
144 --fhead "#include <glib-object.h>\n" \
145 --fprod "\n/* enumerations from \"@filename@\" */\n#include \"@filename@\"" \
146@@ -314,8 +313,7 @@ gth-enum-types.c: $(PUBLIC_HEADER_FILES) gth-enum-types.h
147 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
148 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
149 $^> xgen-$(@F) \
150- && (cmp -s xgen-$(@F) gth-enum-types.c || cp xgen-$(@F) gth-enum-types.c ) \
151- && rm -f xgen-$(@F) )
152+ && mv -f xgen-$(@F) gth-enum-types.c )
153
154 gth-marshal.h: gth-marshal.list $(GLIB_GENMARSHAL)
155 $(AM_V_GEN)( $(GLIB_GENMARSHAL) $(srcdir)/gth-marshal.list --header --prefix=gth_marshal > $@ )
156--
1571.7.10.4
158
diff --git a/meta/recipes-gnome/gthumb/gthumb_2.12.4.bb b/meta/recipes-gnome/gthumb/gthumb_2.12.4.bb
index 6ab63bb3a8..0414386d8a 100644
--- a/meta/recipes-gnome/gthumb/gthumb_2.12.4.bb
+++ b/meta/recipes-gnome/gthumb/gthumb_2.12.4.bb
@@ -4,17 +4,17 @@ LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" 4LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
5DEPENDS = "glib-2.0 gtk+ libxml2 gnome-doc-utils libunique gconf libpng gstreamer jpeg tiff gst-plugins-base" 5DEPENDS = "glib-2.0 gtk+ libxml2 gnome-doc-utils libunique gconf libpng gstreamer jpeg tiff gst-plugins-base"
6 6
7PR = "r3" 7PR = "r4"
8 8
9EXTRA_OECONF = "--disable-gnome-keyring --disable-libsoup --disable-exiv2 --disable-clutter" 9EXTRA_OECONF = "--disable-gnome-keyring --disable-libsoup --disable-exiv2 --disable-clutter"
10 10
11PARALLEL_MAKEINST=""
12
13inherit gnome pkgconfig 11inherit gnome pkgconfig
14 12
15SRC_URI[archive.md5sum] = "97fc13221b0c5d80c27a2e25a3a3ac6f" 13SRC_URI[archive.md5sum] = "97fc13221b0c5d80c27a2e25a3a3ac6f"
16SRC_URI[archive.sha256sum] = "cf809695230ab8892a078be454a42ade865754c72ec1da7c3d74d4310de54f1d" 14SRC_URI[archive.sha256sum] = "cf809695230ab8892a078be454a42ade865754c72ec1da7c3d74d4310de54f1d"
17 15
16SRC_URI += "file://parallel.patch"
17
18do_install_append () { 18do_install_append () {
19 rm ${D}${libdir}/${BPN}/extensions/*.a 19 rm ${D}${libdir}/${BPN}/extensions/*.a
20} 20}