Hello community,

here is the log from the commit of package python-llfuse for openSUSE:Factory 
checked in at 2018-08-24 17:03:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-llfuse (Old)
 and      /work/SRC/openSUSE:Factory/.python-llfuse.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-llfuse"

Fri Aug 24 17:03:54 2018 rev:2 rq:628888 version:1.3.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-llfuse/python-llfuse.changes      
2018-06-29 22:29:33.270340133 +0200
+++ /work/SRC/openSUSE:Factory/.python-llfuse.new/python-llfuse.changes 
2018-08-24 17:04:03.694068367 +0200
@@ -1,0 +2,8 @@
+Mon Aug 13 08:54:50 UTC 2018 - tchva...@suse.com
+
+- Add patch to build with new attr:
+  * llfuse-attr-2.4.48.patch
+- Drop contextlib2 dependency
+- Run tests unconditionally
+
+-------------------------------------------------------------------

New:
----
  llfuse-attr-2.4.48.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-llfuse.spec ++++++
--- /var/tmp/diff_new_pack.NUhWy5/_old  2018-08-24 17:04:04.106068855 +0200
+++ /var/tmp/diff_new_pack.NUhWy5/_new  2018-08-24 17:04:04.110068860 +0200
@@ -17,38 +17,35 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
+%bcond_without python2
 Name:           python-llfuse
 Version:        1.3.4
 Release:        0
 Summary:        Python Bindings for the low-level FUSE API
-License:        LGPL-2.1+
+License:        LGPL-2.1-or-later
 Group:          Development/Libraries/Python
-Url:            https://bitbucket.org/nikratio/python-llfuse/
+URL:            https://bitbucket.org/nikratio/python-llfuse/
 Source:         
https://bitbucket.org/nikratio/python-llfuse/downloads/llfuse-%{version}.tar.bz2
 Source1000:     
https://bitbucket.org/nikratio/python-llfuse/downloads/llfuse-%{version}.tar.bz2.asc
 Source1001:     %{name}.keyring
 Patch0:         fix-char-cast-to-unsigned-int.patch
 Patch1:         fix-test-for-fusermount.patch
+Patch2:         llfuse-attr-2.4.48.patch
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module setuptools}
-%if %{with test}
 BuildRequires:  %{python_module pytest}
-%ifpython2
-BuildRequires:  python2-contextlib2
-%endif
-%endif
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  dos2unix
 BuildRequires:  fdupes
 BuildRequires:  fuse-devel >= 2.8.0
 BuildRequires:  libattr-devel
 BuildRequires:  python-rpm-macros
 Recommends:     fuse
+%if %{with python2}
+BuildRequires:  python2-contextlib2
+%endif
 %ifpython2
 Requires:       python-contextlib2
 %endif
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-
 %python_subpackages
 
 %description
@@ -61,8 +58,8 @@
 %package -n %{name}-docs
 Summary:        Documentation for the python bindings for the low-level FUSE 
API
 Group:          Development/Libraries/Python
-BuildArch:      noarch
 Requires:       %{name} = %{version}
+BuildArch:      noarch
 
 %description -n %{name}-docs
 LLFUSE is a set of Python bindings for the low level FUSE API. It requires at
@@ -75,8 +72,8 @@
 
 %prep
 %setup -q -n llfuse-%{version}
-%patch0 -p1
-%patch1 -p1
+%autopatch -p1
+
 rm doc/html/.buildinfo
 dos2unix README.rst
 
@@ -87,22 +84,18 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
-%if %{with test}
 %check
 # Note: There are some tests that are skipped because the user that
 # runs rpmbuild should be able to run fusermount but there's no way
 # to add it to the trusted group.
 %python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pytest 
test/ -rsx
-%endif
 
 %files %{python_files}
-%defattr(-,root,root)
 %doc Changes.rst README.rst
 %license LICENSE
 %{python_sitearch}
 
 %files -n %{name}-docs
-%defattr(-,root,root)
 %doc doc/html
 
 %changelog


++++++ llfuse-attr-2.4.48.patch ++++++
# HG changeset patch
# User Eli Schwartz <eschwa...@archlinux.org>
# Date 1530886366 14400
# Node ID cec107981b03c6c3e263f21009757dec76d129e2
# Parent  a93c251e647e665e1cb54fb4e2f3c993e43e14e1
Fix failure to build on attr v2.4.48

<attr/xattr.h> no longer exists, see
https://git.savannah.gnu.org/cgit/attr.git/commit/?id=7921157890d07858d092f4003ca4c6bae9fd2c38

Downstream consumers are instructed to use <sys/xattr.h> instead.
Add compat defines for ENOATTR.

diff --git a/src/xattr.h b/src/xattr.h
--- a/src/xattr.h
+++ b/src/xattr.h
@@ -25,7 +25,15 @@
  * Linux
  */
 #if PLATFORM == PLATFORM_LINUX
-#include <attr/xattr.h>
+#include <sys/xattr.h>
+/*
+ * Newer versions of attr deprecate attr/xattr.h which defines ENOATTR as a
+ * synonym for ENODATA. To keep compatibility with the old style and the new,
+ * define this ourselves.
+ */
+#ifndef ENOATTR
+#define ENOATTR ENODATA
+#endif
 
 #define EXTATTR_NAMESPACE_USER 0
 #define EXTATTR_NAMESPACE_SYSTEM 0


Reply via email to