diff options
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby.inc | 6 | ||||
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby/0001-extmk-fix-cross-compilation-of-external-gems.patch | 34 | ||||
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby/0002-Obey-LDFLAGS-for-the-link-of-libruby.patch | 22 | ||||
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby/0003-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch (renamed from meta/recipes-devtools/ruby/ruby/0001-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch) | 30 | ||||
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby/extmk.patch | 16 | ||||
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby_2.6.4.bb (renamed from meta/recipes-devtools/ruby/ruby_2.5.5.bb) | 14 |
6 files changed, 68 insertions, 54 deletions
diff --git a/meta/recipes-devtools/ruby/ruby.inc b/meta/recipes-devtools/ruby/ruby.inc index a98249afbd..c0ceb1c10b 100644 --- a/meta/recipes-devtools/ruby/ruby.inc +++ b/meta/recipes-devtools/ruby/ruby.inc | |||
| @@ -6,12 +6,12 @@ It is simple, straight-forward, and extensible. \ | |||
| 6 | " | 6 | " |
| 7 | HOMEPAGE = "http://www.ruby-lang.org/" | 7 | HOMEPAGE = "http://www.ruby-lang.org/" |
| 8 | SECTION = "devel/ruby" | 8 | SECTION = "devel/ruby" |
| 9 | LICENSE = "Ruby | BSD | GPLv2" | 9 | LICENSE = "Ruby | BSD-2-Clause | BSD-3-Clause | GPLv2 | ISC | MIT" |
| 10 | LIC_FILES_CHKSUM = "\ | 10 | LIC_FILES_CHKSUM = "\ |
| 11 | file://COPYING;md5=340948e1882e579731841bf49cdc22c1 \ | 11 | file://COPYING;md5=340948e1882e579731841bf49cdc22c1 \ |
| 12 | file://BSDL;md5=19aaf65c88a40b508d17ae4be539c4b5\ | 12 | file://BSDL;md5=19aaf65c88a40b508d17ae4be539c4b5\ |
| 13 | file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263\ | 13 | file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263\ |
| 14 | file://LEGAL;md5=23a79bb4c1a40f6cc9bcb6f4e7c39799 \ | 14 | file://LEGAL;md5=4ac0b84d1f7f420bca282e1adefc7f99 \ |
| 15 | " | 15 | " |
| 16 | 16 | ||
| 17 | DEPENDS = "ruby-native zlib openssl tcl libyaml gdbm readline libffi" | 17 | DEPENDS = "ruby-native zlib openssl tcl libyaml gdbm readline libffi" |
| @@ -19,7 +19,7 @@ DEPENDS_class-native = "openssl-native libyaml-native readline-native zlib-nativ | |||
| 19 | 19 | ||
| 20 | SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}" | 20 | SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}" |
| 21 | SRC_URI = "http://cache.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \ | 21 | SRC_URI = "http://cache.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \ |
| 22 | file://extmk.patch \ | 22 | file://0001-extmk-fix-cross-compilation-of-external-gems.patch \ |
| 23 | file://0002-Obey-LDFLAGS-for-the-link-of-libruby.patch \ | 23 | file://0002-Obey-LDFLAGS-for-the-link-of-libruby.patch \ |
| 24 | " | 24 | " |
| 25 | UPSTREAM_CHECK_URI = "https://www.ruby-lang.org/en/downloads/" | 25 | UPSTREAM_CHECK_URI = "https://www.ruby-lang.org/en/downloads/" |
diff --git a/meta/recipes-devtools/ruby/ruby/0001-extmk-fix-cross-compilation-of-external-gems.patch b/meta/recipes-devtools/ruby/ruby/0001-extmk-fix-cross-compilation-of-external-gems.patch new file mode 100644 index 0000000000..2e3156880e --- /dev/null +++ b/meta/recipes-devtools/ruby/ruby/0001-extmk-fix-cross-compilation-of-external-gems.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From a6e12b25a54d112c899b70c89c0bec9c5e5ebf3c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> | ||
| 3 | Date: Mon, 30 Sep 2019 16:57:01 +0100 | ||
| 4 | Subject: [PATCH 1/3] extmk: fix cross-compilation of external gems | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Note that I (André) didn't actually write this patch, I | ||
| 10 | only updated it so that git-am works. | ||
| 11 | |||
| 12 | Upstream-Status: Pending | ||
| 13 | Signed-off-by: André Draszik <andre.draszik@jci.com> | ||
| 14 | --- | ||
| 15 | ext/extmk.rb | 2 +- | ||
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/ext/extmk.rb b/ext/extmk.rb | ||
| 19 | index 1389dc4117..e4d923d7a7 100755 | ||
| 20 | --- a/ext/extmk.rb | ||
| 21 | +++ b/ext/extmk.rb | ||
| 22 | @@ -413,8 +413,8 @@ def $mflags.defined?(var) | ||
| 23 | end | ||
| 24 | $ruby = [$ruby] | ||
| 25 | $ruby << "-I'$(topdir)'" | ||
| 26 | +$ruby << "-I'$(top_srcdir)/lib'" | ||
| 27 | unless CROSS_COMPILING | ||
| 28 | - $ruby << "-I'$(top_srcdir)/lib'" | ||
| 29 | $ruby << "-I'$(extout)/$(arch)'" << "-I'$(extout)/common'" if $extout | ||
| 30 | ENV["RUBYLIB"] = "-" | ||
| 31 | end | ||
| 32 | -- | ||
| 33 | 2.23.0.rc1 | ||
| 34 | |||
diff --git a/meta/recipes-devtools/ruby/ruby/0002-Obey-LDFLAGS-for-the-link-of-libruby.patch b/meta/recipes-devtools/ruby/ruby/0002-Obey-LDFLAGS-for-the-link-of-libruby.patch index 4cf579f427..5979d8bd73 100644 --- a/meta/recipes-devtools/ruby/ruby/0002-Obey-LDFLAGS-for-the-link-of-libruby.patch +++ b/meta/recipes-devtools/ruby/ruby/0002-Obey-LDFLAGS-for-the-link-of-libruby.patch | |||
| @@ -1,25 +1,27 @@ | |||
| 1 | Upstream-Status: Pending | 1 | From 6d608326970b1613633d7715ebb7d628dfcd16ee Mon Sep 17 00:00:00 2001 |
| 2 | |||
| 3 | From 306e95a9818d39d3349075aac9609e062b0f19ce Mon Sep 17 00:00:00 2001 | ||
| 4 | From: Christopher Larson <chris_larson@mentor.com> | 2 | From: Christopher Larson <chris_larson@mentor.com> |
| 5 | Date: Thu, 5 May 2016 10:59:07 -0700 | 3 | Date: Thu, 5 May 2016 10:59:07 -0700 |
| 6 | Subject: [PATCH 2/2] Obey LDFLAGS for the link of libruby | 4 | Subject: [PATCH 2/3] Obey LDFLAGS for the link of libruby |
| 7 | 5 | ||
| 8 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | 6 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> |
| 7 | Upstream-Status: Pending | ||
| 9 | --- | 8 | --- |
| 10 | Makefile.in | 2 +- | 9 | Makefile.in | 2 +- |
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 | 11 | ||
| 13 | Index: ruby-2.5.0/Makefile.in | 12 | diff --git a/Makefile.in b/Makefile.in |
| 14 | =================================================================== | 13 | index fa1e19ef37..bbd07fa34b 100644 |
| 15 | --- ruby-2.5.0.orig/Makefile.in | 14 | --- a/Makefile.in |
| 16 | +++ ruby-2.5.0/Makefile.in | 15 | +++ b/Makefile.in |
| 17 | @@ -77,7 +77,7 @@ LIBS = @LIBS@ $(EXTLIBS) | 16 | @@ -109,7 +109,7 @@ MISSING = @LIBOBJS@ @ALLOCA@ |
| 18 | MISSING = @LIBOBJS@ @ALLOCA@ | ||
| 19 | ENABLE_SHARED = @ENABLE_SHARED@ | 17 | ENABLE_SHARED = @ENABLE_SHARED@ |
| 20 | LDSHARED = @LIBRUBY_LDSHARED@ | 18 | LDSHARED = @LIBRUBY_LDSHARED@ |
| 19 | DLDSHARED = @DLDSHARED@ | ||
| 21 | -DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG) | 20 | -DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG) |
| 22 | +DLDFLAGS = @LIBRUBY_DLDFLAGS@ @LDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG) | 21 | +DLDFLAGS = @LIBRUBY_DLDFLAGS@ @LDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG) |
| 23 | SOLIBS = @SOLIBS@ | 22 | SOLIBS = @SOLIBS@ |
| 24 | ENABLE_DEBUG_ENV = @ENABLE_DEBUG_ENV@ | 23 | ENABLE_DEBUG_ENV = @ENABLE_DEBUG_ENV@ |
| 25 | MAINLIBS = @MAINLIBS@ | 24 | MAINLIBS = @MAINLIBS@ |
| 25 | -- | ||
| 26 | 2.23.0.rc1 | ||
| 27 | |||
diff --git a/meta/recipes-devtools/ruby/ruby/0001-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch b/meta/recipes-devtools/ruby/ruby/0003-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch index 4cc1fa027f..1a8cff3e8c 100644 --- a/meta/recipes-devtools/ruby/ruby/0001-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch +++ b/meta/recipes-devtools/ruby/ruby/0003-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 3a8189530312e81d6c005c396565f985a47f3383 Mon Sep 17 00:00:00 2001 | 1 | From bd71b698bf733e6e93282cd2b1b93f51e1a33c7c Mon Sep 17 00:00:00 2001 |
| 2 | From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2 | From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> |
| 3 | Date: Fri, 8 Feb 2019 07:22:55 +0000 | 3 | Date: Fri, 8 Feb 2019 07:22:55 +0000 |
| 4 | Subject: [PATCH] configure.ac: check finite,isinf,isnan as macros first | 4 | Subject: [PATCH 3/3] configure.ac: check finite,isinf,isnan as macros first |
| 5 | MIME-Version: 1.0 | 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 | 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit | 7 | Content-Transfer-Encoding: 8bit |
| @@ -12,7 +12,6 @@ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67036 b2dd03c8-39d4-4d8f-98ff- | |||
| 12 | 12 | ||
| 13 | --- | 13 | --- |
| 14 | Upstream-Status: Backport [https://github.com/ruby/ruby/commit/74f94b3e6ebf15b76f3b357e754095412b006e94] | 14 | Upstream-Status: Backport [https://github.com/ruby/ruby/commit/74f94b3e6ebf15b76f3b357e754095412b006e94] |
| 15 | (modified so as to apply cleanly here) | ||
| 16 | Signed-off-by: André Draszik <andre.draszik@jci.com> | 15 | Signed-off-by: André Draszik <andre.draszik@jci.com> |
| 17 | --- | 16 | --- |
| 18 | aclocal.m4 | 1 + | 17 | aclocal.m4 | 1 + |
| @@ -22,19 +21,22 @@ Signed-off-by: André Draszik <andre.draszik@jci.com> | |||
| 22 | create mode 100644 tool/m4/ruby_replace_funcs.m4 | 21 | create mode 100644 tool/m4/ruby_replace_funcs.m4 |
| 23 | 22 | ||
| 24 | diff --git a/aclocal.m4 b/aclocal.m4 | 23 | diff --git a/aclocal.m4 b/aclocal.m4 |
| 25 | index 18ba297b05..2a907b3467 100644 | 24 | index b0fe3eb959..ed7d14ef63 100644 |
| 26 | --- a/aclocal.m4 | 25 | --- a/aclocal.m4 |
| 27 | +++ b/aclocal.m4 | 26 | +++ b/aclocal.m4 |
| 28 | @@ -13,3 +13,4 @@ | 27 | @@ -35,6 +35,7 @@ m4_include([tool/m4/ruby_func_attribute.m4]) |
| 29 | 28 | m4_include([tool/m4/ruby_mingw32.m4]) | |
| 30 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | 29 | m4_include([tool/m4/ruby_prepend_option.m4]) |
| 31 | m4_include([acinclude.m4]) | 30 | m4_include([tool/m4/ruby_prog_gnu_ld.m4]) |
| 32 | +m4_include([tool/m4/ruby_replace_funcs.m4]) | 31 | +m4_include([tool/m4/ruby_replace_funcs.m4]) |
| 32 | m4_include([tool/m4/ruby_replace_type.m4]) | ||
| 33 | m4_include([tool/m4/ruby_rm_recursive.m4]) | ||
| 34 | m4_include([tool/m4/ruby_setjmp_type.m4]) | ||
| 33 | diff --git a/configure.ac b/configure.ac | 35 | diff --git a/configure.ac b/configure.ac |
| 34 | index 8a7cee55b8..b97c5b3cc9 100644 | 36 | index 2c4d2888d2..2691da6a3c 100644 |
| 35 | --- a/configure.ac | 37 | --- a/configure.ac |
| 36 | +++ b/configure.ac | 38 | +++ b/configure.ac |
| 37 | @@ -1189,9 +1189,6 @@ main() | 39 | @@ -946,9 +946,6 @@ main() |
| 38 | ac_cv_func_fsync=yes | 40 | ac_cv_func_fsync=yes |
| 39 | ac_cv_func_seekdir=yes | 41 | ac_cv_func_seekdir=yes |
| 40 | ac_cv_func_telldir=yes | 42 | ac_cv_func_telldir=yes |
| @@ -44,7 +46,7 @@ index 8a7cee55b8..b97c5b3cc9 100644 | |||
| 44 | ac_cv_func_lchown=yes | 46 | ac_cv_func_lchown=yes |
| 45 | ac_cv_func_link=yes | 47 | ac_cv_func_link=yes |
| 46 | ac_cv_func_readlink=yes | 48 | ac_cv_func_readlink=yes |
| 47 | @@ -1239,9 +1236,6 @@ main() | 49 | @@ -999,9 +996,6 @@ main() |
| 48 | [netbsd*], [ LIBS="-lm $LIBS" | 50 | [netbsd*], [ LIBS="-lm $LIBS" |
| 49 | ], | 51 | ], |
| 50 | [dragonfly*], [ LIBS="-lm $LIBS" | 52 | [dragonfly*], [ LIBS="-lm $LIBS" |
| @@ -54,7 +56,7 @@ index 8a7cee55b8..b97c5b3cc9 100644 | |||
| 54 | ], | 56 | ], |
| 55 | [aix*],[ LIBS="-lm $LIBS" | 57 | [aix*],[ LIBS="-lm $LIBS" |
| 56 | ac_cv_func_round=no | 58 | ac_cv_func_round=no |
| 57 | @@ -2213,11 +2207,8 @@ AC_REPLACE_FUNCS(dup2) | 59 | @@ -1724,11 +1718,8 @@ AC_REPLACE_FUNCS(dup2) |
| 58 | AC_REPLACE_FUNCS(erf) | 60 | AC_REPLACE_FUNCS(erf) |
| 59 | AC_REPLACE_FUNCS(explicit_bzero) | 61 | AC_REPLACE_FUNCS(explicit_bzero) |
| 60 | AC_REPLACE_FUNCS(ffs) | 62 | AC_REPLACE_FUNCS(ffs) |
| @@ -65,8 +67,8 @@ index 8a7cee55b8..b97c5b3cc9 100644 | |||
| 65 | -AC_REPLACE_FUNCS(isnan) | 67 | -AC_REPLACE_FUNCS(isnan) |
| 66 | AC_REPLACE_FUNCS(lgamma_r) | 68 | AC_REPLACE_FUNCS(lgamma_r) |
| 67 | AC_REPLACE_FUNCS(memmove) | 69 | AC_REPLACE_FUNCS(memmove) |
| 68 | AC_REPLACE_FUNCS(nextafter) | 70 | AC_REPLACE_FUNCS(nan) |
| 69 | @@ -2229,6 +2220,10 @@ AC_REPLACE_FUNCS(strlcpy) | 71 | @@ -1741,6 +1732,10 @@ AC_REPLACE_FUNCS(strlcpy) |
| 70 | AC_REPLACE_FUNCS(strstr) | 72 | AC_REPLACE_FUNCS(strstr) |
| 71 | AC_REPLACE_FUNCS(tgamma) | 73 | AC_REPLACE_FUNCS(tgamma) |
| 72 | 74 | ||
diff --git a/meta/recipes-devtools/ruby/ruby/extmk.patch b/meta/recipes-devtools/ruby/ruby/extmk.patch deleted file mode 100644 index 404b9af7aa..0000000000 --- a/meta/recipes-devtools/ruby/ruby/extmk.patch +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | diff -ru ruby-1.8.7-p248.orig/ext/extmk.rb ruby-1.8.7-p248/ext/extmk.rb | ||
| 3 | --- ruby-1.8.7-p248.orig/ext/extmk.rb 2009-12-24 03:01:58.000000000 -0600 | ||
| 4 | +++ ruby-1.8.7-p248/ext/extmk.rb 2010-02-12 15:55:27.370061558 -0600 | ||
| 5 | @@ -413,8 +413,8 @@ def $mflags.defined?(var) | ||
| 6 | end | ||
| 7 | $ruby = [$ruby] | ||
| 8 | $ruby << "-I'$(topdir)'" | ||
| 9 | +$ruby << "-I'$(top_srcdir)/lib'" | ||
| 10 | unless CROSS_COMPILING | ||
| 11 | - $ruby << "-I'$(top_srcdir)/lib'" | ||
| 12 | $ruby << "-I'$(extout)/$(arch)'" << "-I'$(extout)/common'" if $extout | ||
| 13 | ENV["RUBYLIB"] = "-" | ||
| 14 | end | ||
| 15 | -- | ||
| 16 | |||
diff --git a/meta/recipes-devtools/ruby/ruby_2.5.5.bb b/meta/recipes-devtools/ruby/ruby_2.6.4.bb index 223b0371eb..4554487c0a 100644 --- a/meta/recipes-devtools/ruby/ruby_2.5.5.bb +++ b/meta/recipes-devtools/ruby/ruby_2.6.4.bb | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | require ruby.inc | 1 | require ruby.inc |
| 2 | 2 | ||
| 3 | SRC_URI += " \ | 3 | SRC_URI += " \ |
| 4 | file://0001-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch \ | 4 | file://0003-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch \ |
| 5 | file://run-ptest \ | 5 | file://run-ptest \ |
| 6 | " | 6 | " |
| 7 | 7 | ||
| 8 | SRC_URI[md5sum] = "7e156fb526b8f4bb1b30a3dd8a7ce400" | 8 | SRC_URI[md5sum] = "49b628cdb21db967d8a3f6ca6e222583" |
| 9 | SRC_URI[sha256sum] = "28a945fdf340e6ba04fc890b98648342e3cccfd6d223a48f3810572f11b2514c" | 9 | SRC_URI[sha256sum] = "4fc1d8ba75505b3797020a6ffc85a8bcff6adc4dabae343b6572bf281ee17937" |
| 10 | 10 | ||
| 11 | PACKAGECONFIG ??= "" | 11 | PACKAGECONFIG ??= "" |
| 12 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | 12 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" |
| @@ -15,8 +15,6 @@ PACKAGECONFIG[valgrind] = "--with-valgrind=yes, --with-valgrind=no, valgrind" | |||
| 15 | PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp" | 15 | PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp" |
| 16 | PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6," | 16 | PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6," |
| 17 | 17 | ||
| 18 | EXTRA_AUTORECONF += "--exclude=aclocal" | ||
| 19 | |||
| 20 | EXTRA_OECONF = "\ | 18 | EXTRA_OECONF = "\ |
| 21 | --disable-versioned-paths \ | 19 | --disable-versioned-paths \ |
| 22 | --disable-rpath \ | 20 | --disable-rpath \ |
| @@ -42,12 +40,6 @@ do_install_append_class-target () { | |||
| 42 | -e 's:${RECIPE_SYSROOT}::g' \ | 40 | -e 's:${RECIPE_SYSROOT}::g' \ |
| 43 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | 41 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ |
| 44 | ${D}$rbconfig_rb | 42 | ${D}$rbconfig_rb |
| 45 | |||
| 46 | # Find out created.rid from .installed.list | ||
| 47 | created_rid=`grep created.rid ${B}/.installed.list` | ||
| 48 | # Remove build host directories | ||
| 49 | sed -i -e 's:${WORKDIR}::g' ${D}$created_rid | ||
| 50 | |||
| 51 | } | 43 | } |
| 52 | 44 | ||
| 53 | do_install_ptest () { | 45 | do_install_ptest () { |
