Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ruby3.1 for openSUSE:Factory checked 
in at 2022-02-03 23:15:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ruby3.1 (Old)
 and      /work/SRC/openSUSE:Factory/.ruby3.1.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ruby3.1"

Thu Feb  3 23:15:54 2022 rev:2 rq:950774 version:3.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ruby3.1/ruby3.1.changes  2022-01-29 
21:01:55.442737780 +0100
+++ /work/SRC/openSUSE:Factory/.ruby3.1.new.1898/ruby3.1.changes        
2022-02-03 23:16:12.636725754 +0100
@@ -1,0 +2,6 @@
+Wed Feb  2 15:45:00 UTC 2022 - Marcus Rueckert <[email protected]>
+
+- Added 
https://github.com/ruby/ipaddr/commit/77fe1fca0abb56f7f07725c0a3803d53a315c853.patch
+  Fix vagrant with ruby 3.1
+
+-------------------------------------------------------------------

New:
----
  77fe1fca0abb56f7f07725c0a3803d53a315c853.patch

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

Other differences:
------------------
++++++ ruby3.1.spec ++++++
--- /var/tmp/diff_new_pack.fAMkCx/_old  2022-02-03 23:16:13.280721358 +0100
+++ /var/tmp/diff_new_pack.fAMkCx/_new  2022-02-03 23:16:13.284721331 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ruby3.1
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -87,6 +87,7 @@
 Source98:       series
 Source99:       %{name}-rpmlintrc
 Patch:          use-pie.patch
+Patch1:         
https://github.com/ruby/ipaddr/commit/77fe1fca0abb56f7f07725c0a3803d53a315c853.patch
 #
 BuildRequires:  ruby-bundled-gems-rpmhelper
 %if %{with clang}
@@ -101,10 +102,10 @@
 BuildRequires:  autoconf
 %if %{with bootstrap}
 BuildRequires:  automake
-BuildRequires:  libtool
-BuildRequires:  ruby
 BuildRequires:  bison
 BuildRequires:  flex
+BuildRequires:  libtool
+BuildRequires:  ruby
 %endif
 BuildRequires:  libffi-devel
 BuildRequires:  libyaml-devel
@@ -412,7 +413,6 @@
 find %{buildroot} -type d -name '.gem.*' -print0 | xargs -r0 rm -rv || :
 find %{buildroot} -type f -name \*.pem -delete 
 
-
 %post
 for bin in %{ua_binaries}; do
   /usr/sbin/update-alternatives --install \

++++++ 77fe1fca0abb56f7f07725c0a3803d53a315c853.patch ++++++
>From 77fe1fca0abb56f7f07725c0a3803d53a315c853 Mon Sep 17 00:00:00 2001
From: Espartaco Palma <[email protected]>
Date: Mon, 13 Dec 2021 01:12:07 -0800
Subject: [PATCH] Fix exception calling `to_range' after `freeze'

---
 lib/ipaddr.rb       |  3 ++-
 test/test_ipaddr.rb | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb
index 51ad081..c33302c 100644
--- a/lib/ipaddr.rb
+++ b/lib/ipaddr.rb
@@ -411,7 +411,7 @@ def to_range
       raise AddressFamilyError, "unsupported address family"
     end
 
-    return clone.set(begin_addr, @family)..clone.set(end_addr, @family)
+    self.class.new(begin_addr, @family)..self.class.new(end_addr, @family)
   end
 
   # Returns the prefix length in bits for the ipaddr.
@@ -583,6 +583,7 @@ def mask!(mask)
   # those, such as &, |, include? and ==, accept a string, or a packed
   # in_addr value instead of an IPAddr object.
   def initialize(addr = '::', family = Socket::AF_UNSPEC)
+    @mask_addr = nil
     if !addr.kind_of?(String)
       case family
       when Socket::AF_INET, Socket::AF_INET6
diff --git a/test/test_ipaddr.rb b/test/test_ipaddr.rb
index bd16328..c07ee2a 100644
--- a/test/test_ipaddr.rb
+++ b/test/test_ipaddr.rb
@@ -255,6 +255,28 @@ def test_zone_id
     assert_equal("1:2:3:4:5:6:7:8%ab0", a.to_s)
     assert_raise(IPAddr::InvalidAddressError) { a.zone_id = '%' }
   end
+
+  def test_to_range
+    a1 = IPAddr.new("127.0.0.1")
+    range = a1..a1
+    assert_equal(range, a1.to_range)
+    assert_equal(range, a1.freeze.to_range)
+
+    a2 = IPAddr.new("192.168.0.1/16")
+    range = IPAddr.new("192.168.0.0")..IPAddr.new("192.168.255.255")
+    assert_equal(range, a2.to_range)
+    assert_equal(range, a2.freeze.to_range)
+
+    a3 = IPAddr.new("3ffe:505:2::1")
+    range = a3..a3
+    assert_equal(range, a3.to_range)
+    assert_equal(range, a3.freeze.to_range)
+
+    a4 = IPAddr.new("::ffff/127")
+    range = IPAddr.new("::fffe")..IPAddr.new("::ffff")
+    assert_equal(range, a4.to_range)
+    assert_equal(range, a4.freeze.to_range)
+  end
 end
 
 class TC_Operator < Test::Unit::TestCase

Reply via email to