From: Christian Melki <christian.melki@t2data.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] acl: Version bump. 2.3.2 -> 2.4.0
Date: Tue, 7 Jul 2026 18:04:09 +0200 [thread overview]
Message-ID: <20260707160409.1290571-1-christian.melki@t2data.com> (raw)
xattr support has been added, but still some minor adjustments needed.
https://git.savannah.nongnu.org/cgit/acl.git/log/?h=v2.3.2
* Rework from the old patch. Keep some checks and let it add error_context.h
Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
.../0001-Switch-to-sys-xattr.h.patch | 91 +++++--------------
patches/{acl-2.3.2 => acl-2.4.0}/autogen.sh | 0
patches/{acl-2.3.2 => acl-2.4.0}/series | 0
rules/acl.make | 4 +-
4 files changed, 26 insertions(+), 69 deletions(-)
rename patches/{acl-2.3.2 => acl-2.4.0}/0001-Switch-to-sys-xattr.h.patch (59%)
rename patches/{acl-2.3.2 => acl-2.4.0}/autogen.sh (100%)
rename patches/{acl-2.3.2 => acl-2.4.0}/series (100%)
diff --git a/patches/acl-2.3.2/0001-Switch-to-sys-xattr.h.patch b/patches/acl-2.4.0/0001-Switch-to-sys-xattr.h.patch
similarity index 59%
rename from patches/acl-2.3.2/0001-Switch-to-sys-xattr.h.patch
rename to patches/acl-2.4.0/0001-Switch-to-sys-xattr.h.patch
index d62be0ec0..10bb3b766 100644
--- a/patches/acl-2.3.2/0001-Switch-to-sys-xattr.h.patch
+++ b/patches/acl-2.4.0/0001-Switch-to-sys-xattr.h.patch
@@ -7,47 +7,32 @@ that libacl uses have been provided by libc.
This commit switches the code to use libc and leave libxattr
behind.
---
- configure.ac | 4 ++--
- libacl/Makemodule.am | 4 ++--
+ configure.ac | 5 +++--
libacl/error_context.h | 53 +++++++++++++++++++++++++++++++++++++++++++++++++
- libacl/perm_copy_fd.c | 7 +------
- libacl/perm_copy_file.c | 7 +------
- 5 files changed, 59 insertions(+), 16 deletions(-)
+ libacl/perm_copy_fd.c | 2 +-
+ libacl/perm_copy_file.c | 2 +-
+ 4 files changed, 58 insertions(+), 4 deletions(-)
create mode 100644 libacl/error_context.h
diff --git a/configure.ac b/configure.ac
-index 96fd96a424c5..21694dabefe5 100644
+index c1a46982833c..0f7f42514a16 100644
--- a/configure.ac
+++ b/configure.ac
-@@ -53,8 +53,8 @@ AS_IF([test $# -ne 3 -o ${#1} -gt 1 -o ${#2} -gt 1 -o ${#3} -gt 2],
+@@ -83,8 +83,9 @@ AS_IF([test $# -ne 3 -o ${#1} -gt 1 -o ${#2} -gt 1 -o ${#3} -gt 2],
LT_REVISION=$(printf "%d%d%02d" "$1" "$2" "$3")
AC_SUBST(LT_REVISION)
-AC_PACKAGE_NEED_ATTR_ERROR_H
--AC_PACKAGE_NEED_GETXATTR_LIBATTR
-+AC_CHECK_HEADERS([sys/xattr.h],,
-+ [AC_MSG_ERROR([sys/xattr.h header not found])])
-
+-
++AC_CHECK_HEADERS([sys/xattr.h],,
++ [AC_MSG_ERROR([sys/xattr.h header not found])])
++
AC_CONFIG_COMMANDS([include/acl],
[dnl
-diff --git a/libacl/Makemodule.am b/libacl/Makemodule.am
-index 604f829ac7ce..700581eee84f 100644
---- a/libacl/Makemodule.am
-+++ b/libacl/Makemodule.am
-@@ -76,8 +76,8 @@ libacl_la_DEPENDENCIES = exports libmisc.la
- libacl_la_SOURCES = $(CFILES) $(HFILES)
- ## Since libacl translates its error messages, we have to link libintl.
- ## See the AM_GNU_GETTEXT documentation for details.
--libacl_la_LIBADD = -lattr libmisc.la $(LTLIBINTL)
-+libacl_la_LIBADD = libmisc.la $(LTLIBINTL)
- libacl_la_CFLAGS = $(AM_CFLAGS) -include $(srcdir)/libacl/perm_copy.h
--libacl_la_LDFLAGS = \
-+libacl_la_LDFLAGS = -no-undefined \
- -Wl,--version-script,$(top_srcdir)/exports \
- -version-info $(LTVERSION)
+ rm -rf include/acl
diff --git a/libacl/error_context.h b/libacl/error_context.h
new file mode 100644
-index 000000000000..fa383f4cb5db
+index 000000000000..65f00e7c0832
--- /dev/null
+++ b/libacl/error_context.h
@@ -0,0 +1,53 @@
@@ -105,56 +90,28 @@ index 000000000000..fa383f4cb5db
+
+#endif /* __ERROR_CONTEXT_T */
diff --git a/libacl/perm_copy_fd.c b/libacl/perm_copy_fd.c
-index 701bed2532e4..aa4630b798ea 100644
+index 34187f4181b7..671f4d9f7ea9 100644
--- a/libacl/perm_copy_fd.c
+++ b/libacl/perm_copy_fd.c
-@@ -16,9 +16,8 @@
- License along with this library; if not, see <https://www.gnu.org/licenses/>.
- */
-
--#if defined (HAVE_CONFIG_H)
- #include "config.h"
--#endif
-+
- #if defined(HAVE_LIBACL_LIBACL_H)
- # include "libacl.h"
- #endif
-@@ -38,11 +37,7 @@
- #endif
+@@ -27,7 +27,7 @@
+ #include "fchmodat_compat.h"
#define ERROR_CONTEXT_MACROS
--#ifdef HAVE_ATTR_ERROR_CONTEXT_H
-#include <attr/error_context.h>
--#else
- #include "error_context.h"
--#endif
++#include "error_context.h"
- #if !defined(ENOTSUP)
- # define ENOTSUP (-1)
+ /* Set the access control list of path to the permissions defined by mode. */
+ static int
diff --git a/libacl/perm_copy_file.c b/libacl/perm_copy_file.c
-index ba59d3647952..1af6a6a7e0f2 100644
+index 507ccb0c1037..7b41b97b5c11 100644
--- a/libacl/perm_copy_file.c
+++ b/libacl/perm_copy_file.c
-@@ -16,9 +16,8 @@
- License along with this library; if not, see <https://www.gnu.org/licenses/>.
- */
-
--#if defined (HAVE_CONFIG_H)
- #include "config.h"
--#endif
-+
- #if defined(HAVE_LIBACL_LIBACL_H)
- # include "libacl.h"
- #endif
-@@ -38,11 +37,7 @@
- #endif
+@@ -25,7 +25,7 @@
+ #include "libacl.h"
#define ERROR_CONTEXT_MACROS
--#ifdef HAVE_ATTR_ERROR_CONTEXT_H
-#include <attr/error_context.h>
--#else
- #include "error_context.h"
--#endif
++#include "error_context.h"
- #if !defined(ENOTSUP)
- # define ENOTSUP (-1)
+ /* Set the access control list of path to the permissions defined by mode. */
+ static int
diff --git a/patches/acl-2.3.2/autogen.sh b/patches/acl-2.4.0/autogen.sh
similarity index 100%
rename from patches/acl-2.3.2/autogen.sh
rename to patches/acl-2.4.0/autogen.sh
diff --git a/patches/acl-2.3.2/series b/patches/acl-2.4.0/series
similarity index 100%
rename from patches/acl-2.3.2/series
rename to patches/acl-2.4.0/series
diff --git a/rules/acl.make b/rules/acl.make
index cd2e5e81c..e614682cc 100644
--- a/rules/acl.make
+++ b/rules/acl.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_ACL) += acl
#
# Paths and names
#
-ACL_VERSION := 2.3.2
-ACL_SHA256 := 5f2bdbad629707aa7d85c623f994aa8a1d2dec55a73de5205bac0bf6058a2f7c
+ACL_VERSION := 2.4.0
+ACL_SHA256 := 73c853c3d44e1f693e5a96a986f1bd19d3d0dac2c7d453e796177774bc4e5f6a
ACL := acl-$(ACL_VERSION)
ACL_SUFFIX := tar.gz
ACL_URL := http://download.savannah.gnu.org/releases/acl/$(ACL).$(ACL_SUFFIX)
--
2.43.0
reply other threads:[~2026-07-07 16:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260707160409.1290571-1-christian.melki@t2data.com \
--to=christian.melki@t2data.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox