]> git.pld-linux.org Git - packages/amanda.git/commitdiff
- fix swig perl build auto/th/amanda-3.3.6-5
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 27 Dec 2015 10:52:17 +0000 (11:52 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 27 Dec 2015 10:52:17 +0000 (11:52 +0100)
- rel 5

amanda.spec
swig.patch [new file with mode: 0644]

index d742b8ab00f59b90a29e6243bd6516efcebe8475..7d71cade3830f03aac391229628789b55f42e1cf 100644 (file)
@@ -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 (file)
index 0000000..bf97610
--- /dev/null
@@ -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]); };
+ }
This page took 0.103665 seconds and 4 git commands to generate.