diff options
-rw-r--r-- | recipes-extended/libvirt/libvirt-python.inc | 4 | ||||
-rw-r--r-- | recipes-extended/libvirt/libvirt/tests-allow-separated-src-and-build-dirs.patch | 57 | ||||
-rw-r--r-- | recipes-extended/libvirt/libvirt_1.2.2.bb | 1 |
3 files changed, 60 insertions, 2 deletions
diff --git a/recipes-extended/libvirt/libvirt-python.inc b/recipes-extended/libvirt/libvirt-python.inc index 195a9dee..181e9d3c 100644 --- a/recipes-extended/libvirt/libvirt-python.inc +++ b/recipes-extended/libvirt/libvirt-python.inc | |||
@@ -23,8 +23,8 @@ SRC_URI[libvirt_python.sha256sum] = "94d79d662b6010f6c688b8856b2d95077736d48ffa3 | |||
23 | 23 | ||
24 | export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml" | 24 | export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml" |
25 | export LIBVIRT_CFLAGS = "-I${S}/include" | 25 | export LIBVIRT_CFLAGS = "-I${S}/include" |
26 | export LIBVIRT_LIBS = "-L${S}/src/.libs -lvirt -ldl" | 26 | export LIBVIRT_LIBS = "-L${B}/src/.libs -lvirt -ldl" |
27 | export LDFLAGS="-L${S}/src/.libs" | 27 | export LDFLAGS="-L${B}/src/.libs" |
28 | 28 | ||
29 | LIBVIRT_INSTALL_ARGS = "--root=${D} \ | 29 | LIBVIRT_INSTALL_ARGS = "--root=${D} \ |
30 | --prefix=${prefix} \ | 30 | --prefix=${prefix} \ |
diff --git a/recipes-extended/libvirt/libvirt/tests-allow-separated-src-and-build-dirs.patch b/recipes-extended/libvirt/libvirt/tests-allow-separated-src-and-build-dirs.patch new file mode 100644 index 00000000..3964865b --- /dev/null +++ b/recipes-extended/libvirt/libvirt/tests-allow-separated-src-and-build-dirs.patch | |||
@@ -0,0 +1,57 @@ | |||
1 | From 884b6e3724b75cd92766d5386455983e3557a286 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Asselstine <mark.asselstine@windriver.com> | ||
3 | Date: Fri, 2 May 2014 13:45:05 -0400 | ||
4 | Subject: [PATCH] tests: allow separated src and build dirs | ||
5 | |||
6 | Fixup Makefile.am to search for static files back in srcdir. | ||
7 | |||
8 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
9 | --- | ||
10 | tests/Makefile.am | 14 +++++++------- | ||
11 | 1 file changed, 7 insertions(+), 7 deletions(-) | ||
12 | |||
13 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
14 | index 0da514b..b8d7c19 100644 | ||
15 | --- a/tests/Makefile.am | ||
16 | +++ b/tests/Makefile.am | ||
17 | @@ -1006,22 +1006,22 @@ install-ptest: | ||
18 | @(if [ -d ../tools/.libs ] ; then cd ../tools/.libs; fi; \ | ||
19 | install * $(DEST_DIR)/tools) | ||
20 | install -d $(DEST_DIR)/src/network | ||
21 | - cp ../src/network/*.xml $(DEST_DIR)/src/network | ||
22 | + cp $(top_srcdir)/src/network/*.xml $(DEST_DIR)/src/network | ||
23 | install -d $(DEST_DIR)/src/cpu | ||
24 | - cp ../src/cpu/*.xml $(DEST_DIR)/src/cpu | ||
25 | + cp $(top_srcdir)/src/cpu/*.xml $(DEST_DIR)/src/cpu | ||
26 | install ../src/libvirt_iohelper $(DEST_DIR)/src | ||
27 | install -D ../daemon/libvirtd $(DEST_DIR)/daemon/libvirtd | ||
28 | - install -D ../daemon/libvirtd.conf $(DEST_DIR)/daemon/libvirtd.conf | ||
29 | + install -D $(top_srcdir)/daemon/libvirtd.conf $(DEST_DIR)/daemon/libvirtd.conf | ||
30 | @(if [ -d ../daemon/.libs ] ; then cd ../daemon/.libs; fi; \ | ||
31 | install * $(DEST_DIR)/daemon) | ||
32 | install -d $(DEST_DIR)/src/.libs | ||
33 | @(if [ -d ../src/.libs ] ; then cd ../src/.libs; fi; \ | ||
34 | install * $(DEST_DIR)/src/.libs) | ||
35 | install -d $(DEST_DIR)/docs/schemas | ||
36 | - cp ../docs/schemas/*.rng $(DEST_DIR)/docs/schemas | ||
37 | - cp -r ../build-aux $(DEST_DIR) | ||
38 | + cp $(top_srcdir)/docs/schemas/*.rng $(DEST_DIR)/docs/schemas | ||
39 | + cp -r $(top_srcdir)/build-aux $(DEST_DIR) | ||
40 | install -d $(DEST_DIR)/examples/xml | ||
41 | - cp -r ../examples/xml/test $(DEST_DIR)/examples/xml | ||
42 | + cp -r $(top_srcdir)/examples/xml/test $(DEST_DIR)/examples/xml | ||
43 | install -d $(DEST_DIR)/tests/.libs | ||
44 | find . -type d -name "*xml2xml*" -exec cp -r {} $(DEST_DIR)/tests \; | ||
45 | find . -type d -name "*data" -exec cp -r {} $(DEST_DIR)/tests \; | ||
46 | @@ -1029,7 +1029,7 @@ install-ptest: | ||
47 | if [ -f .libs/$$file ]; then \ | ||
48 | install .libs/$$file $(DEST_DIR)/tests; \ | ||
49 | else \ | ||
50 | - install $$file $(DEST_DIR)/tests; \ | ||
51 | + install $(srcdir)/$$file $(DEST_DIR)/tests; \ | ||
52 | fi; \ | ||
53 | done;) | ||
54 | @(if [ -d .libs ]; then install .libs/*.so $(DEST_DIR)/tests/.libs; fi;) | ||
55 | -- | ||
56 | 1.8.3.2 | ||
57 | |||
diff --git a/recipes-extended/libvirt/libvirt_1.2.2.bb b/recipes-extended/libvirt/libvirt_1.2.2.bb index a66a6adb..22ae2c7a 100644 --- a/recipes-extended/libvirt/libvirt_1.2.2.bb +++ b/recipes-extended/libvirt/libvirt_1.2.2.bb | |||
@@ -29,6 +29,7 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \ | |||
29 | file://libvirtd.conf \ | 29 | file://libvirtd.conf \ |
30 | file://runptest.patch \ | 30 | file://runptest.patch \ |
31 | file://run-ptest \ | 31 | file://run-ptest \ |
32 | file://tests-allow-separated-src-and-build-dirs.patch \ | ||
32 | " | 33 | " |
33 | 34 | ||
34 | SRC_URI[libvirt.md5sum] = "592958ad1ddce7574d8cb0a31e635acd" | 35 | SRC_URI[libvirt.md5sum] = "592958ad1ddce7574d8cb0a31e635acd" |