Skip to content

Commit a6f29ce

Browse files
rossburtonrpurdie
authored andcommitted
attr: merge .bb and .inc
There's only one recipe using the .inc so the split is mostly pointless. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1 parent 0099694 commit a6f29ce

File tree

2 files changed

+74
-77
lines changed

2 files changed

+74
-77
lines changed

meta/recipes-support/attr/attr.inc

Lines changed: 0 additions & 76 deletions
This file was deleted.
Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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+
"
221

322
SRC_URI[sha256sum] = "39bf67452fa41d0948c2197601053f48b3d78a029389734332a6309a680c6c87"
423

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+
578
BBCLASSEXTEND = "native nativesdk"

0 commit comments

Comments
 (0)