diff options
Diffstat (limited to 'meta/recipes-extended/cpio/cpio_2.13.bb')
| -rw-r--r-- | meta/recipes-extended/cpio/cpio_2.13.bb | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/meta/recipes-extended/cpio/cpio_2.13.bb b/meta/recipes-extended/cpio/cpio_2.13.bb index df5e09cae8..55bcc606b3 100644 --- a/meta/recipes-extended/cpio/cpio_2.13.bb +++ b/meta/recipes-extended/cpio/cpio_2.13.bb | |||
| @@ -14,6 +14,7 @@ SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \ | |||
| 14 | file://0001-Use-__alignof__-with-clang.patch \ | 14 | file://0001-Use-__alignof__-with-clang.patch \ |
| 15 | file://0001-Wrong-CRC-with-ASCII-CRC-for-large-files.patch \ | 15 | file://0001-Wrong-CRC-with-ASCII-CRC-for-large-files.patch \ |
| 16 | file://run-ptest \ | 16 | file://run-ptest \ |
| 17 | file://test.sh \ | ||
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | SRC_URI[md5sum] = "389c5452d667c23b5eceb206f5000810" | 20 | SRC_URI[md5sum] = "389c5452d667c23b5eceb206f5000810" |
| @@ -57,9 +58,24 @@ do_install_ptest() { | |||
| 57 | install --mode=755 ${B}/tests/atlocal ${D}${PTEST_PATH}/tests/ | 58 | install --mode=755 ${B}/tests/atlocal ${D}${PTEST_PATH}/tests/ |
| 58 | install --mode=755 ${B}/tests/genfile ${D}${PTEST_PATH}/tests/ | 59 | install --mode=755 ${B}/tests/genfile ${D}${PTEST_PATH}/tests/ |
| 59 | install --mode=755 ${S}/tests/testsuite ${D}${PTEST_PATH}/tests/ | 60 | install --mode=755 ${S}/tests/testsuite ${D}${PTEST_PATH}/tests/ |
| 60 | sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/run-ptest | 61 | install --mode=755 ${WORKDIR}/test.sh ${D}${PTEST_PATH}/test.sh |
| 62 | sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/test.sh | ||
| 61 | } | 63 | } |
| 62 | 64 | ||
| 65 | # ptest.bbclass currently chowns the ptest directory explicitly, so we need to | ||
| 66 | # change permission after that has happened so the ptest user can write a | ||
| 67 | # temporary directory. | ||
| 68 | do_install_ptest_base:append() { | ||
| 69 | chgrp -R ptest ${D}${PTEST_PATH}/ | ||
| 70 | chmod -R g+w ${D}${PTEST_PATH}/ | ||
| 71 | } | ||
| 72 | |||
| 73 | # The tests need to run as a non-root user, so pull in the ptest user | ||
| 74 | DEPENDS:append:class-target = "${@bb.utils.contains('PTEST_ENABLED', '1', ' ptest-runner', '', d)}" | ||
| 75 | PACKAGE_WRITE_DEPS += "ptest-runner" | ||
| 76 | |||
| 77 | RDEPENDS:${PN}-ptest += "ptest-runner" | ||
| 78 | |||
| 63 | PACKAGES =+ "${PN}-rmt" | 79 | PACKAGES =+ "${PN}-rmt" |
| 64 | 80 | ||
| 65 | FILES:${PN}-rmt = "${sbindir}/rmt*" | 81 | FILES:${PN}-rmt = "${sbindir}/rmt*" |
