diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-09-02 11:47:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-02 15:58:26 +0100 |
commit | 5974df19831057700979d3f6f924dbfdc99cbb07 (patch) | |
tree | 1eb43482cef3a92ba65d613486c935718a0eeebf /meta/recipes-devtools/ruby | |
parent | 2bdc042d9c782ce87c4bc70c4b04eacfaec549d4 (diff) | |
download | poky-5974df19831057700979d3f6f924dbfdc99cbb07.tar.gz |
ruby: drop capstone support
Upstream dropped capstone support and this also causing us
reproducibility issues.
(From OE-Core rev: d2496a904a7099ef0de818180820ad7b40843a08)
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ruby')
-rw-r--r-- | meta/recipes-devtools/ruby/ruby/0001-Remove-dependency-on-libcapstone.patch | 36 | ||||
-rw-r--r-- | meta/recipes-devtools/ruby/ruby_3.1.2.bb | 2 |
2 files changed, 37 insertions, 1 deletions
diff --git a/meta/recipes-devtools/ruby/ruby/0001-Remove-dependency-on-libcapstone.patch b/meta/recipes-devtools/ruby/ruby/0001-Remove-dependency-on-libcapstone.patch new file mode 100644 index 0000000000..5d0f8fcc09 --- /dev/null +++ b/meta/recipes-devtools/ruby/ruby/0001-Remove-dependency-on-libcapstone.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 222203297966f312109e8eaa2520f2cf2f59c09d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alan Wu <XrXr@users.noreply.github.com> | ||
3 | Date: Thu, 31 Mar 2022 17:26:28 -0400 | ||
4 | Subject: [PATCH] Remove dependency on libcapstone | ||
5 | |||
6 | We have received reports of build failures due to this configuration | ||
7 | check modifying compile flags. Since only YJIT devs use this library | ||
8 | we can remove it to make Ruby easier to build for users. | ||
9 | |||
10 | See: https://github.com/rbenv/ruby-build/discussions/1933 | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | --- | ||
14 | configure.ac | 9 --------- | ||
15 | 1 file changed, 9 deletions(-) | ||
16 | |||
17 | Index: ruby-3.1.2/configure.ac | ||
18 | =================================================================== | ||
19 | --- ruby-3.1.2.orig/configure.ac | ||
20 | +++ ruby-3.1.2/configure.ac | ||
21 | @@ -1244,15 +1244,6 @@ AC_CHECK_LIB(dl, dlopen) # Dynamic linki | ||
22 | AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX | ||
23 | AC_CHECK_LIB(socket, shutdown) # SunOS/Solaris | ||
24 | |||
25 | -if pkg-config --exists capstone; then | ||
26 | - CAPSTONE_CFLAGS=`pkg-config --cflags capstone` | ||
27 | - CAPSTONE_LIB_L=`pkg-config --libs-only-L capstone` | ||
28 | - LDFLAGS="$LDFLAGS $CAPSTONE_LIB_L" | ||
29 | - CFLAGS="$CFLAGS $CAPSTONE_CFLAGS" | ||
30 | -fi | ||
31 | - | ||
32 | -AC_CHECK_LIB(capstone, cs_open) # Capstone disassembler for debugging YJIT | ||
33 | - | ||
34 | dnl Checks for header files. | ||
35 | AC_HEADER_DIRENT | ||
36 | dnl AC_HEADER_STDC has been checked in AC_USE_SYSTEM_EXTENSIONS | ||
diff --git a/meta/recipes-devtools/ruby/ruby_3.1.2.bb b/meta/recipes-devtools/ruby/ruby_3.1.2.bb index 6fc1f53b18..387bfa9b44 100644 --- a/meta/recipes-devtools/ruby/ruby_3.1.2.bb +++ b/meta/recipes-devtools/ruby/ruby_3.1.2.bb | |||
@@ -12,6 +12,7 @@ SRC_URI += " \ | |||
12 | file://0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch \ | 12 | file://0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch \ |
13 | file://0006-Make-gemspecs-reproducible.patch \ | 13 | file://0006-Make-gemspecs-reproducible.patch \ |
14 | file://0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch \ | 14 | file://0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch \ |
15 | file://0001-Remove-dependency-on-libcapstone.patch \ | ||
15 | " | 16 | " |
16 | 17 | ||
17 | SRC_URI[sha256sum] = "61843112389f02b735428b53bb64cf988ad9fb81858b8248e22e57336f24a83e" | 18 | SRC_URI[sha256sum] = "61843112389f02b735428b53bb64cf988ad9fb81858b8248e22e57336f24a83e" |
@@ -25,7 +26,6 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6," | |||
25 | # rdoc is off by default due to non-reproducibility reported in | 26 | # rdoc is off by default due to non-reproducibility reported in |
26 | # https://bugs.ruby-lang.org/issues/18456 | 27 | # https://bugs.ruby-lang.org/issues/18456 |
27 | PACKAGECONFIG[rdoc] = "--enable-install-rdoc,--disable-install-rdoc," | 28 | PACKAGECONFIG[rdoc] = "--enable-install-rdoc,--disable-install-rdoc," |
28 | PACKAGECONFIG[capstone] = "--with-capstone=yes, --with-capstone=no" | ||
29 | 29 | ||
30 | EXTRA_OECONF = "\ | 30 | EXTRA_OECONF = "\ |
31 | --disable-versioned-paths \ | 31 | --disable-versioned-paths \ |