summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/attr/attr.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index 9fc0f33cce..cfa38a7196 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -29,6 +29,9 @@ ALTERNATIVE_PRIORITY = "100"
29ALTERNATIVE_${PN} = "setfattr" 29ALTERNATIVE_${PN} = "setfattr"
30ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" 30ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"
31 31
32PTEST_BUILD_HOST_FILES = "builddefs"
33PTEST_BUILD_HOST_PATTERN = "^RPM"
34
32do_install_ptest() { 35do_install_ptest() {
33 tar -c --exclude=ext test/ | ( cd ${D}${PTEST_PATH} && tar -xf - ) 36 tar -c --exclude=ext test/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
34 mkdir ${D}${PTEST_PATH}/include 37 mkdir ${D}${PTEST_PATH}/include
@@ -36,12 +39,6 @@ do_install_ptest() {
36 do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \ 39 do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \
37 done 40 done
38 sed -e 's|; @echo|; echo|' -i ${D}${PTEST_PATH}/test/Makefile 41 sed -e 's|; @echo|; echo|' -i ${D}${PTEST_PATH}/test/Makefile
39
40 # Remove any build host references
41 sed -e "s:--sysroot=${STAGING_DIR_TARGET}::g" \
42 -e 's:${HOSTTOOLS_DIR}/::g' \
43 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
44 -i ${D}${PTEST_PATH}/include/builddefs
45} 42}
46 43
47RDEPENDS_${PN}-ptest = "attr coreutils perl-module-filehandle perl-module-getopt-std perl-module-posix" 44RDEPENDS_${PN}-ptest = "attr coreutils perl-module-filehandle perl-module-getopt-std perl-module-posix"