[packages/ruby] load rubygems for Gem class

glen glen at pld-linux.org
Sat Nov 3 22:00:39 CET 2018


commit 27553c8baf5777ed22b5b47ef167c9a2688fd671
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Nov 3 22:59:43 2018 +0200

    load rubygems for Gem class

 ruby.spec      |  6 +++---
 rubygems.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/ruby.spec b/ruby.spec
index 3f9af33..afe22b1 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -10,7 +10,7 @@
 %bcond_with	bootstrap	# build bootstrap version
 %bcond_with	tests		# build without tests
 
-%define		rel		11
+%define		rel		12
 %define		ruby_version	2.4
 %define		patchlevel	4
 %define		pkg_version	%{ruby_version}.%{patchlevel}
@@ -52,7 +52,7 @@ Source54:	http://www.unicode.org/Public/9.0.0/ucd/UnicodeData.txt
 Source4:	rdoc.1
 Source5:	testrb.1
 Source6:	operating_system.rb
-#Patch1:		%{oname}-ffs.patch
+Patch1:		rubygems.patch
 Patch2:		fix-bison-invocation.patch
 Patch3:		mkmf-verbose.patch
 Patch4:		strip-ccache.patch
@@ -644,7 +644,7 @@ wywołującego je. Aby to osiągnąć wystarczy bardzo mało kodu.
 
 %prep
 %setup -q -n %{oname}-%{pkg_version} -a2 -a3
-#%patch1 -p1
+%patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
diff --git a/rubygems.patch b/rubygems.patch
new file mode 100644
index 0000000..7d6ab9b
--- /dev/null
+++ b/rubygems.patch
@@ -0,0 +1,11 @@
+--- ruby-2.4.4/lib/rubygems/exceptions.rb~	2018-11-03 22:58:19.872127348 +0200
++++ ruby-2.4.4/lib/rubygems/exceptions.rb	2018-11-03 21:39:23.000000000 +0200
+@@ -4,6 +4,8 @@
+ # Each exception needs a brief description and the scenarios where it is
+ # likely to be raised
+ 
++require 'rubygems'
++
+ ##
+ # Base exception class for RubyGems.  All exception raised by RubyGems are a
+ # subclass of this one.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby.git/commitdiff/27553c8baf5777ed22b5b47ef167c9a2688fd671



More information about the pld-cvs-commit mailing list