diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-01-14 14:59:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-16 22:33:09 +0000 |
commit | 3e9b54ed27b9852d195d8f8192af76948c390836 (patch) | |
tree | 9e47e843d9d652b6ff3bcb3078cd2d043740430f /meta/recipes-support/attr/acl_2.2.53.bb | |
parent | 0e70fac8fe9dab4381e921f110bac301c10a470c (diff) | |
download | poky-3e9b54ed27b9852d195d8f8192af76948c390836.tar.gz |
acl/attr: update to latest upstream releases
The latest release use standard autotools, so drop all
the build system related hacks and patches.
Ptests have been rewritten, with 100% pass rate for both.
(From OE-Core rev: 0417eef364bad6d061b6a02bff27d766f4c1ce96)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/attr/acl_2.2.53.bb')
-rw-r--r-- | meta/recipes-support/attr/acl_2.2.53.bb | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/meta/recipes-support/attr/acl_2.2.53.bb b/meta/recipes-support/attr/acl_2.2.53.bb new file mode 100644 index 0000000000..5bb50f77f7 --- /dev/null +++ b/meta/recipes-support/attr/acl_2.2.53.bb | |||
@@ -0,0 +1,74 @@ | |||
1 | SUMMARY = "Utilities for managing POSIX Access Control Lists" | ||
2 | HOMEPAGE = "http://savannah.nongnu.org/projects/acl/" | ||
3 | SECTION = "libs" | ||
4 | |||
5 | LICENSE = "LGPLv2.1+ & GPLv2+" | ||
6 | LICENSE_${PN} = "GPLv2+" | ||
7 | LICENSE_lib${BPN} = "LGPLv2.1+" | ||
8 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \ | ||
9 | file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764" | ||
10 | |||
11 | DEPENDS = "attr" | ||
12 | |||
13 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/acl/${BP}.tar.gz \ | ||
14 | file://run-ptest \ | ||
15 | file://0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch \ | ||
16 | file://0001-test-patch-out-failing-bits.patch \ | ||
17 | " | ||
18 | |||
19 | SRC_URI[md5sum] = "007aabf1dbb550bcddde52a244cd1070" | ||
20 | SRC_URI[sha256sum] = "06be9865c6f418d851ff4494e12406568353b891ffe1f596b34693c387af26c7" | ||
21 | |||
22 | inherit autotools gettext ptest | ||
23 | |||
24 | PACKAGES =+ "lib${BPN}" | ||
25 | |||
26 | FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}" | ||
27 | |||
28 | PTEST_BUILD_HOST_FILES = "builddefs" | ||
29 | PTEST_BUILD_HOST_PATTERN = "^RPM" | ||
30 | |||
31 | do_compile_ptest() { | ||
32 | oe_runmake libtestlookup.la | ||
33 | } | ||
34 | |||
35 | do_install_ptest() { | ||
36 | cp -rf ${S}/test/ ${D}${PTEST_PATH} | ||
37 | cp -rf ${S}/build-aux/ ${D}${PTEST_PATH} | ||
38 | mkdir -p ${D}${PTEST_PATH}/.libs | ||
39 | cp -rf ${B}/.libs/libtestlookup* ${D}${PTEST_PATH}/.libs | ||
40 | cp ${B}/Makefile ${D}${PTEST_PATH} | ||
41 | |||
42 | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | ||
43 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
44 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
45 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
46 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
47 | -i ${D}${PTEST_PATH}/Makefile | ||
48 | |||
49 | sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile | ||
50 | sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile | ||
51 | sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile | ||
52 | sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile | ||
53 | |||
54 | rm ${D}${PTEST_PATH}/.libs/libtestlookup.lai | ||
55 | } | ||
56 | |||
57 | RDEPENDS_${PN}-ptest = "acl \ | ||
58 | bash \ | ||
59 | coreutils \ | ||
60 | perl \ | ||
61 | perl-module-filehandle \ | ||
62 | perl-module-getopt-std \ | ||
63 | perl-module-posix \ | ||
64 | shadow \ | ||
65 | make \ | ||
66 | gawk \ | ||
67 | e2fsprogs-mke2fs \ | ||
68 | perl-module-cwd \ | ||
69 | perl-module-file-basename \ | ||
70 | perl-module-file-path \ | ||
71 | perl-module-file-spec \ | ||
72 | " | ||
73 | |||
74 | BBCLASSEXTEND = "native nativesdk" | ||