From 81ad13d609c068a46ab1aa0e6d86198ed3994c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 9 Jan 2017 13:53:49 +0100 Subject: [PATCH] Fix test error caused by rubygem-concurrent-ruby. --- ...ant-test-failure-by-loading-constant.patch | 20 +++++++++++++++++++ rubygem-rack.spec | 13 +++++++++++- sources | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 rack-2.0.1-Resolve-undefined-constant-test-failure-by-loading-constant.patch diff --git a/rack-2.0.1-Resolve-undefined-constant-test-failure-by-loading-constant.patch b/rack-2.0.1-Resolve-undefined-constant-test-failure-by-loading-constant.patch new file mode 100644 index 0000000..e29e545 --- /dev/null +++ b/rack-2.0.1-Resolve-undefined-constant-test-failure-by-loading-constant.patch @@ -0,0 +1,20 @@ +From db45a93daab59ddee520890d104701bf089ccd2b Mon Sep 17 00:00:00 2001 +From: Carl Zulauf +Date: Thu, 29 Dec 2016 11:10:16 -0600 +Subject: [PATCH] Resolve undefined constant test failure by loading constant + +--- + test/spec_webrick.rb | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/test/spec_webrick.rb b/test/spec_webrick.rb +index 469ae62..eff6411 100644 +--- a/test/spec_webrick.rb ++++ b/test/spec_webrick.rb +@@ -1,5 +1,6 @@ + require 'minitest/autorun' + require 'rack/mock' ++require 'concurrent/utility/native_integer' + require 'concurrent/atomic/count_down_latch' + require File.expand_path('../testrequest', __FILE__) + diff --git a/rubygem-rack.spec b/rubygem-rack.spec index 0239bfb..f6c9787 100644 --- a/rubygem-rack.spec +++ b/rubygem-rack.spec @@ -8,13 +8,17 @@ Name: rubygem-%{gem_name} Version: 2.0.1 # Introduce Epoch (related to bug 552972) Epoch: 1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A modular Ruby webserver interface Group: Development/Languages # lib/rack/show{status,exceptions}.rb contains snippets from Django under BSD license. License: MIT and BSD URL: http://rack.github.io/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# Fix "uninitialized constant Concurrent::Utility::NativeInteger" error caused +# by updated rubygem-concurrent-ruby. +# https://github.com/rack/rack/commit/db45a93daab59ddee520890d104701bf089ccd2b +Patch0: rack-2.0.1-Resolve-undefined-constant-test-failure-by-loading-constant.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.2.2 @@ -48,6 +52,10 @@ Documentation for %{name}. %setup -q -c -T %gem_install -n %{SOURCE0} +pushd .%{gem_instdir} +%patch0 -p1 +popd + %build %install @@ -107,6 +115,9 @@ popd %doc %{gem_instdir}/contrib %changelog +* Mon Jan 09 2017 Vít Ondruch - 1:2.0.1-2 +- Fix test error caused by rubygem-concurrent-ruby. + * Fri Jul 01 2016 Vít Ondruch - 1:2.0.1-1 - Update to Rack 2.0.1. diff --git a/sources b/sources index 8bed228..97ac869 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ef209944508b4b1901840682b835c573 rack-2.0.1.gem +SHA512 (rack-2.0.1.gem) = 6ad5060ce56e279eb01029a699e86ee3f3cd6fe15b282f4c38ecc095d8bdf359dee0ff3fbe699bcac0e4765da7758fa5161f3c939da71a77eaf3fe3bc79bea1d