[packages/python-pyblock] - fix gcc/glibc build errors - rel 5
baggins
baggins at pld-linux.org
Mon Mar 6 19:08:11 CET 2017
commit a8f94418e5b72984298654884bca214d01bc924d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Mar 6 19:07:40 2017 +0100
- fix gcc/glibc build errors
- rel 5
build.patch | 19 +++++++++++++++++++
python-pyblock.spec | 4 +++-
2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/python-pyblock.spec b/python-pyblock.spec
index c218d27..092713d 100644
--- a/python-pyblock.spec
+++ b/python-pyblock.spec
@@ -5,11 +5,12 @@ Summary: Python modules for dealing with block devices
Summary(pl.UTF-8): Moduły Pythona do obsługi urządzeń blokowych
Name: python-%{module}
Version: 0.53
-Release: 4
+Release: 5
License: GPL v2 or GPL v3
Group: Libraries/Python
Source0: https://fedorahosted.org/releases/p/y/pyblock/pyblock-%{version}.tar.bz2
# Source0-md5: f6d33a8362dee358517d0a9e2ebdd044
+Patch0: build.patch
URL: http://fedoraproject.org/wiki/Anaconda
BuildRequires: device-mapper-devel >= %{dmver}
BuildRequires: dmraid-devel >= %{dmrver}
@@ -34,6 +35,7 @@ Pakiet pyblock zawiera moduły Pythona do obsługi urządzeń blokowych.
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
%build
%{__make} -j1 \
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..3aec12c
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,19 @@
+--- pyblock-0.53/dm.c.orig 2011-12-08 21:02:03.000000000 +0100
++++ pyblock-0.53/dm.c 2017-03-06 19:06:36.925597603 +0100
+@@ -17,6 +17,7 @@
+ */
+
+ #define _GNU_SOURCE
++#include <sys/sysmacros.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+@@ -645,7 +646,7 @@
+
+ rc = pydm_init_table((PydmTableObject *)self, start, size,
+ type, params);
+- if (!rc < 0) {
++ if (rc >= 0) {
+ Py_DECREF(self);
+ return NULL;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyblock.git/commitdiff/a8f94418e5b72984298654884bca214d01bc924d
More information about the pld-cvs-commit
mailing list