diff options
-rw-r--r-- | meta/recipes-support/attr/attr.inc | 76 | ||||
-rw-r--r-- | meta/recipes-support/attr/attr_2.5.2.bb | 75 |
2 files changed, 74 insertions, 77 deletions
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc deleted file mode 100644 index 5d6929fe50..0000000000 --- a/meta/recipes-support/attr/attr.inc +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | SUMMARY = "Utilities for manipulating filesystem extended attributes" | ||
2 | DESCRIPTION = "Implement the ability for a user to attach name:value pairs to objects within the XFS filesystem." | ||
3 | |||
4 | HOMEPAGE = "http://savannah.nongnu.org/projects/attr/" | ||
5 | SECTION = "libs" | ||
6 | |||
7 | DEPENDS = "virtual/libintl" | ||
8 | |||
9 | LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" | ||
10 | LICENSE:${PN} = "GPL-2.0-or-later" | ||
11 | LICENSE:lib${BPN} = "LGPL-2.1-or-later" | ||
12 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ | ||
13 | file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \ | ||
14 | file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ | ||
15 | file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" | ||
16 | |||
17 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \ | ||
18 | file://run-ptest \ | ||
19 | file://0001-attr.c-Include-libgen.h-for-posix-version-of-basenam.patch \ | ||
20 | " | ||
21 | |||
22 | inherit ptest update-alternatives autotools gettext | ||
23 | |||
24 | PACKAGES =+ "lib${BPN}" | ||
25 | |||
26 | FILES:lib${BPN} = "${libdir}/lib*${SOLIBS} ${sysconfdir}" | ||
27 | |||
28 | ALTERNATIVE_PRIORITY = "100" | ||
29 | ALTERNATIVE:${PN} = "setfattr getfattr" | ||
30 | ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" | ||
31 | ALTERNATIVE_TARGET[getfattr] = "${bindir}/getfattr" | ||
32 | |||
33 | PTEST_BUILD_HOST_FILES = "builddefs" | ||
34 | PTEST_BUILD_HOST_PATTERN = "^RPM" | ||
35 | |||
36 | do_install_ptest() { | ||
37 | cp ${B}/Makefile ${D}${PTEST_PATH} | ||
38 | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | ||
39 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
40 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
41 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
42 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
43 | -i ${D}${PTEST_PATH}/Makefile | ||
44 | |||
45 | sed -e "s|^srcdir =.*|srcdir = .|" \ | ||
46 | -e "s|^abs_srcdir =.*|abs_srcdir = .|" \ | ||
47 | -e "s|^abs_top_srcdir =.*|abs_top_srcdir = ..|" \ | ||
48 | -e "s|^Makefile:.*|Makefile:|" \ | ||
49 | -e "/^TEST_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \ | ||
50 | -i ${D}${PTEST_PATH}/Makefile | ||
51 | |||
52 | cp -rf ${S}/build-aux/ ${D}${PTEST_PATH} | ||
53 | cp -rf ${S}/test/ ${D}${PTEST_PATH} | ||
54 | } | ||
55 | |||
56 | do_install_ptest:append:libc-musl() { | ||
57 | sed -i -e 's|f: Operation n|f: N|g' ${D}${PTEST_PATH}/test/attr.test | ||
58 | } | ||
59 | |||
60 | RDEPENDS:${PN}-ptest = "attr \ | ||
61 | bash \ | ||
62 | coreutils \ | ||
63 | perl-module-constant \ | ||
64 | perl-module-filehandle \ | ||
65 | perl-module-getopt-std \ | ||
66 | perl-module-posix \ | ||
67 | make \ | ||
68 | perl \ | ||
69 | gawk \ | ||
70 | perl-module-cwd \ | ||
71 | perl-module-file-basename \ | ||
72 | perl-module-file-path \ | ||
73 | perl-module-file-spec \ | ||
74 | " | ||
75 | |||
76 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/attr/attr_2.5.2.bb b/meta/recipes-support/attr/attr_2.5.2.bb index 2110c6d885..b1a20930ed 100644 --- a/meta/recipes-support/attr/attr_2.5.2.bb +++ b/meta/recipes-support/attr/attr_2.5.2.bb | |||
@@ -1,5 +1,78 @@ | |||
1 | require attr.inc | 1 | SUMMARY = "Utilities for manipulating filesystem extended attributes" |
2 | DESCRIPTION = "Implement the ability for a user to attach name:value pairs to objects within the XFS filesystem." | ||
3 | |||
4 | HOMEPAGE = "http://savannah.nongnu.org/projects/attr/" | ||
5 | SECTION = "libs" | ||
6 | |||
7 | DEPENDS = "virtual/libintl" | ||
8 | |||
9 | LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" | ||
10 | LICENSE:${PN} = "GPL-2.0-or-later" | ||
11 | LICENSE:lib${BPN} = "LGPL-2.1-or-later" | ||
12 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ | ||
13 | file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \ | ||
14 | file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ | ||
15 | file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" | ||
16 | |||
17 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \ | ||
18 | file://run-ptest \ | ||
19 | file://0001-attr.c-Include-libgen.h-for-posix-version-of-basenam.patch \ | ||
20 | " | ||
2 | 21 | ||
3 | SRC_URI[sha256sum] = "39bf67452fa41d0948c2197601053f48b3d78a029389734332a6309a680c6c87" | 22 | SRC_URI[sha256sum] = "39bf67452fa41d0948c2197601053f48b3d78a029389734332a6309a680c6c87" |
4 | 23 | ||
24 | inherit ptest update-alternatives autotools gettext | ||
25 | |||
26 | PACKAGES =+ "lib${BPN}" | ||
27 | |||
28 | FILES:lib${BPN} = "${libdir}/lib*${SOLIBS} ${sysconfdir}" | ||
29 | |||
30 | ALTERNATIVE_PRIORITY = "100" | ||
31 | ALTERNATIVE:${PN} = "setfattr getfattr" | ||
32 | ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" | ||
33 | ALTERNATIVE_TARGET[getfattr] = "${bindir}/getfattr" | ||
34 | |||
35 | PTEST_BUILD_HOST_FILES = "builddefs" | ||
36 | PTEST_BUILD_HOST_PATTERN = "^RPM" | ||
37 | |||
38 | do_install_ptest() { | ||
39 | cp ${B}/Makefile ${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 | |||
54 | cp -rf ${S}/build-aux/ ${D}${PTEST_PATH} | ||
55 | cp -rf ${S}/test/ ${D}${PTEST_PATH} | ||
56 | } | ||
57 | |||
58 | do_install_ptest:append:libc-musl() { | ||
59 | sed -i -e 's|f: Operation n|f: N|g' ${D}${PTEST_PATH}/test/attr.test | ||
60 | } | ||
61 | |||
62 | 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 \ | ||
71 | gawk \ | ||
72 | perl-module-cwd \ | ||
73 | perl-module-file-basename \ | ||
74 | perl-module-file-path \ | ||
75 | perl-module-file-spec \ | ||
76 | " | ||
77 | |||
5 | BBCLASSEXTEND = "native nativesdk" | 78 | BBCLASSEXTEND = "native nativesdk" |