summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/attr/attr.inc
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-01-14 14:59:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-16 22:33:09 +0000
commit3e9b54ed27b9852d195d8f8192af76948c390836 (patch)
tree9e47e843d9d652b6ff3bcb3078cd2d043740430f /meta/recipes-support/attr/attr.inc
parent0e70fac8fe9dab4381e921f110bac301c10a470c (diff)
downloadpoky-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/attr.inc')
-rw-r--r--meta/recipes-support/attr/attr.inc48
1 files changed, 32 insertions, 16 deletions
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index 3503d66b9e..f13a83a7b4 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -8,22 +8,18 @@ LICENSE = "LGPLv2.1+ & GPLv2+"
8LICENSE_${PN} = "GPLv2+" 8LICENSE_${PN} = "GPLv2+"
9LICENSE_lib${BPN} = "LGPLv2.1+" 9LICENSE_lib${BPN} = "LGPLv2.1+"
10LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ 10LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
11 file://attr/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ 11 file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
12 file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" 12 file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"
13 13
14SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.src.tar.gz \ 14SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \
15 file://run-ptest \ 15 file://run-ptest \
16" 16"
17 17
18require ea-acl.inc 18inherit ptest update-alternatives autotools gettext
19 19
20# libdir should point to .la 20PACKAGES =+ "lib${BPN}"
21do_install_append() {
22 sed -i ${D}${libdir}/libattr.la -e \
23 s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
24}
25 21
26inherit ptest update-alternatives 22FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}"
27 23
28ALTERNATIVE_PRIORITY = "100" 24ALTERNATIVE_PRIORITY = "100"
29ALTERNATIVE_${PN} = "setfattr" 25ALTERNATIVE_${PN} = "setfattr"
@@ -33,14 +29,34 @@ PTEST_BUILD_HOST_FILES = "builddefs"
33PTEST_BUILD_HOST_PATTERN = "^RPM" 29PTEST_BUILD_HOST_PATTERN = "^RPM"
34 30
35do_install_ptest() { 31do_install_ptest() {
36 tar -c --exclude=ext test/ | ( cd ${D}${PTEST_PATH} && tar -xf - ) 32 cp ${B}/Makefile ${D}${PTEST_PATH}
37 mkdir ${D}${PTEST_PATH}/include 33 sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
38 for i in builddefs buildmacros buildrules; \ 34 -e 's|${DEBUG_PREFIX_MAP}||g' \
39 do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \ 35 -e 's:${HOSTTOOLS_DIR}/::g' \
40 done 36 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
41 sed -e 's|; @echo|; echo|' -i ${D}${PTEST_PATH}/test/Makefile 37 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
38 -i ${D}${PTEST_PATH}/Makefile
39
40 sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
41 sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
42 sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile
43 sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile
44 cp -rf ${S}/build-aux/ ${D}${PTEST_PATH}
45 cp -rf ${S}/test/ ${D}${PTEST_PATH}
42} 46}
43 47
44RDEPENDS_${PN}-ptest = "attr coreutils perl-module-filehandle perl-module-getopt-std perl-module-posix make perl" 48RDEPENDS_${PN}-ptest = "attr \
49 coreutils \
50 perl-module-filehandle \
51 perl-module-getopt-std \
52 perl-module-posix \
53 make \
54 perl \
55 gawk \
56 perl-module-cwd \
57 perl-module-file-basename \
58 perl-module-file-path \
59 perl-module-file-spec \
60 "
45 61
46BBCLASSEXTEND = "native nativesdk" 62BBCLASSEXTEND = "native nativesdk"