diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-02-08 11:59:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-09 08:56:10 +0000 |
commit | e7893545113b0d0c6581c75ddabac6b681a4739f (patch) | |
tree | 5fea405fc481df05b7fd9e58ba0fbc94797a2422 /meta/recipes-devtools | |
parent | 612c8b8b12ad76b0b33271adecc323e06a43d131 (diff) | |
download | poky-e7893545113b0d0c6581c75ddabac6b681a4739f.tar.gz |
ruby: update 2.7.2 -> 3.0.0
Drop 0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch
as files removed upstream.
License-Update: formatting
Drop autoconf270.patch, as no longer needed with 3.0.0
(I verified against master-next which has the new autoconf).
(From OE-Core rev: 8fbf04053845aac24e0c0f1395051b60294e02a3)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/ruby/ruby.inc | 11 | ||||
-rw-r--r-- | meta/recipes-devtools/ruby/ruby/0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch | 38 | ||||
-rw-r--r-- | meta/recipes-devtools/ruby/ruby/0002-Obey-LDFLAGS-for-the-link-of-libruby.patch | 14 | ||||
-rw-r--r-- | meta/recipes-devtools/ruby/ruby/autoconf270.patch | 34 | ||||
-rw-r--r-- | meta/recipes-devtools/ruby/ruby/remove_has_include_macros.patch | 17 | ||||
-rw-r--r-- | meta/recipes-devtools/ruby/ruby_3.0.0.bb (renamed from meta/recipes-devtools/ruby/ruby_2.7.2.bb) | 5 |
6 files changed, 25 insertions, 94 deletions
diff --git a/meta/recipes-devtools/ruby/ruby.inc b/meta/recipes-devtools/ruby/ruby.inc index 7b6d4edc61..1cede8d47c 100644 --- a/meta/recipes-devtools/ruby/ruby.inc +++ b/meta/recipes-devtools/ruby/ruby.inc | |||
@@ -7,12 +7,11 @@ It is simple, straight-forward, and extensible. \ | |||
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-2-Clause | BSD-3-Clause | GPLv2 | ISC | MIT" | 9 | LICENSE = "Ruby | BSD-2-Clause | BSD-3-Clause | GPLv2 | ISC | MIT" |
10 | LIC_FILES_CHKSUM = "\ | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=5b8c87559868796979806100db3f3805 \ |
11 | file://COPYING;md5=5b8c87559868796979806100db3f3805 \ | 11 | file://BSDL;md5=8b50bc6de8f586dc66790ba11d064d75 \ |
12 | file://BSDL;md5=19aaf65c88a40b508d17ae4be539c4b5\ | 12 | file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
13 | file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263\ | 13 | file://LEGAL;md5=cfe5b0bc9f051b58c7e78db882ca5f9b \ |
14 | file://LEGAL;md5=2b6d62dc0d608f34d510ca3f428110ec \ | 14 | " |
15 | " | ||
16 | 15 | ||
17 | DEPENDS = "ruby-native zlib openssl libyaml gdbm readline libffi" | 16 | DEPENDS = "ruby-native zlib openssl libyaml gdbm readline libffi" |
18 | DEPENDS_class-native = "openssl-native libyaml-native readline-native zlib-native" | 17 | DEPENDS_class-native = "openssl-native libyaml-native readline-native zlib-native" |
diff --git a/meta/recipes-devtools/ruby/ruby/0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch b/meta/recipes-devtools/ruby/ruby/0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch deleted file mode 100644 index f316bed7bd..0000000000 --- a/meta/recipes-devtools/ruby/ruby/0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From eed7bc855fd8d232d4d203cc9027dd07cee8eca2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Wang Mingyu <wangmy@cn.fujitsu.com> | ||
3 | Date: Sat, 8 Feb 2020 15:16:14 +0800 | ||
4 | Subject: [PATCH] Modify shebang of libexec/y2racc and libexec/racc2y. | ||
5 | |||
6 | change /usr/local/bin/ruby to /usr/bin/env ruby. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> | ||
11 | --- | ||
12 | libexec/racc2y | 2 +- | ||
13 | libexec/y2racc | 2 +- | ||
14 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/libexec/racc2y b/libexec/racc2y | ||
17 | index f88d73ed2c..74e49cfa21 100755 | ||
18 | --- a/libexec/racc2y | ||
19 | +++ b/libexec/racc2y | ||
20 | @@ -1,4 +1,4 @@ | ||
21 | -#!/usr/local/bin/ruby | ||
22 | +#!/usr/bin/env ruby | ||
23 | # | ||
24 | # $Id$ | ||
25 | # | ||
26 | diff --git a/libexec/y2racc b/libexec/y2racc | ||
27 | index 7933f94153..36daf864e1 100755 | ||
28 | --- a/libexec/y2racc | ||
29 | +++ b/libexec/y2racc | ||
30 | @@ -1,4 +1,4 @@ | ||
31 | -#!/usr/local/bin/ruby | ||
32 | +#!/usr/bin/env ruby | ||
33 | # | ||
34 | # $Id$ | ||
35 | # | ||
36 | -- | ||
37 | 2.17.1 | ||
38 | |||
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 b31dee1128..4b954e439b 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,27 +1,25 @@ | |||
1 | From 6d608326970b1613633d7715ebb7d628dfcd16ee Mon Sep 17 00:00:00 2001 | 1 | From 07fd1ada322eda6c05ac45c08fc814976f31b596 Mon Sep 17 00:00:00 2001 |
2 | From: Christopher Larson <chris_larson@mentor.com> | 2 | From: Christopher Larson <chris_larson@mentor.com> |
3 | Date: Thu, 5 May 2016 10:59:07 -0700 | 3 | Date: Thu, 5 May 2016 10:59:07 -0700 |
4 | Subject: [PATCH 2/3] Obey LDFLAGS for the link of libruby | 4 | Subject: [PATCH] Obey LDFLAGS for the link of libruby |
5 | 5 | ||
6 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | 6 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> |
7 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
8 | |||
8 | --- | 9 | --- |
9 | template/Makefile.in | 2 +- | 10 | template/Makefile.in | 2 +- |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
11 | 12 | ||
12 | diff --git a/template/Makefile.in b/template/Makefile.in | 13 | diff --git a/template/Makefile.in b/template/Makefile.in |
13 | index fa1e19ef37..bbd07fa34b 100644 | 14 | index f5a3149..5cc75ae 100644 |
14 | --- a/template/Makefile.in | 15 | --- a/template/Makefile.in |
15 | +++ b/template/Makefile.in | 16 | +++ b/template/Makefile.in |
16 | @@ -109,7 +109,7 @@ MISSING = @LIBOBJS@ @ALLOCA@ | 17 | @@ -114,7 +114,7 @@ ENABLE_SHARED = @ENABLE_SHARED@ |
17 | ENABLE_SHARED = @ENABLE_SHARED@ | ||
18 | LDSHARED = @LIBRUBY_LDSHARED@ | 18 | LDSHARED = @LIBRUBY_LDSHARED@ |
19 | DLDSHARED = @DLDSHARED@ | 19 | DLDSHARED = @DLDSHARED@ |
20 | XDLDFLAGS = @DLDFLAGS@ | ||
20 | -DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG) | 21 | -DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG) |
21 | +DLDFLAGS = @LIBRUBY_DLDFLAGS@ @LDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG) | 22 | +DLDFLAGS = @LIBRUBY_DLDFLAGS@ @LDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG) |
22 | SOLIBS = @SOLIBS@ | 23 | SOLIBS = @SOLIBS@ |
23 | ENABLE_DEBUG_ENV = @ENABLE_DEBUG_ENV@ | 24 | ENABLE_DEBUG_ENV = @ENABLE_DEBUG_ENV@ |
24 | MAINLIBS = @MAINLIBS@ | 25 | MAINLIBS = @MAINLIBS@ |
25 | -- | ||
26 | 2.23.0.rc1 | ||
27 | |||
diff --git a/meta/recipes-devtools/ruby/ruby/autoconf270.patch b/meta/recipes-devtools/ruby/ruby/autoconf270.patch deleted file mode 100644 index 8d205bde43..0000000000 --- a/meta/recipes-devtools/ruby/ruby/autoconf270.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | This macro breaks under autoconf 2.70. Since we don't worry abot darwin or | ||
2 | openbsd builds, simply remove it. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | RP - 2021/1/28 | ||
6 | |||
7 | Index: ruby-2.7.2/configure.ac | ||
8 | =================================================================== | ||
9 | --- ruby-2.7.2.orig/configure.ac | ||
10 | +++ ruby-2.7.2/configure.ac | ||
11 | @@ -170,23 +170,6 @@ dnl orig_cxxflags="$cxxflags" | ||
12 | dnl cxxflags="$cxxflags "'${optflags} ${debugflags} ${warnflags}' | ||
13 | dnl ]) | ||
14 | |||
15 | -AS_CASE(["$host_os:$build_os"], | ||
16 | -[darwin*:darwin*], [ | ||
17 | - AC_CHECK_TOOLS(CC, [clang gcc cc]) | ||
18 | - # Following Apple deployed clang are broken | ||
19 | - # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported) | ||
20 | - # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn) | ||
21 | - # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) | ||
22 | - AS_IF([! $CC -E -xc - <<SRC >/dev/null], [ | ||
23 | - @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 | ||
24 | - @%:@error premature clang | ||
25 | - @%:@endif | ||
26 | -SRC | ||
27 | - AC_MSG_ERROR([clang version 3.0 or later is required]) | ||
28 | - ])], | ||
29 | -[openbsd*:openbsd*], [ | ||
30 | - AC_CHECK_TOOLS(CC, [cc]) | ||
31 | -]) | ||
32 | AS_IF([test x"${build}" != x"${host}"], [ | ||
33 | AC_CHECK_TOOL(CC, gcc) | ||
34 | ]) | ||
diff --git a/meta/recipes-devtools/ruby/ruby/remove_has_include_macros.patch b/meta/recipes-devtools/ruby/ruby/remove_has_include_macros.patch index a1e6330445..6e90a8ee77 100644 --- a/meta/recipes-devtools/ruby/ruby/remove_has_include_macros.patch +++ b/meta/recipes-devtools/ruby/ruby/remove_has_include_macros.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | Filter out __has_include* compiler defines | 1 | From 303fe0d20184203f1ac86d2a77b1447d47c8c29d Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 26 Jan 2020 11:27:40 -0800 | ||
4 | Subject: [PATCH] Filter out __has_include* compiler defines | ||
2 | 5 | ||
3 | They are internal to compiler and this header is later on includes in C | 6 | They are internal to compiler and this header is later on includes in C |
4 | files, but newer gcc >= 10 complains about it. | 7 | files, but newer gcc >= 10 complains about it. |
@@ -13,12 +16,18 @@ error in initial header file: | |||
13 | Upstream-Status: Pending | 16 | Upstream-Status: Pending |
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
15 | 18 | ||
19 | --- | ||
20 | common.mk | 2 ++ | ||
21 | 1 file changed, 2 insertions(+) | ||
22 | |||
23 | diff --git a/common.mk b/common.mk | ||
24 | index 7633050..422aa9c 100644 | ||
16 | --- a/common.mk | 25 | --- a/common.mk |
17 | +++ b/common.mk | 26 | +++ b/common.mk |
18 | @@ -221,6 +221,8 @@ $(TIMESTAMPDIR)/$(MJIT_HEADER:.h=)$(MJIT | 27 | @@ -233,6 +233,8 @@ $(TIMESTAMPDIR)/$(MJIT_HEADER:.h=)$(MJIT_HEADER_SUFFIX).time: probes.h vm.$(OBJE |
19 | $(TIMESTAMPDIR)/$(arch)/.time | ||
20 | $(ECHO) building $(@F:.time=.h) | 28 | $(ECHO) building $(@F:.time=.h) |
21 | $(Q) $(CPP) -DMJIT_HEADER $(MJIT_HEADER_FLAGS) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/vm.c $(CPPOUTFLAG)$(@F:.time=.h).new | 29 | $(MINIRUBY) $(tooldir)/mjit_tabs.rb "$(MJIT_TABS)" \ |
30 | $(CPP) -DMJIT_HEADER $(MJIT_HEADER_FLAGS) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/vm.c $(CPPOUTFLAG)$(@F:.time=.h).new | ||
22 | + $(Q)sed -i -e "/#define __has_include __has_include/d" $(@F:.time=.h).new | 31 | + $(Q)sed -i -e "/#define __has_include __has_include/d" $(@F:.time=.h).new |
23 | + $(Q)sed -i -e "/#define __has_include_next __has_include_next/d" $(@F:.time=.h).new | 32 | + $(Q)sed -i -e "/#define __has_include_next __has_include_next/d" $(@F:.time=.h).new |
24 | $(Q) $(IFCHANGE) "--timestamp=$@" $(@F:.time=.h) $(@F:.time=.h).new | 33 | $(Q) $(IFCHANGE) "--timestamp=$@" $(@F:.time=.h) $(@F:.time=.h).new |
diff --git a/meta/recipes-devtools/ruby/ruby_2.7.2.bb b/meta/recipes-devtools/ruby/ruby_3.0.0.bb index 8c338ebecf..5e143ee87f 100644 --- a/meta/recipes-devtools/ruby/ruby_2.7.2.bb +++ b/meta/recipes-devtools/ruby/ruby_3.0.0.bb | |||
@@ -5,13 +5,10 @@ DEPENDS_append_libc-musl = " libucontext" | |||
5 | SRC_URI += " \ | 5 | SRC_URI += " \ |
6 | file://remove_has_include_macros.patch \ | 6 | file://remove_has_include_macros.patch \ |
7 | file://run-ptest \ | 7 | file://run-ptest \ |
8 | file://0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch \ | ||
9 | file://0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch \ | 8 | file://0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch \ |
10 | file://autoconf270.patch \ | ||
11 | " | 9 | " |
12 | 10 | ||
13 | SRC_URI[md5sum] = "2d4a28dcfa38352a627a597f6057c465" | 11 | SRC_URI[sha256sum] = "a13ed141a1c18eb967aac1e33f4d6ad5f21be1ac543c344e0d6feeee54af8e28" |
14 | SRC_URI[sha256sum] = "6e5706d0d4ee4e1e2f883db9d768586b4d06567debea353c796ec45e8321c3d4" | ||
15 | 12 | ||
16 | PACKAGECONFIG ??= "" | 13 | PACKAGECONFIG ??= "" |
17 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | 14 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" |