On Tue, Jan 23, 2018 at 08:43:02PM +0000, Chris West (Faux) wrote:
> Source: ruby-sexp-processor
> Version: 4.7.0-1
> Severity: important
> User: debian-r...@lists.debian.org
> Usertags: ruby2.5
> 
> Dear Maintainer,
> 
> This package fails to build against ruby2.5. Soon, there will
> be a transition to ruby2.5, and this package will FTBFS in sid.

Find patch attached that fixes the build.

Regards
diff -Nru ruby-sexp-processor-4.7.0/debian/changelog ruby-sexp-processor-4.7.0/debian/changelog
--- ruby-sexp-processor-4.7.0/debian/changelog	2016-07-21 06:11:59.000000000 +0200
+++ ruby-sexp-processor-4.7.0/debian/changelog	2018-03-10 11:59:35.000000000 +0100
@@ -1,3 +1,10 @@
+ruby-sexp-processor (4.7.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with Ruby2.5 (Closes: #888196)
+
+ -- Héctor Orón Martínez <zu...@debian.org>  Sat, 10 Mar 2018 11:59:35 +0100
+
 ruby-sexp-processor (4.7.0-1) unstable; urgency=medium
 
   * Imported Upstream version 4.7.0
diff -Nru ruby-sexp-processor-4.7.0/debian/patches/series ruby-sexp-processor-4.7.0/debian/patches/series
--- ruby-sexp-processor-4.7.0/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ ruby-sexp-processor-4.7.0/debian/patches/series	2018-03-10 11:59:21.000000000 +0100
@@ -0,0 +1 @@
+update-tests-to-use-sexps-not-raw-arrays.patch
diff -Nru ruby-sexp-processor-4.7.0/debian/patches/update-tests-to-use-sexps-not-raw-arrays.patch ruby-sexp-processor-4.7.0/debian/patches/update-tests-to-use-sexps-not-raw-arrays.patch
--- ruby-sexp-processor-4.7.0/debian/patches/update-tests-to-use-sexps-not-raw-arrays.patch	1970-01-01 01:00:00.000000000 +0100
+++ ruby-sexp-processor-4.7.0/debian/patches/update-tests-to-use-sexps-not-raw-arrays.patch	2018-03-10 11:59:35.000000000 +0100
@@ -0,0 +1,96 @@
+commit 05838e8658872f71a7c01cc66333ca76bea2a1bd
+Author: Ryan Davis <ry...@zenspider.com>
+Date:   Sat May 20 02:35:03 2017 -0800
+
+    Updated tests to use sexps, not raw arrays
+    [git-p4: depot-paths = "//src/sexp_processor/dev/": change = 11326]
+
+Index: ruby-sexp-processor-4.7.0/test/test_sexp_processor.rb
+===================================================================
+--- ruby-sexp-processor-4.7.0.orig/test/test_sexp_processor.rb	2016-03-31 01:14:48.000000000 +0200
++++ ruby-sexp-processor-4.7.0/test/test_sexp_processor.rb	2018-03-10 12:03:31.687705413 +0100
+@@ -72,7 +72,7 @@
+   end
+ 
+   def rewrite_major_rewrite(exp)
+-    exp[0] = :rewritable
++    exp.sexp_type = :rewritable
+     exp
+   end
+ end
+@@ -98,13 +98,13 @@
+   end
+ 
+   def test_process_specific
+-    a = [:specific, [:x, 1], [:y, 2], [:z, 3]]
+-    expected = [:blah, [:x, 1], [:y, 2], [:z, 3]]
++    a = s(:specific, s(:x, 1), s(:y, 2), s(:z, 3))
++    expected = s(:blah, s(:x, 1), s(:y, 2), s(:z, 3))
+     assert_equal(expected, @processor.process(a))
+   end
+ 
+   def test_process_generic
+-    a = [:blah, 1, 2, 3]
++    a = s(:blah, 1, 2, 3)
+     expected = a.deep_clone
+     assert_equal(expected, @processor.process(a))
+   end
+@@ -131,7 +131,7 @@
+     @processor.unsupported << :strip
+ 
+     assert_raises UnsupportedNodeError do
+-      @processor.process([:whatever])
++      @processor.process(s(:whatever))
+     end
+   end
+ 
+@@ -139,14 +139,14 @@
+     @processor.strict = true
+     @processor.unsupported = [ :unsupported ]
+     assert_raises UnsupportedNodeError do
+-      @processor.process([:unsupported, 42])
++      @processor.process(s(:unsupported, 42))
+     end
+   end
+ 
+   def test_strict
+     @processor.strict = true
+     assert_raises UnknownNodeError do
+-      @processor.process([:blah, 1, 2, 3])
++      @processor.process(s(:blah, 1, 2, 3))
+     end
+   end
+   def test_strict=; skip; end #Handled
+@@ -154,12 +154,12 @@
+   def test_require_empty_false
+     @processor.require_empty = false
+ 
+-    assert_equal s(:nonempty, 1, 2, 3), @processor.process([:nonempty, 1, 2, 3])
++    assert_equal s(:nonempty, 1, 2, 3), @processor.process(s(:nonempty, 1, 2, 3))
+   end
+ 
+   def test_require_empty_true
+     assert_raises NotEmptyError do
+-      @processor.process([:nonempty, 1, 2, 3])
++      @processor.process(s(:nonempty, 1, 2, 3))
+     end
+   end
+   def test_require_empty=; skip; end # handled
+@@ -175,7 +175,7 @@
+   end
+ 
+   def test_rewrite_different_type
+-    assert_equal(s(:rewritable, :b, :a),
++    assert_equal(s(:major_rewrite, :a, :b),
+                  @processor.rewrite(s(:major_rewrite, :a, :b)))
+   end
+ 
+@@ -282,7 +282,7 @@
+       @processor.process(s(:string, "string"))     # should raise
+     end
+ 
+-    @processor.process([:expected])        # shouldn't raise
++    @processor.process(s(:expected))        # shouldn't raise
+   end
+   def test_expected=; skip; end # handled
+ 

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to