summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/ruby/ruby.inc6
-rw-r--r--meta/recipes-devtools/ruby/ruby/0001-extmk-fix-cross-compilation-of-external-gems.patch34
-rw-r--r--meta/recipes-devtools/ruby/ruby/0002-Obey-LDFLAGS-for-the-link-of-libruby.patch22
-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.patch16
-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"
7HOMEPAGE = "http://www.ruby-lang.org/" 7HOMEPAGE = "http://www.ruby-lang.org/"
8SECTION = "devel/ruby" 8SECTION = "devel/ruby"
9LICENSE = "Ruby | BSD | GPLv2" 9LICENSE = "Ruby | BSD-2-Clause | BSD-3-Clause | GPLv2 | ISC | MIT"
10LIC_FILES_CHKSUM = "\ 10LIC_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
17DEPENDS = "ruby-native zlib openssl tcl libyaml gdbm readline libffi" 17DEPENDS = "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
20SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}" 20SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}"
21SRC_URI = "http://cache.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \ 21SRC_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 "
25UPSTREAM_CHECK_URI = "https://www.ruby-lang.org/en/downloads/" 25UPSTREAM_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 @@
1From a6e12b25a54d112c899b70c89c0bec9c5e5ebf3c Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 30 Sep 2019 16:57:01 +0100
4Subject: [PATCH 1/3] extmk: fix cross-compilation of external gems
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Note that I (André) didn't actually write this patch, I
10only updated it so that git-am works.
11
12Upstream-Status: Pending
13Signed-off-by: André Draszik <andre.draszik@jci.com>
14---
15 ext/extmk.rb | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/ext/extmk.rb b/ext/extmk.rb
19index 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--
332.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 @@
1Upstream-Status: Pending 1From 6d608326970b1613633d7715ebb7d628dfcd16ee Mon Sep 17 00:00:00 2001
2
3From 306e95a9818d39d3349075aac9609e062b0f19ce Mon Sep 17 00:00:00 2001
4From: Christopher Larson <chris_larson@mentor.com> 2From: Christopher Larson <chris_larson@mentor.com>
5Date: Thu, 5 May 2016 10:59:07 -0700 3Date: Thu, 5 May 2016 10:59:07 -0700
6Subject: [PATCH 2/2] Obey LDFLAGS for the link of libruby 4Subject: [PATCH 2/3] Obey LDFLAGS for the link of libruby
7 5
8Signed-off-by: Christopher Larson <chris_larson@mentor.com> 6Signed-off-by: Christopher Larson <chris_larson@mentor.com>
7Upstream-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
13Index: ruby-2.5.0/Makefile.in 12diff --git a/Makefile.in b/Makefile.in
14=================================================================== 13index 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--
262.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 @@
1From 3a8189530312e81d6c005c396565f985a47f3383 Mon Sep 17 00:00:00 2001 1From bd71b698bf733e6e93282cd2b1b93f51e1a33c7c Mon Sep 17 00:00:00 2001
2From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> 2From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
3Date: Fri, 8 Feb 2019 07:22:55 +0000 3Date: Fri, 8 Feb 2019 07:22:55 +0000
4Subject: [PATCH] configure.ac: check finite,isinf,isnan as macros first 4Subject: [PATCH 3/3] configure.ac: check finite,isinf,isnan as macros first
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-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---
14Upstream-Status: Backport [https://github.com/ruby/ruby/commit/74f94b3e6ebf15b76f3b357e754095412b006e94] 14Upstream-Status: Backport [https://github.com/ruby/ruby/commit/74f94b3e6ebf15b76f3b357e754095412b006e94]
15(modified so as to apply cleanly here)
16Signed-off-by: André Draszik <andre.draszik@jci.com> 15Signed-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
24diff --git a/aclocal.m4 b/aclocal.m4 23diff --git a/aclocal.m4 b/aclocal.m4
25index 18ba297b05..2a907b3467 100644 24index 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])
33diff --git a/configure.ac b/configure.ac 35diff --git a/configure.ac b/configure.ac
34index 8a7cee55b8..b97c5b3cc9 100644 36index 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 @@
1Upstream-Status: Pending
2diff -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 @@
1require ruby.inc 1require ruby.inc
2 2
3SRC_URI += " \ 3SRC_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
8SRC_URI[md5sum] = "7e156fb526b8f4bb1b30a3dd8a7ce400" 8SRC_URI[md5sum] = "49b628cdb21db967d8a3f6ca6e222583"
9SRC_URI[sha256sum] = "28a945fdf340e6ba04fc890b98648342e3cccfd6d223a48f3810572f11b2514c" 9SRC_URI[sha256sum] = "4fc1d8ba75505b3797020a6ffc85a8bcff6adc4dabae343b6572bf281ee17937"
10 10
11PACKAGECONFIG ??= "" 11PACKAGECONFIG ??= ""
12PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" 12PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
@@ -15,8 +15,6 @@ PACKAGECONFIG[valgrind] = "--with-valgrind=yes, --with-valgrind=no, valgrind"
15PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp" 15PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp"
16PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6," 16PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6,"
17 17
18EXTRA_AUTORECONF += "--exclude=aclocal"
19
20EXTRA_OECONF = "\ 18EXTRA_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
53do_install_ptest () { 45do_install_ptest () {