Hello community,

here is the log from the commit of package swig for openSUSE:Factory checked in 
at 2017-09-25 13:57:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/swig (Old)
 and      /work/SRC/openSUSE:Factory/.swig.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "swig"

Mon Sep 25 13:57:31 2017 rev:61 rq:528527 version:3.0.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/swig/swig.changes        2017-02-06 
14:35:15.652853086 +0100
+++ /work/SRC/openSUSE:Factory/.swig.new/swig.changes   2017-09-25 
13:57:33.462525627 +0200
@@ -1,0 +2,5 @@
+Sun Sep 24 10:47:22 UTC 2017 - co...@suse.com
+
+- add swig-perl526.patch from upstream to work with perl 5.26
+
+-------------------------------------------------------------------

New:
----
  swig-perl526.patch

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

Other differences:
------------------
++++++ swig.spec ++++++
--- /var/tmp/diff_new_pack.qVTfug/_old  2017-09-25 13:57:34.210420401 +0200
+++ /var/tmp/diff_new_pack.qVTfug/_new  2017-09-25 13:57:34.210420401 +0200
@@ -29,6 +29,7 @@
 Source1:        %{name}.rpmlintrc
 Patch2:         swig308-isfinite.diff
 Patch3:         swig-ocaml-int64.patch
+Patch4:         swig-perl526.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 %if 0%{?suse_version} > 1325
@@ -134,6 +135,7 @@
 %setup -q
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %ifarch s390 s390x

++++++ swig-perl526.patch ++++++
>From 8855ef2b482c09da9255079b0fac92d08c8308fb Mon Sep 17 00:00:00 2001
From: Olly Betts <o...@survex.com>
Date: Tue, 13 Jun 2017 17:32:37 +1200
Subject: [PATCH] [Perl] Fix testsuite to work without . in @INC

"." was removed from @INC in Perl 5.26 for security reasons, and has
also been removed from older versions in some distros.

Fixes https://github.com/swig/swig/issues/997 reported by lfam.
---
 Examples/Makefile.in                       | 2 +-
 Examples/test-suite/perl5/run-perl-test.pl | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Examples/Makefile.in b/Examples/Makefile.in
index 7682b565fc..8a88fb5eaa 100644
--- a/Examples/Makefile.in
+++ b/Examples/Makefile.in
@@ -282,7 +282,7 @@ perl5_static_cpp: $(SRCDIR_SRCS)
 # -----------------------------------------------------------------
 
 perl5_run:
-       $(RUNTOOL) $(PERL) $(PERL5_SCRIPT) $(RUNPIPE)
+       $(RUNTOOL) $(PERL) -I. $(PERL5_SCRIPT) $(RUNPIPE)
 
 # -----------------------------------------------------------------
 # Version display
diff --git a/Examples/test-suite/perl5/run-perl-test.pl 
b/Examples/test-suite/perl5/run-perl-test.pl
index 106bf002bb..5ea4e51157 100644
--- a/Examples/test-suite/perl5/run-perl-test.pl
+++ b/Examples/test-suite/perl5/run-perl-test.pl
@@ -7,7 +7,7 @@
 
 my $command = shift @ARGV;
 
-my $output = `$^X $command 2>&1`;
+my $output = `$^X -I. $command 2>&1`;
 
 die "SWIG Perl test failed: \n\n$output\n"
   if $?;

Reply via email to