diff options
author | 2024-09-21 07:27:45 +0200 | |
---|---|---|
committer | 2024-09-21 09:40:43 +0200 | |
commit | 2a0cd7fb57680fc1401c711822304dcd3b87cdad (patch) | |
tree | 63ebccecac8f8213a97e4db6f7e0775d1452ed06 /app-arch/libarchive/files | |
parent | dev-lang/zig: update to LLVM 19 for 9999 (diff) | |
download | gentoo-2a0cd7fb57680fc1401c711822304dcd3b87cdad.tar.gz gentoo-2a0cd7fb57680fc1401c711822304dcd3b87cdad.tar.bz2 gentoo-2a0cd7fb57680fc1401c711822304dcd3b87cdad.zip |
app-arch/libarchive: Avoid the unnecessary dep on sys-apps/attr
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-arch/libarchive/files')
-rw-r--r-- | app-arch/libarchive/files/libarchive-3.7.5-attr-dep.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-arch/libarchive/files/libarchive-3.7.5-attr-dep.patch b/app-arch/libarchive/files/libarchive-3.7.5-attr-dep.patch new file mode 100644 index 000000000000..3b26c51ea9d9 --- /dev/null +++ b/app-arch/libarchive/files/libarchive-3.7.5-attr-dep.patch @@ -0,0 +1,28 @@ +From 44b8e3b676746352cb3e08f76e58510c78209091 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 18 Sep 2024 14:10:58 +0200 +Subject: [PATCH] tar/write.c: Support `sys/xattr.h` + +Synchronize the last use of `attr/xattr.h` to support using +`sys/xattr.h` instead. The former header is deprecated on GNU/Linux, +and this replacement makes it possible to build libarchive without +the `attr` package. +--- + tar/write.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/tar/write.c b/tar/write.c +index 1d1139f4c..43cd70233 100644 +--- a/tar/write.c ++++ b/tar/write.c +@@ -32,7 +32,9 @@ + #ifdef HAVE_SYS_STAT_H + #include <sys/stat.h> + #endif +-#ifdef HAVE_ATTR_XATTR_H ++#if HAVE_SYS_XATTR_H ++#include <sys/xattr.h> ++#elif HAVE_ATTR_XATTR_H + #include <attr/xattr.h> + #endif + #ifdef HAVE_ERRNO_H |