]> git.pld-linux.org Git - packages/ruby.git/commitdiff
add patch to build with readline 6.3; update files
authorElan Ruusamäe <glen@delfi.ee>
Sat, 5 Apr 2014 13:33:33 +0000 (16:33 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 5 Apr 2014 13:33:33 +0000 (16:33 +0300)
readline-6.3.patch [new file with mode: 0644]
ruby.spec

diff --git a/readline-6.3.patch b/readline-6.3.patch
new file mode 100644 (file)
index 0000000..e9b3f9b
--- /dev/null
@@ -0,0 +1,14 @@
+readline 6.3 fix from upstream
+
+https://bugs.ruby-lang.org/issues/9578
+--- ./ext/readline/readline.c  (revision 45224)
++++ ./ext/readline/readline.c  (revision 45225)
+@@ -1974,7 +1974,7 @@
+     rl_attempted_completion_function = readline_attempted_completion_function;
+ #if defined(HAVE_RL_PRE_INPUT_HOOK)
+-    rl_pre_input_hook = (Function *)readline_pre_input_hook;
++    rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
+ #endif
+ #ifdef HAVE_RL_CATCH_SIGNALS
+     rl_catch_signals = 0;
index ed970e717aa5833dac3d24a10413535a55a9673c..afeb0b212514b98ef390fe7f37bd6bf888fcbe32 100644 (file)
--- a/ruby.spec
+++ b/ruby.spec
@@ -73,6 +73,7 @@ Patch9:               DESTDIR.patch
 Patch10:       empty-ruby-version.patch
 Patch11:       rubygems-2.0.0-binary-extensions.patch
 Patch12:       custom-rubygems-location.patch
+Patch13:       readline-6.3.patch
 URL:           http://www.ruby-lang.org/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
@@ -437,6 +438,7 @@ Biblioteka JSON dla języka Ruby.
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
+%patch13 -p1
 
 # must be regenerated with new bison
 %{__rm} parse.{c,h}
@@ -692,8 +694,10 @@ rm -rf $RPM_BUILD_ROOT
 %{ruby_libdir}/tsort.rb
 %{ruby_libdir}/[u-z]*.rb
 %if %{with batteries}
-#%exclude %{ruby_libdir}/rubygems.rb
-#%exclude %{ruby_libdir}/ubygems.rb
+%exclude %{ruby_libdir}/rubygems.rb
+%exclude %{ruby_libdir}/ubygems.rb
+%exclude %{ruby_libdir}/rbconfig/datadir.rb
+%exclude %{ruby_libdir}/rbconfig/obsolete.rb
 %endif
 %exclude %{ruby_libdir}/irb.rb
 %exclude %{ruby_libdir}/mkmf.rb
This page took 0.030014 seconds and 4 git commands to generate.