diff options
Diffstat (limited to 'meta/recipes-support/attr/attr_2.5.2.bb')
| -rw-r--r-- | meta/recipes-support/attr/attr_2.5.2.bb | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/meta/recipes-support/attr/attr_2.5.2.bb b/meta/recipes-support/attr/attr_2.5.2.bb index b1a20930ed..390445b959 100644 --- a/meta/recipes-support/attr/attr_2.5.2.bb +++ b/meta/recipes-support/attr/attr_2.5.2.bb | |||
| @@ -32,47 +32,29 @@ ALTERNATIVE:${PN} = "setfattr getfattr" | |||
| 32 | ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" | 32 | ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" |
| 33 | ALTERNATIVE_TARGET[getfattr] = "${bindir}/getfattr" | 33 | ALTERNATIVE_TARGET[getfattr] = "${bindir}/getfattr" |
| 34 | 34 | ||
| 35 | PTEST_BUILD_HOST_FILES = "builddefs" | ||
| 36 | PTEST_BUILD_HOST_PATTERN = "^RPM" | ||
| 37 | |||
| 38 | do_install_ptest() { | 35 | do_install_ptest() { |
| 39 | cp ${B}/Makefile ${D}${PTEST_PATH} | 36 | install -m755 ${S}/test/run ${S}/test/sort-getfattr-output ${D}${PTEST_PATH}/ |
| 40 | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | ||
| 41 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
| 42 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
| 43 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
| 44 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
| 45 | -i ${D}${PTEST_PATH}/Makefile | ||
| 46 | |||
| 47 | sed -e "s|^srcdir =.*|srcdir = .|" \ | ||
| 48 | -e "s|^abs_srcdir =.*|abs_srcdir = .|" \ | ||
| 49 | -e "s|^abs_top_srcdir =.*|abs_top_srcdir = ..|" \ | ||
| 50 | -e "s|^Makefile:.*|Makefile:|" \ | ||
| 51 | -e "/^TEST_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \ | ||
| 52 | -i ${D}${PTEST_PATH}/Makefile | ||
| 53 | 37 | ||
| 54 | cp -rf ${S}/build-aux/ ${D}${PTEST_PATH} | 38 | for t in $(makefile-getvar ${S}/test/Makemodule.am TESTS); do |
| 55 | cp -rf ${S}/test/ ${D}${PTEST_PATH} | 39 | install -m644 ${S}/$t ${D}${PTEST_PATH}/ |
| 40 | done | ||
| 56 | } | 41 | } |
| 57 | 42 | ||
| 58 | do_install_ptest:append:libc-musl() { | 43 | do_install_ptest:append:libc-musl() { |
| 59 | sed -i -e 's|f: Operation n|f: N|g' ${D}${PTEST_PATH}/test/attr.test | 44 | # With glibc strerror(ENOTSUP) is "Operation not supported" but |
| 45 | # musl is "Not supported". | ||
| 46 | # https://savannah.nongnu.org/bugs/?62370 | ||
| 47 | sed -i -e 's|f: Operation not supported|f: Not supported|g' ${D}${PTEST_PATH}/attr.test | ||
| 60 | } | 48 | } |
| 61 | 49 | ||
| 62 | RDEPENDS:${PN}-ptest = "attr \ | 50 | RDEPENDS:${PN}-ptest = "attr \ |
| 63 | bash \ | ||
| 64 | coreutils \ | ||
| 65 | perl-module-constant \ | ||
| 66 | perl-module-filehandle \ | ||
| 67 | perl-module-getopt-std \ | ||
| 68 | perl-module-posix \ | ||
| 69 | make \ | ||
| 70 | perl \ | 51 | perl \ |
| 71 | gawk \ | ||
| 72 | perl-module-cwd \ | 52 | perl-module-cwd \ |
| 73 | perl-module-file-basename \ | 53 | perl-module-file-basename \ |
| 74 | perl-module-file-path \ | 54 | perl-module-file-path \ |
| 75 | perl-module-file-spec \ | 55 | perl-module-filehandle \ |
| 56 | perl-module-getopt-std \ | ||
| 57 | perl-module-posix \ | ||
| 76 | " | 58 | " |
| 77 | 59 | ||
| 78 | BBCLASSEXTEND = "native nativesdk" | 60 | BBCLASSEXTEND = "native nativesdk" |
