From 62118cc3e046db02208ed757c0648fe2916e54666b9ca45761f6f8e2381d707e Mon Sep 17 00:00:00 2001 From: Kyrill Detinov Date: Sun, 12 Oct 2014 15:15:44 +0000 Subject: [PATCH] Accepting request 255282 from home:elvigia:branches:Archiving:Backup - Remove dependency on libattr..it was never linked anyway, things still worked because glibc provides the same interface. OBS-URL: https://build.opensuse.org/request/show/255282 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/fsarchiver?expand=0&rev=25 --- fsarchiver-attr.patch | 51 +++++++++++++++++++++++++++++++++++++++++++ fsarchiver.changes | 6 +++++ fsarchiver.spec | 7 ++++-- 3 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 fsarchiver-attr.patch diff --git a/fsarchiver-attr.patch b/fsarchiver-attr.patch new file mode 100644 index 0000000..fd49174 --- /dev/null +++ b/fsarchiver-attr.patch @@ -0,0 +1,51 @@ +--- fsarchiver-0.6.19.orig/src/oper_restore.c ++++ fsarchiver-0.6.19/src/oper_restore.c +@@ -19,12 +19,13 @@ + # include "config.h" + #endif + ++#include + #include + #include + #include + #include + #include +-#include ++#include + #include + #include + #include +--- fsarchiver-0.6.19.orig/src/oper_save.c ++++ fsarchiver-0.6.19/src/oper_save.c +@@ -28,7 +28,8 @@ + #include + #include + #include +-#include ++#include ++#include + #include + #include + #include +@@ -57,6 +58,10 @@ + #include "error.h" + #include "queue.h" + ++#ifndef ENOATTR ++#define ENOATTR ENODATA ++#endif ++ + typedef struct s_savear + { carchwriter ai; + cregmulti regmulti; +--- fsarchiver-0.6.19.orig/configure.ac ++++ fsarchiver-0.6.19/configure.ac +@@ -88,7 +88,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. you may have to install a package called attr, libattr, libattr-devel])]) + + dnl Check for standard header files. + AC_CHECK_HEADERS([malloc.h unistd.h pthread.h]) diff --git a/fsarchiver.changes b/fsarchiver.changes index 8dcc2a1..0ccedbe 100644 --- a/fsarchiver.changes +++ b/fsarchiver.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Oct 12 14:48:05 UTC 2014 - crrodriguez@opensuse.org + +- Remove dependency on libattr..it was never linked anyway, + things still worked because glibc provides the same interface. + ------------------------------------------------------------------- Sat Mar 1 22:31:06 UTC 2014 - lazy.kent@opensuse.org diff --git a/fsarchiver.spec b/fsarchiver.spec index bb63f95..0be9d34 100644 --- a/fsarchiver.spec +++ b/fsarchiver.spec @@ -27,9 +27,10 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar. Source1: HOWTO # PATCH-FIX-UPSTREAM Remove conflicting uses of reserved identifiers Patch0: fsarchiver-types.patch +Patch1: fsarchiver-attr.patch BuildRequires: e2fsprogs-devel -BuildRequires: libattr-devel BuildRequires: libgcrypt-devel +BuildRequires: libtool BuildRequires: lzo-devel BuildRequires: pkg-config BuildRequires: pkgconfig(bzip2) @@ -50,11 +51,13 @@ the whole archive. %prep %setup -q %patch0 -p1 +%patch1 -p1 cp -p %{SOURCE1} . %build +autoreconf -fiv %configure -make %{?_smp_mflags} +make %{?_smp_mflags} V=1 %install %makeinstall