exo: fix build of python modules and disable running of tests at
authorKoen Kooi <koen@openembedded.org>
Thu, 30 Oct 2008 09:21:20 +0000 (10:21 +0100)
committerKoen Kooi <koen@openembedded.org>
Thu, 30 Oct 2008 09:21:20 +0000 (10:21 +0100)
buildtime, my buildmachine can't run target code

packages/xfce/exo/exo-no-tests.patch [new file with mode: 0644]
packages/xfce/exo_0.3.4.bb

diff --git a/packages/xfce/exo/exo-no-tests.patch b/packages/xfce/exo/exo-no-tests.patch
new file mode 100644 (file)
index 0000000..1cb51ab
--- /dev/null
@@ -0,0 +1,14 @@
+The tests/ subdir consists of stuff trying to run a generated file ('exo-csource'), which doesn't work on host systems
+
+--- /tmp/Makefile.am   2008-10-30 09:23:41.000000000 +0100
++++ exo-0.3.4/Makefile.am      2008-10-30 09:24:03.011124000 +0100
+@@ -23,8 +23,7 @@
+       pixmaps                                                         \
+       po                                                              \
+       po-doc                                                          \
+-      $(PYTHON_SUBDIR)                                                \
+-      tests
++      $(PYTHON_SUBDIR)
+ AUTOMAKE_OPTIONS =                                                    \
+       1.8                                                             \
index 49ab445..17ea87d 100644 (file)
@@ -4,8 +4,12 @@ inherit xfce
 XFCE_VERSION = 4.4.2
 
 SRC_URI += " file://configure.patch;patch=1"
+SRC_URI += " file://exo-no-tests.patch;patch=1"
 
 # Note: Python checking is broken
+do_configure_prepend() {
+       sed -i -e s:'`$PKG_CONFIG --variable=defsdir pygtk-2.0`':\"${STAGING_DATADIR}/pygtk/2.0/defs\":g ${S}/configure.in
+}
 
 do_stage() {
     autotools_stage_all