[packages/amanda] - fix swig perl build - rel 5

baggins baggins at pld-linux.org
Sun Dec 27 11:52:31 CET 2015


commit f5929ca0248eef6bf391cf53af4166dbddb6359c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Dec 27 11:52:17 2015 +0100

    - fix swig perl build
    - rel 5

 amanda.spec |  4 +++-
 swig.patch  | 19 +++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/amanda.spec b/amanda.spec
index d742b8a..7d71cad 100644
--- a/amanda.spec
+++ b/amanda.spec
@@ -10,7 +10,7 @@ Summary:	A network-capable tape backup solution
 Summary(pl.UTF-8):	Sieciowo zorientowany system tworzenia kopii zapasowych
 Name:		amanda
 Version:	3.3.6
-Release:	4
+Release:	5
 License:	BSD
 Group:		Networking/Utilities
 Source0:	http://downloads.sourceforge.net/amanda/%{name}-%{version}.tar.gz
@@ -40,6 +40,7 @@ Patch9:		%{name}-ac.patch
 Patch11:	%{name}-amstar-exclude-fix.patch
 Patch12:	%{name}-krb5-auth.patch
 Patch13:	%{name}-amstar-device.patch
+Patch14:	swig.patch
 URL:		http://www.amanda.org/
 %{?with_samba:BuildRequires:	/usr/bin/smbclient}
 BuildRequires:	autoconf >= 2.53
@@ -213,6 +214,7 @@ typu streamer).
 %patch11 -p1
 %patch12 -p1
 %patch13 -p1
+%patch14 -p1
 cp -a %{SOURCE10} .
 
 find perl/ -name '*.swg' -print0 | xargs -0 touch
diff --git a/swig.patch b/swig.patch
new file mode 100644
index 0000000..bf97610
--- /dev/null
+++ b/swig.patch
@@ -0,0 +1,19 @@
+--- amanda-3.3.6/perl/Amanda/Xfer.swg.orig	2015-12-27 11:44:42.539670320 +0100
++++ amanda-3.3.6/perl/Amanda/Xfer.swg	2015-12-27 11:47:02.104286963 +0100
+@@ -533,8 +533,6 @@
+ %perlcode {
+ sub new { 
+     my $pkg = shift;
+-    # The C function adds the proper blessing -- this function
+-    # just gets $pkg out of the way.
+     C_CONSTRUCTOR(@_);
+ }
+ }
+@@ -543,7 +543,6 @@
+ %define OVERLOAD_REPR()
+ %perlcode {
+ use overload '""' => sub { $_[0]->repr(); };
+-# overload comparison, so users can ask if one obj == another
+ use overload '==' => sub {     Amanda::Xfer::same_elements($_[0], $_[1]); };
+ use overload '!=' => sub { not Amanda::Xfer::same_elements($_[0], $_[1]); };
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/amanda.git/commitdiff/f5929ca0248eef6bf391cf53af4166dbddb6359c



More information about the pld-cvs-commit mailing list