Carl Hörberg
7 years ago
committed by
Fredrik Fornwall
9 changed files with 94 additions and 55 deletions
@ -0,0 +1,21 @@ |
|||||
|
--- /home/vagrant/ruby-2.5.0/configure.ac 2017-12-15 09:43:40.000000000 +0000
|
||||
|
+++ src/configure.ac 2018-02-14 19:07:11.272257521 +0000
|
||||
|
@@ -742,7 +742,7 @@
|
||||
|
rb_cv_warnflags="$warnflags" |
||||
|
AS_IF([test "$GCC:${warnflags+set}:no" = yes::no], [ |
||||
|
AS_IF([test $gcc_major -ge 4], [ |
||||
|
- extra_warning=-Werror=extra-tokens
|
||||
|
+ extra_warning=
|
||||
|
], [ |
||||
|
extra_warning= |
||||
|
]) |
||||
|
@@ -765,9 +765,7 @@
|
||||
|
-Werror=pointer-arith \ |
||||
|
-Werror=write-strings \ |
||||
|
-Werror=declaration-after-statement \ |
||||
|
- -Werror=shorten-64-to-32 \
|
||||
|
-Werror=implicit-function-declaration \ |
||||
|
- -Werror=division-by-zero \
|
||||
|
-Werror=deprecated-declarations \ |
||||
|
-Werror=misleading-indentation \ |
||||
|
-Wno-packed-bitfield-compat \ |
@ -1,25 +0,0 @@ |
|||||
Fix issues when compiling with clang (where cpp is provided by gcc |
|
||||
in the standalone toolchain). |
|
||||
|
|
||||
diff -u -r ../ruby-2.3.1/configure.in ./configure.in
|
|
||||
--- ../ruby-2.3.1/configure.in 2016-04-24 13:44:40.000000000 -0400
|
|
||||
+++ ./configure.in 2016-05-18 01:10:09.523385169 -0400
|
|
||||
@@ -799,7 +799,7 @@
|
|
||||
rb_cv_warnflags="$warnflags" |
|
||||
if test "$GCC:${warnflags+set}:no" = yes::no; then |
|
||||
if test $gcc_major -ge 4; then |
|
||||
- extra_warning=-Werror=extra-tokens
|
|
||||
+ extra_warning=
|
|
||||
else |
|
||||
extra_warning= |
|
||||
fi |
|
||||
@@ -813,9 +813,7 @@
|
|
||||
-Werror=pointer-arith \ |
|
||||
-Werror=write-strings \ |
|
||||
-Werror=declaration-after-statement \ |
|
||||
- -Werror=shorten-64-to-32 \
|
|
||||
-Werror=implicit-function-declaration \ |
|
||||
- -Werror=division-by-zero \
|
|
||||
-Werror=deprecated-declarations \ |
|
||||
-Wno-packed-bitfield-compat \ |
|
||||
$extra_warning \ |
|
@ -0,0 +1,21 @@ |
|||||
|
--- /home/vagrant/ruby-2.5.0/configure 2017-12-25 07:00:28.000000000 +0000
|
||||
|
+++ src/configure 2018-02-14 19:06:28.742701948 +0000
|
||||
|
@@ -7434,7 +7434,7 @@
|
||||
|
|
||||
|
if test $gcc_major -ge 4; then : |
||||
|
|
||||
|
- extra_warning=-Werror=extra-tokens
|
||||
|
+ extra_warning=
|
||||
|
|
||||
|
else |
||||
|
|
||||
|
@@ -7464,9 +7464,7 @@
|
||||
|
-Werror=pointer-arith \ |
||||
|
-Werror=write-strings \ |
||||
|
-Werror=declaration-after-statement \ |
||||
|
- -Werror=shorten-64-to-32 \
|
||||
|
-Werror=implicit-function-declaration \ |
||||
|
- -Werror=division-by-zero \
|
||||
|
-Werror=deprecated-declarations \ |
||||
|
-Werror=misleading-indentation \ |
||||
|
-Wno-packed-bitfield-compat \ |
@ -0,0 +1,13 @@ |
|||||
|
--- /home/vagrant/ruby-2.5.0/lib/fileutils.rb 2017-12-22 08:00:10.000000000 +0000
|
||||
|
+++ ./lib/fileutils.rb 2018-02-17 23:19:55.344655246 +0000
|
||||
|
@@ -744,8 +744,8 @@
|
||||
|
# |
||||
|
def compare_stream(a, b) |
||||
|
bsize = fu_stream_blksize(a, b) |
||||
|
- sa = String.new(capacity: bsize)
|
||||
|
- sb = String.new(capacity: bsize)
|
||||
|
+ sa = String.new
|
||||
|
+ sb = String.new
|
||||
|
begin |
||||
|
a.read(bsize, sa) |
||||
|
b.read(bsize, sb) |
@ -0,0 +1,11 @@ |
|||||
|
--- /home/vagrant/ruby-2.5.0/template/configure-ext.mk.tmpl 2017-04-23 16:19:22.000000000 +0000
|
||||
|
+++ ./template/configure-ext.mk.tmpl 2018-02-17 23:31:02.304445580 +0000
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
MINIRUBY = <%=miniruby%> |
||||
|
SCRIPT_ARGS = <%=script_args%> |
||||
|
EXTMK_ARGS = $(SCRIPT_ARGS) --gnumake=$(gnumake) --extflags="$(EXTLDFLAGS)" \ |
||||
|
- --make-flags='MINIRUBY=$(MINIRUBY)'
|
||||
|
+ --make-flags="MINIRUBY='$(MINIRUBY)'"
|
||||
|
|
||||
|
all: exts gems |
||||
|
exts: |
@ -1,21 +1,20 @@ |
|||||
diff -u -r ../ruby-2.3.0/tool/rbinstall.rb ./tool/rbinstall.rb
|
--- /home/vagrant/ruby-2.5.0/tool/rbinstall.rb 2017-10-30 05:45:20.000000000 +0000
|
||||
--- ../ruby-2.3.0/tool/rbinstall.rb 2015-11-16 01:33:17.000000000 -0500
|
+++ src/tool/rbinstall.rb 2018-02-14 18:53:42.498522407 +0000
|
||||
+++ ./tool/rbinstall.rb 2015-12-25 15:43:04.756646343 -0500
|
@@ -731,7 +731,7 @@
|
||||
@@ -696,7 +696,7 @@
|
end |
||||
# :startdoc: |
|
||||
|
|
||||
install?(:ext, :comm, :gem) do |
def install_default_gem(dir, srcdir) |
||||
- gem_dir = Gem.default_dir
|
- gem_dir = Gem.default_dir
|
||||
+ gem_dir = "@TERMUX_PREFIX@/lib/ruby/gems/2.4.0"
|
+ gem_dir = "@TERMUX_PREFIX@/lib/ruby/gems/2.5.0"
|
||||
directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode) |
directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode) |
||||
prepare "default gems", gem_dir, directories |
prepare "default gems from #{dir}", gem_dir, directories |
||||
|
|
||||
@@ -732,7 +732,7 @@
|
@@ -765,7 +765,7 @@
|
||||
end |
end |
||||
|
|
||||
install?(:ext, :comm, :gem) do |
install?(:ext, :comm, :gem, :'bundled-gems') do |
||||
- gem_dir = Gem.default_dir
|
- gem_dir = Gem.default_dir
|
||||
+ gem_dir = "@TERMUX_PREFIX@/lib/ruby/gems/2.4.0"
|
+ gem_dir = "@TERMUX_PREFIX@/lib/ruby/gems/2.5.0"
|
||||
directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode) |
directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode) |
||||
prepare "bundle gems", gem_dir, directories |
prepare "bundled gems", gem_dir, directories |
||||
install_dir = with_destdir(gem_dir) |
install_dir = with_destdir(gem_dir) |
||||
|
Loading…
Reference in new issue