diff options
| author | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
| commit | 8e8120eabdd28020aa69c7a60505cce2edd20adc (patch) | |
| tree | 061bf0acdc672720e0bc3a2d575f67d25aedb2d8 /dev-lang/ruby/files | |
| parent | c16790af2c9b4cbc38e565d4311252193ff85484 (diff) | |
| download | baldeagleos-repo-21.1.2.tar.gz baldeagleos-repo-21.1.2.tar.xz baldeagleos-repo-21.1.2.zip | |
Updating liguros repo21.1.2
Diffstat (limited to 'dev-lang/ruby/files')
| -rw-r--r-- | dev-lang/ruby/files/2.5/002-autoconf-2.70.patch | 65 | ||||
| -rw-r--r-- | dev-lang/ruby/files/2.6/002-autoconf-2.70.patch | 65 | ||||
| -rw-r--r-- | dev-lang/ruby/files/2.7/002-autoconf-2.70.patch | 26 | ||||
| -rw-r--r-- | dev-lang/ruby/files/3.0/001-socksocket-fix.patch | 15 | ||||
| -rw-r--r-- | dev-lang/ruby/files/3.0/010-default-gem-location.patch | 20 |
5 files changed, 191 insertions, 0 deletions
diff --git a/dev-lang/ruby/files/2.5/002-autoconf-2.70.patch b/dev-lang/ruby/files/2.5/002-autoconf-2.70.patch new file mode 100644 index 000000000000..576ed6c759bd --- /dev/null +++ b/dev-lang/ruby/files/2.5/002-autoconf-2.70.patch @@ -0,0 +1,65 @@ +From 6160ea5e22ee7353a0814159c94bd3cf890a52ce Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Mon, 16 Nov 2020 08:42:15 +0000 +Subject: [PATCH] configure.ac: fix for upcoming autoconf-2.70 + +The failure initially noticed on `autoconf-2.69d` (soon to become 2.70): + +``` +$ ./configure +./configure: line 8720: syntax error near unexpected token `fi' +./configure: line 8720: `fi' +``` + +Before the change generated `./configure ` snippet looked like: + +``` + if ! $CC -E -xc - <<SRC >/dev/null +then : + + #if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 + #error premature clang + #endif +SRC + as_fn_error $? "clang version 3.0 or later is required" "$LINENO" 5 +fi +``` + +Note the newline that breaks here-document syntax. + +After the change the snippet does not use here-document. + +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +--- + configure.ac | 15 ++++++++------- + 1 file changed, 8 insertions(+), 7 deletions(-) + +diff --git a/configure.ac b/configure.ac +index a5e3dc76f6..4e4a52f066 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -271,13 +271,14 @@ AS_CASE(["$host_os:$build_os"], + # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported) + # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn) + # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) +- AS_IF([! $CC -E -xc - <<SRC >/dev/null], [ +- @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 +- @%:@error premature clang +- @%:@endif +-SRC +- AC_MSG_ERROR([clang version 3.0 or later is required]) +- ]) ++ AC_PREPROC_IFELSE( ++ [AC_LANG_PROGRAM([ ++ @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 ++ @%:@error premature clang ++ @%:@endif ++ ])], ++ [], ++ [AC_MSG_ERROR([clang version 3.0 or later is required])]) + ]) + + AS_CASE(["$target_os"], +-- +2.29.2 + diff --git a/dev-lang/ruby/files/2.6/002-autoconf-2.70.patch b/dev-lang/ruby/files/2.6/002-autoconf-2.70.patch new file mode 100644 index 000000000000..576ed6c759bd --- /dev/null +++ b/dev-lang/ruby/files/2.6/002-autoconf-2.70.patch @@ -0,0 +1,65 @@ +From 6160ea5e22ee7353a0814159c94bd3cf890a52ce Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Mon, 16 Nov 2020 08:42:15 +0000 +Subject: [PATCH] configure.ac: fix for upcoming autoconf-2.70 + +The failure initially noticed on `autoconf-2.69d` (soon to become 2.70): + +``` +$ ./configure +./configure: line 8720: syntax error near unexpected token `fi' +./configure: line 8720: `fi' +``` + +Before the change generated `./configure ` snippet looked like: + +``` + if ! $CC -E -xc - <<SRC >/dev/null +then : + + #if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 + #error premature clang + #endif +SRC + as_fn_error $? "clang version 3.0 or later is required" "$LINENO" 5 +fi +``` + +Note the newline that breaks here-document syntax. + +After the change the snippet does not use here-document. + +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +--- + configure.ac | 15 ++++++++------- + 1 file changed, 8 insertions(+), 7 deletions(-) + +diff --git a/configure.ac b/configure.ac +index a5e3dc76f6..4e4a52f066 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -271,13 +271,14 @@ AS_CASE(["$host_os:$build_os"], + # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported) + # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn) + # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) +- AS_IF([! $CC -E -xc - <<SRC >/dev/null], [ +- @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 +- @%:@error premature clang +- @%:@endif +-SRC +- AC_MSG_ERROR([clang version 3.0 or later is required]) +- ]) ++ AC_PREPROC_IFELSE( ++ [AC_LANG_PROGRAM([ ++ @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 ++ @%:@error premature clang ++ @%:@endif ++ ])], ++ [], ++ [AC_MSG_ERROR([clang version 3.0 or later is required])]) + ]) + + AS_CASE(["$target_os"], +-- +2.29.2 + diff --git a/dev-lang/ruby/files/2.7/002-autoconf-2.70.patch b/dev-lang/ruby/files/2.7/002-autoconf-2.70.patch new file mode 100644 index 000000000000..bea2bc178dc4 --- /dev/null +++ b/dev-lang/ruby/files/2.7/002-autoconf-2.70.patch @@ -0,0 +1,26 @@ +diff --git a/configure.ac b/configure.ac +index 6766df2..bc503d6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -177,13 +177,14 @@ AS_CASE(["$host_os:$build_os"], + # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported) + # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn) + # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) +- AS_IF([! $CC -E -xc - <<SRC >/dev/null], [ +- @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 +- @%:@error premature clang +- @%:@endif +-SRC +- AC_MSG_ERROR([clang version 3.0 or later is required]) +- ])], ++ AC_PREPROC_IFELSE( ++ [AC_LANG_PROGRAM([ ++ @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 ++ @%:@error premature clang ++ @%:@endif ++ ])], ++ [], ++ [AC_MSG_ERROR([clang version 3.0 or later is required])])], + [openbsd*:openbsd*], [ + AC_CHECK_TOOLS(CC, [cc]) + ]) diff --git a/dev-lang/ruby/files/3.0/001-socksocket-fix.patch b/dev-lang/ruby/files/3.0/001-socksocket-fix.patch new file mode 100644 index 000000000000..1a79e25491cc --- /dev/null +++ b/dev-lang/ruby/files/3.0/001-socksocket-fix.patch @@ -0,0 +1,15 @@ +Fix compilation with socks5 USE flag. + +Patch by Phobos Kappa in https://bugs.gentoo.org/762253 + +--- a/ext/socket/sockssocket.c 2020-12-25 05:33:01.000000000 +0200 ++++ b/ext/socket/sockssocket.c 2020-12-28 15:42:50.310029778 +0200 +@@ -34,7 +34,7 @@ + init = 1; + } + +- return rsock_init_inetsock(sock, host, port, Qnil, Qnil, INET_SOCKS, Qnil); ++ return rsock_init_inetsock(sock, host, port, Qnil, Qnil, INET_SOCKS, Qnil, Qnil); + } + + #ifdef SOCKS5 diff --git a/dev-lang/ruby/files/3.0/010-default-gem-location.patch b/dev-lang/ruby/files/3.0/010-default-gem-location.patch new file mode 100644 index 000000000000..060579b4f339 --- /dev/null +++ b/dev-lang/ruby/files/3.0/010-default-gem-location.patch @@ -0,0 +1,20 @@ +--- a/tool/rbinstall.rb.~1~ 2020-12-25 04:33:01.000000000 +0100 ++++ b/tool/rbinstall.rb 2020-12-25 10:05:34.629096405 +0100 +@@ -897,7 +897,7 @@ + end + + def install_default_gem(dir, srcdir) +- gem_dir = Gem.default_dir ++ gem_dir = ENV['GEM_DESTDIR'] + install_dir = with_destdir(gem_dir) + prepare "default gems from #{dir}", gem_dir + makedirs(Gem.ensure_default_gem_subdirectories(install_dir, $dir_mode).map {|d| File.join(gem_dir, d)}) +@@ -943,7 +943,7 @@ + end + + install?(:ext, :comm, :gem, :'bundled-gems') do +- gem_dir = Gem.default_dir ++ gem_dir = ENV['GEM_DESTDIR'] + install_dir = with_destdir(gem_dir) + prepare "bundled gems", gem_dir + makedirs(Gem.ensure_gem_subdirectories(install_dir, $dir_mode).map {|d| File.join(gem_dir, d)}) |
