[unbound/el5] Fix (python) libunbound.i because of old swig
Tomas Hozza
thozza at fedoraproject.org
Tue Aug 20 11:28:01 UTC 2013
commit 62fa70bea61022f15a314f2f1cc91b7a0048ecdc
Author: Tomas Hozza <thozza at redhat.com>
Date: Tue Aug 20 13:27:07 2013 +0200
Fix (python) libunbound.i because of old swig
Signed-off-by: Tomas Hozza <thozza at redhat.com>
unbound-1.4.20-swig_self_variable.patch | 12 ++++++++++++
unbound.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/unbound-1.4.20-swig_self_variable.patch b/unbound-1.4.20-swig_self_variable.patch
new file mode 100644
index 0000000..c7070b5
--- /dev/null
+++ b/unbound-1.4.20-swig_self_variable.patch
@@ -0,0 +1,12 @@
+diff -up unbound-1.4.20/libunbound/python/libunbound.i.self_variable unbound-1.4.20/libunbound/python/libunbound.i
+--- unbound-1.4.20/libunbound/python/libunbound.i.self_variable 2013-08-20 13:02:42.650608769 +0200
++++ unbound-1.4.20/libunbound/python/libunbound.i 2013-08-20 13:03:09.449592981 +0200
+@@ -770,7 +770,7 @@ Result: ['74.125.43.147', '74.125.43.99'
+ }
+
+ PyObject* _packet() {
+- return PyString_FromStringAndSize($self->answer_packet, $self->answer_len);
++ return PyString_FromStringAndSize(self->answer_packet, self->answer_len);
+ }
+
+ %pythoncode %{
diff --git a/unbound.spec b/unbound.spec
index d4f3db0..269d6b9 100644
--- a/unbound.spec
+++ b/unbound.spec
@@ -18,6 +18,9 @@ Source3: unbound.munin
Source4: unbound_munin_
Source5: root.key
Source6: dlv.isc.org.key
+
+Patch0: %{name}-1.4.20-swig_self_variable.patch
+
Group: System Environment/Daemons
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: flex, openssl-devel , ldns-devel >= 1.6.9,
@@ -88,7 +91,8 @@ Python modules and extensions for unbound
%endif
%prep
-%setup -q
+%setup -q
+%patch0 -p1 -b .self_variable
%build
%configure --with-ldns= --with-libevent --with-pthreads --with-ssl \
@@ -213,6 +217,7 @@ fi
- Remove merged and unused patches
- Resolve build failure
- Build streamtcp
+- Fix (python) libunbound.i because of old swig
* Sun Aug 11 2013 Paul Wouters <pwouters at redhat.com> - 1.4.20-1
- Updatged to 1.4.20
More information about the scm-commits
mailing list