summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/attr
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/attr')
-rw-r--r--meta/recipes-support/attr/acl/0001-test-patch-out-failing-bits.patch5
-rw-r--r--meta/recipes-support/attr/acl/0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch6
-rw-r--r--meta/recipes-support/attr/acl/run-ptest6
-rw-r--r--meta/recipes-support/attr/acl_2.3.2.bb (renamed from meta/recipes-support/attr/acl_2.2.53.bb)25
-rw-r--r--meta/recipes-support/attr/attr.inc25
-rw-r--r--meta/recipes-support/attr/attr/0001-attr.c-Include-libgen.h-for-posix-version-of-basenam.patch35
-rw-r--r--meta/recipes-support/attr/attr/run-ptest7
-rw-r--r--meta/recipes-support/attr/attr_2.4.48.bb6
-rw-r--r--meta/recipes-support/attr/attr_2.5.2.bb5
9 files changed, 89 insertions, 31 deletions
diff --git a/meta/recipes-support/attr/acl/0001-test-patch-out-failing-bits.patch b/meta/recipes-support/attr/acl/0001-test-patch-out-failing-bits.patch
index ba2ffee5d2..219feaccd0 100644
--- a/meta/recipes-support/attr/acl/0001-test-patch-out-failing-bits.patch
+++ b/meta/recipes-support/attr/acl/0001-test-patch-out-failing-bits.patch
@@ -1,4 +1,4 @@
1From 9e08219e0e99ee2589cf35fa8d52cef3515accce Mon Sep 17 00:00:00 2001 1From 7dec6fa3b3494a55120402ff1ea3eb96b67138e8 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 12 Dec 2019 15:47:49 +0100 3Date: Thu, 12 Dec 2019 15:47:49 +0100
4Subject: [PATCH] test: patch out failing bits 4Subject: [PATCH] test: patch out failing bits
@@ -58,6 +58,3 @@ index 8f8f825..21e8a95 100644
58 $ : > f 58 $ : > f
59 $ : <> f 59 $ : <> f
60 >~ .*f: Permission denied$ 60 >~ .*f: Permission denied$
61--
622.17.1
63
diff --git a/meta/recipes-support/attr/acl/0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch b/meta/recipes-support/attr/acl/0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch
index 57ef0bb728..748f37f3e7 100644
--- a/meta/recipes-support/attr/acl/0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch
+++ b/meta/recipes-support/attr/acl/0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch
@@ -1,4 +1,4 @@
1From 39d332a8801de5d9ef09dacb3dba85c208b7b2ad Mon Sep 17 00:00:00 2001 1From 42ae3f8a5e32ba0681ccd1552a203ddad8748a6e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 12 Dec 2019 13:45:52 +0100 3Date: Thu, 12 Dec 2019 13:45:52 +0100
4Subject: [PATCH] tests: do not hardcode the build path into a helper library 4Subject: [PATCH] tests: do not hardcode the build path into a helper library
@@ -10,7 +10,7 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10 1 file changed, 1 insertion(+), 1 deletion(-) 10 1 file changed, 1 insertion(+), 1 deletion(-)
11 11
12diff --git a/test/Makemodule.am b/test/Makemodule.am 12diff --git a/test/Makemodule.am b/test/Makemodule.am
13index 17d4927..015de7f 100644 13index e1d715d..cffe732 100644
14--- a/test/Makemodule.am 14--- a/test/Makemodule.am
15+++ b/test/Makemodule.am 15+++ b/test/Makemodule.am
16@@ -30,7 +30,7 @@ EXTRA_DIST += \ 16@@ -30,7 +30,7 @@ EXTRA_DIST += \
@@ -21,4 +21,4 @@ index 17d4927..015de7f 100644
21+libtestlookup_la_CFLAGS = -DBASEDIR=\"/tmp/acl-ptest\" 21+libtestlookup_la_CFLAGS = -DBASEDIR=\"/tmp/acl-ptest\"
22 libtestlookup_la_LDFLAGS = -rpath $(abs_builddir) 22 libtestlookup_la_LDFLAGS = -rpath $(abs_builddir)
23 23
24 AM_TESTS_ENVIRONMENT = PATH="$(abs_top_builddir):$$PATH"; 24 # Make sure translations don't break tests when matching output.
diff --git a/meta/recipes-support/attr/acl/run-ptest b/meta/recipes-support/attr/acl/run-ptest
index 4312823365..3af75c84fe 100644
--- a/meta/recipes-support/attr/acl/run-ptest
+++ b/meta/recipes-support/attr/acl/run-ptest
@@ -7,4 +7,10 @@
7mkdir -p /tmp/acl-ptest/test 7mkdir -p /tmp/acl-ptest/test
8cp test/test.* /tmp/acl-ptest/test 8cp test/test.* /tmp/acl-ptest/test
9 9
10set +e
10make test-suite.log 11make test-suite.log
12exitcode=$?
13if [ $exitcode -ne 0 -a -e test-suite.log ]; then
14 cat test-suite.log
15fi
16exit $exitcode
diff --git a/meta/recipes-support/attr/acl_2.2.53.bb b/meta/recipes-support/attr/acl_2.3.2.bb
index b120c1f16f..6178473873 100644
--- a/meta/recipes-support/attr/acl_2.2.53.bb
+++ b/meta/recipes-support/attr/acl_2.3.2.bb
@@ -1,12 +1,15 @@
1SUMMARY = "Utilities for managing POSIX Access Control Lists" 1SUMMARY = "Utilities for managing POSIX Access Control Lists"
2HOMEPAGE = "http://savannah.nongnu.org/projects/acl/"
3DESCRIPTION = "ACL allows you to provide different levels of access to files \ 2DESCRIPTION = "ACL allows you to provide different levels of access to files \
4and folders for different users." 3and folders for different users."
4
5HOMEPAGE = "http://savannah.nongnu.org/projects/acl/"
6BUGTRACKER = "http://savannah.nongnu.org/bugs/?group=acl"
7
5SECTION = "libs" 8SECTION = "libs"
6 9
7LICENSE = "LGPLv2.1+ & GPLv2+" 10LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
8LICENSE_${PN} = "GPLv2+" 11LICENSE:${PN} = "GPL-2.0-or-later"
9LICENSE_lib${BPN} = "LGPLv2.1+" 12LICENSE:lib${BPN} = "LGPL-2.1-or-later"
10LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \ 13LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \
11 file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764" 14 file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764"
12 15
@@ -18,14 +21,15 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/acl/${BP}.tar.gz \
18 file://0001-test-patch-out-failing-bits.patch \ 21 file://0001-test-patch-out-failing-bits.patch \
19 " 22 "
20 23
21SRC_URI[md5sum] = "007aabf1dbb550bcddde52a244cd1070" 24SRC_URI[sha256sum] = "5f2bdbad629707aa7d85c623f994aa8a1d2dec55a73de5205bac0bf6058a2f7c"
22SRC_URI[sha256sum] = "06be9865c6f418d851ff4494e12406568353b891ffe1f596b34693c387af26c7"
23 25
24inherit autotools gettext ptest 26inherit autotools gettext ptest
25 27
28EXTRA_OECONF += "--enable-largefile"
29
26PACKAGES =+ "lib${BPN}" 30PACKAGES =+ "lib${BPN}"
27 31
28FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}" 32FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}"
29 33
30PTEST_BUILD_HOST_FILES = "builddefs" 34PTEST_BUILD_HOST_FILES = "builddefs"
31PTEST_BUILD_HOST_PATTERN = "^RPM" 35PTEST_BUILD_HOST_PATTERN = "^RPM"
@@ -56,10 +60,15 @@ do_install_ptest() {
56 rm ${D}${PTEST_PATH}/.libs/libtestlookup.lai 60 rm ${D}${PTEST_PATH}/.libs/libtestlookup.lai
57} 61}
58 62
59RDEPENDS_${PN}-ptest = "acl \ 63do_install_ptest:append:libc-musl() {
64 sed -i -e '/test\/misc.test/d' ${D}${PTEST_PATH}/Makefile
65}
66
67RDEPENDS:${PN}-ptest = "acl \
60 bash \ 68 bash \
61 coreutils \ 69 coreutils \
62 perl \ 70 perl \
71 perl-module-constant \
63 perl-module-filehandle \ 72 perl-module-filehandle \
64 perl-module-getopt-std \ 73 perl-module-getopt-std \
65 perl-module-posix \ 74 perl-module-posix \
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index 97bca46982..75d616893a 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -1,16 +1,14 @@
1SUMMARY = "Utilities for manipulating filesystem extended attributes" 1SUMMARY = "Utilities for manipulating filesystem extended attributes"
2DESCRIPTION = "A set of tools for manipulating extended attributes on filesystem \ 2DESCRIPTION = "Implement the ability for a user to attach name:value pairs to objects within the XFS filesystem."
3objects, in particular getfattr(1) and setfattr(1). An attr(1) command \ 3
4is also provided which is largely compatible with the SGI IRIX tool of \
5the same name."
6HOMEPAGE = "http://savannah.nongnu.org/projects/attr/" 4HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
7SECTION = "libs" 5SECTION = "libs"
8 6
9DEPENDS = "virtual/libintl" 7DEPENDS = "virtual/libintl"
10 8
11LICENSE = "LGPLv2.1+ & GPLv2+" 9LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
12LICENSE_${PN} = "GPLv2+" 10LICENSE:${PN} = "GPL-2.0-or-later"
13LICENSE_lib${BPN} = "LGPLv2.1+" 11LICENSE:lib${BPN} = "LGPL-2.1-or-later"
14LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ 12LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
15 file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \ 13 file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \
16 file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ 14 file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
@@ -18,16 +16,17 @@ LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
18 16
19SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \ 17SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \
20 file://run-ptest \ 18 file://run-ptest \
19 file://0001-attr.c-Include-libgen.h-for-posix-version-of-basenam.patch \
21" 20"
22 21
23inherit ptest update-alternatives autotools gettext 22inherit ptest update-alternatives autotools gettext
24 23
25PACKAGES =+ "lib${BPN}" 24PACKAGES =+ "lib${BPN}"
26 25
27FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}" 26FILES:lib${BPN} = "${libdir}/lib*${SOLIBS} ${sysconfdir}"
28 27
29ALTERNATIVE_PRIORITY = "100" 28ALTERNATIVE_PRIORITY = "100"
30ALTERNATIVE_${PN} = "setfattr" 29ALTERNATIVE:${PN} = "setfattr"
31ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" 30ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"
32 31
33PTEST_BUILD_HOST_FILES = "builddefs" 32PTEST_BUILD_HOST_FILES = "builddefs"
@@ -50,8 +49,14 @@ do_install_ptest() {
50 cp -rf ${S}/test/ ${D}${PTEST_PATH} 49 cp -rf ${S}/test/ ${D}${PTEST_PATH}
51} 50}
52 51
53RDEPENDS_${PN}-ptest = "attr \ 52do_install_ptest:append:libc-musl() {
53 sed -i -e 's|f: Operation n|f: N|g' ${D}${PTEST_PATH}/test/attr.test
54}
55
56RDEPENDS:${PN}-ptest = "attr \
57 bash \
54 coreutils \ 58 coreutils \
59 perl-module-constant \
55 perl-module-filehandle \ 60 perl-module-filehandle \
56 perl-module-getopt-std \ 61 perl-module-getopt-std \
57 perl-module-posix \ 62 perl-module-posix \
diff --git a/meta/recipes-support/attr/attr/0001-attr.c-Include-libgen.h-for-posix-version-of-basenam.patch b/meta/recipes-support/attr/attr/0001-attr.c-Include-libgen.h-for-posix-version-of-basenam.patch
new file mode 100644
index 0000000000..1e2bea5067
--- /dev/null
+++ b/meta/recipes-support/attr/attr/0001-attr.c-Include-libgen.h-for-posix-version-of-basenam.patch
@@ -0,0 +1,35 @@
1From 6d9e827bcacf387bb3cfae64bd4fe520168ccad4 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 3 Dec 2023 19:29:27 -0800
4Subject: [PATCH] attr.c: Include libgen.h for posix version of basename API
5
6Musl has removed the definition from string.h [1] which results in
7compile failures with clang
8
9| ../attr-2.5.1/tools/attr.c:69:13: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
10| 69 | progname = basename(argv[0]);
11| | ^
12
13[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
14
15Upstream-Status: Submitted [https://savannah.nongnu.org/bugs/index.php?64972]
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 tools/attr.c | 1 +
19 1 file changed, 1 insertion(+)
20
21diff --git a/tools/attr.c b/tools/attr.c
22index 312aef1..90dab83 100644
23--- a/tools/attr.c
24+++ b/tools/attr.c
25@@ -26,6 +26,7 @@
26 #include <stdlib.h>
27 #include <unistd.h>
28 #include <errno.h>
29+#include <libgen.h>
30 #include <string.h>
31 #include <locale.h>
32
33--
342.43.0
35
diff --git a/meta/recipes-support/attr/attr/run-ptest b/meta/recipes-support/attr/attr/run-ptest
index f64244f239..3e7a3a17a0 100644
--- a/meta/recipes-support/attr/attr/run-ptest
+++ b/meta/recipes-support/attr/attr/run-ptest
@@ -1,3 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2 2
3set +e
3make test-suite.log 4make test-suite.log
5exitcode=$?
6if [ $exitcode -ne 0 -a -e test-suite.log ]; then
7 cat test-suite.log
8fi
9exit $exitcode
10
diff --git a/meta/recipes-support/attr/attr_2.4.48.bb b/meta/recipes-support/attr/attr_2.4.48.bb
deleted file mode 100644
index 530d4e4883..0000000000
--- a/meta/recipes-support/attr/attr_2.4.48.bb
+++ /dev/null
@@ -1,6 +0,0 @@
1require attr.inc
2
3SRC_URI[md5sum] = "bc1e5cb5c96d99b24886f1f527d3bb3d"
4SRC_URI[sha256sum] = "5ead72b358ec709ed00bbf7a9eaef1654baad937c001c044fe8b74c57f5324e7"
5
6BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-support/attr/attr_2.5.2.bb b/meta/recipes-support/attr/attr_2.5.2.bb
new file mode 100644
index 0000000000..2110c6d885
--- /dev/null
+++ b/meta/recipes-support/attr/attr_2.5.2.bb
@@ -0,0 +1,5 @@
1require attr.inc
2
3SRC_URI[sha256sum] = "39bf67452fa41d0948c2197601053f48b3d78a029389734332a6309a680c6c87"
4
5BBCLASSEXTEND = "native nativesdk"