+++ /dev/null
-From 57759f2b1106b6d19f3bc11b21463f4307dfc3d8 Mon Sep 17 00:00:00 2001
-From: Lars Wendler <polynomial-c@gentoo.org>
-Date: Tue, 20 Feb 2018 10:13:30 +0100
-Subject: [PATCH] Replace <attr/xattr.h> with <sys/xattr.h>
-
-The former has been long deprecated and removed in attr-2.4.48
----
- configure.ac | 2 +-
- src/oper_restore.c | 3 ++-
- src/oper_save.c | 7 ++++++-
- 3 files changed, 9 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 66cfbf3..ae9aae8 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -114,7 +114,7 @@ PKG_CHECK_MODULES([BLKID], [blkid])
- PKG_CHECK_MODULES([UUID], [uuid])
-
- dnl Check for header files installed with a library
--AC_CHECK_HEADER([attr/xattr.h],, [AC_MSG_ERROR([attr/xattr.h not found. you may have to install a package called attr, libattr, libattr-devel])])
-+AC_CHECK_HEADER([sys/xattr.h],, [AC_MSG_ERROR([sys/xattr.h not found.])])
-
- dnl Check for standard header files.
- AC_CHECK_HEADERS([malloc.h unistd.h pthread.h])
-diff --git a/src/oper_restore.c b/src/oper_restore.c
-index dd8af1f..92eb5f6 100644
---- a/src/oper_restore.c
-+++ b/src/oper_restore.c
-@@ -24,7 +24,8 @@
- #include <assert.h>
- #include <string.h>
- #include <stdlib.h>
--#include <attr/xattr.h>
-+#include <sys/xattr.h>
-+#include <errno.h>
- #include <sys/time.h>
- #include <sys/stat.h>
- #include <gcrypt.h>
-diff --git a/src/oper_save.c b/src/oper_save.c
-index ce6f194..ff29074 100644
---- a/src/oper_save.c
-+++ b/src/oper_save.c
-@@ -29,7 +29,8 @@
- #include <sys/param.h>
- #include <sys/statvfs.h>
- #include <sys/stat.h>
--#include <attr/xattr.h>
-+#include <sys/xattr.h>
-+#include <errno.h>
- #include <zlib.h>
- #include <assert.h>
- #include <gcrypt.h>
-@@ -59,6 +60,10 @@
- #include "error.h"
- #include "queue.h"
-
-+#ifndef ENOATTR
-+#define ENOATTR ENODATA
-+#endif
-+
- typedef struct s_savear
- { carchwriter ai;
- cregmulti regmulti;
---
-2.16.2
-
+++ /dev/null
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools
-
-DESCRIPTION="Flexible filesystem archiver for backup and deployment tool"
-HOMEPAGE="http://www.fsarchiver.org"
-SRC_URI="https://github.com/fdupoux/${PN}/releases/download/${PV}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="debug lz4 lzma lzo static zstd"
-
-DEPEND="dev-libs/libgcrypt:0=
- >=sys-fs/e2fsprogs-1.41.4
- lz4? ( app-arch/lz4 )
- lzma? ( >=app-arch/xz-utils-4.999.9_beta )
- lzo? ( >=dev-libs/lzo-2.02 )
- static? (
- lz4? ( app-arch/lz4[static-libs] )
- lzma? ( app-arch/xz-utils[static-libs] )
- lzo? ( dev-libs/lzo[static-libs] )
- zstd? ( app-arch/zstd[static-libs] )
- )
- zstd? ( app-arch/zstd )
-"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
- "${FILESDIR}/${P}-xattr.patch"
-)
-
-src_prepare() {
- default
- sed -i -e 's/^\([a-z]*_CFLAGS.*\)-ggdb/\1/' src/Makefile.am \
- || die "seding failed"
- eautoreconf
-}
-
-src_configure() {
- local myeconfargs=(
- $(use_enable debug devel)
- $(use_enable lz4)
- $(use_enable lzma)
- $(use_enable lzo)
- $(use_enable static)
- $(use_enable zstd)
- )
- econf "${myeconfargs[@]}"
-}