[snapper] - add patch to fix wrong includes
okozina
okozina at fedoraproject.org
Thu Apr 18 10:43:06 UTC 2013
commit 2c207869d3f48688e8b828f4a8e5bf1a353c4f02
Author: Ondrej Kozina <okozina at redhat.com>
Date: Thu Apr 18 12:40:02 2013 +0200
- add patch to fix wrong includes
snapper-0.1.3-fix-xattrs-include.patch | 17 +++++++++++++++++
snapper.spec | 3 +++
sources | 2 +-
3 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/snapper-0.1.3-fix-xattrs-include.patch b/snapper-0.1.3-fix-xattrs-include.patch
new file mode 100644
index 0000000..21f8518
--- /dev/null
+++ b/snapper-0.1.3-fix-xattrs-include.patch
@@ -0,0 +1,17 @@
+diff --git a/snapper/XAttributes.cc b/snapper/XAttributes.cc
+index f2830d8..4ae7372 100644
+--- a/snapper/XAttributes.cc
++++ b/snapper/XAttributes.cc
+@@ -19,11 +19,9 @@
+ */
+
+ #include "config.h"
+-#include <cstdio>
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+-#include <attr/xattr.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+
diff --git a/snapper.spec b/snapper.spec
index 7ac313c..7be695f 100644
--- a/snapper.spec
+++ b/snapper.spec
@@ -16,6 +16,7 @@ Url: http://en.opensuse.org/Portal:Snapper
Source0: %{name}-%{version}.tar.bz2
patch0: %{name}-remove-ext4-info.patch
patch1: %{name}-rename-cron-files.patch
+patch2: %{name}-%{version}-fix-xattrs-include.patch
%description
This package contains snapper, a tool for filesystem snapshot management.
@@ -43,6 +44,7 @@ snapper.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
aclocal
@@ -100,6 +102,7 @@ rm -f %{buildroot}/%{_libdir}/*.la
- updatet to latest upstream version
- add support to compare extended attributes ('xadiff' command)
- add support to revert modificiations in file's extended attributes
+- patch: avoid useless build dependency on libattr-devel
* Mon Feb 11 2013 Ondrej Kozina <okozina at redhat.com> - 0.1.2-1.20130211git676556f
- updated to latest upstream version
diff --git a/sources b/sources
index e026c1f..b4c8cb2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9e5762542b9e83a59881349091e36f07 snapper-0.1.3.tar.bz2
+87f1d2f18af14c0aa102ae3ebf2a8ed7 snapper-0.1.3.tar.bz2
More information about the scm-commits
mailing list