diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-12-13 12:11:14 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-18 19:48:00 +0000 |
| commit | ed8f8db84c7cc47d007038effa1481b260921502 (patch) | |
| tree | 2a8050baa235532505868b30084eefc57c8e2914 /meta/recipes-devtools/ruby/ruby_3.1.2.bb | |
| parent | 9b7cef5fc21f7d28dbf9e327fc7bbd3693619298 (diff) | |
| download | poky-ed8f8db84c7cc47d007038effa1481b260921502.tar.gz | |
ruby: update 3.1.2 -> 3.1.3
(From OE-Core rev: 402254a5f841520b132508c21465111d33b6eb1a)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
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/ruby_3.1.2.bb')
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby_3.1.2.bb | 143 |
1 files changed, 0 insertions, 143 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_3.1.2.bb b/meta/recipes-devtools/ruby/ruby_3.1.2.bb deleted file mode 100644 index 0115daf22a..0000000000 --- a/meta/recipes-devtools/ruby/ruby_3.1.2.bb +++ /dev/null | |||
| @@ -1,143 +0,0 @@ | |||
| 1 | SUMMARY = "An interpreter of object-oriented scripting language" | ||
| 2 | DESCRIPTION = "Ruby is an interpreted scripting language for quick \ | ||
| 3 | and easy object-oriented programming. It has many features to process \ | ||
| 4 | text files and to do system management tasks (as in Perl). \ | ||
| 5 | It is simple, straight-forward, and extensible. \ | ||
| 6 | " | ||
| 7 | HOMEPAGE = "http://www.ruby-lang.org/" | ||
| 8 | SECTION = "devel/ruby" | ||
| 9 | LICENSE = "Ruby | BSD-2-Clause | BSD-3-Clause | GPL-2.0-only | ISC | MIT" | ||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=5b8c87559868796979806100db3f3805 \ | ||
| 11 | file://BSDL;md5=8b50bc6de8f586dc66790ba11d064d75 \ | ||
| 12 | file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 13 | file://LEGAL;md5=f260190bc1e92e363f0ee3c0463d4c7c \ | ||
| 14 | " | ||
| 15 | |||
| 16 | DEPENDS = "zlib openssl libyaml gdbm readline libffi" | ||
| 17 | DEPENDS:append:class-target = " ruby-native" | ||
| 18 | |||
| 19 | SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
| 20 | SRC_URI = "http://cache.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \ | ||
| 21 | file://0001-extmk-fix-cross-compilation-of-external-gems.patch \ | ||
| 22 | file://0002-Obey-LDFLAGS-for-the-link-of-libruby.patch \ | ||
| 23 | file://remove_has_include_macros.patch \ | ||
| 24 | file://run-ptest \ | ||
| 25 | file://0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch \ | ||
| 26 | file://0002-template-Makefile.in-filter-out-f-prefix-map.patch \ | ||
| 27 | file://0003-rdoc-build-reproducible-documentation.patch \ | ||
| 28 | file://0004-lib-mkmf.rb-sort-list-of-object-files-in-generated-M.patch \ | ||
| 29 | file://0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch \ | ||
| 30 | file://0006-Make-gemspecs-reproducible.patch \ | ||
| 31 | file://0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch \ | ||
| 32 | file://0001-Remove-dependency-on-libcapstone.patch \ | ||
| 33 | " | ||
| 34 | UPSTREAM_CHECK_URI = "https://www.ruby-lang.org/en/downloads/" | ||
| 35 | |||
| 36 | inherit autotools ptest pkgconfig | ||
| 37 | |||
| 38 | |||
| 39 | # This snippet lets compiled extensions which rely on external libraries, | ||
| 40 | # such as zlib, compile properly. If we don't do this, then when extmk.rb | ||
| 41 | # runs, it uses the native libraries instead of the target libraries, and so | ||
| 42 | # none of the linking operations succeed -- which makes extconf.rb think | ||
| 43 | # that the libraries aren't available and hence that the extension can't be | ||
| 44 | # built. | ||
| 45 | |||
| 46 | do_configure:prepend() { | ||
| 47 | sed -i "s#%%TARGET_CFLAGS%%#$CFLAGS#; s#%%TARGET_LDFLAGS%%#$LDFLAGS#" ${S}/common.mk | ||
| 48 | rm -rf ${S}/ruby/ | ||
| 49 | } | ||
| 50 | |||
| 51 | DEPENDS:append:libc-musl = " libucontext" | ||
| 52 | |||
| 53 | SRC_URI[sha256sum] = "61843112389f02b735428b53bb64cf988ad9fb81858b8248e22e57336f24a83e" | ||
| 54 | |||
| 55 | PACKAGECONFIG ??= "" | ||
| 56 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | ||
| 57 | |||
| 58 | PACKAGECONFIG[valgrind] = "--with-valgrind=yes, --with-valgrind=no, valgrind" | ||
| 59 | PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp" | ||
| 60 | PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6," | ||
| 61 | # rdoc is off by default due to non-reproducibility reported in | ||
| 62 | # https://bugs.ruby-lang.org/issues/18456 | ||
| 63 | PACKAGECONFIG[rdoc] = "--enable-install-rdoc,--disable-install-rdoc," | ||
| 64 | |||
| 65 | EXTRA_OECONF = "\ | ||
| 66 | --disable-versioned-paths \ | ||
| 67 | --disable-rpath \ | ||
| 68 | --disable-dtrace \ | ||
| 69 | --enable-shared \ | ||
| 70 | --enable-load-relative \ | ||
| 71 | --with-pkg-config=pkg-config \ | ||
| 72 | --with-static-linked-ext \ | ||
| 73 | " | ||
| 74 | |||
| 75 | EXTRA_OECONF:append:libc-musl = "\ | ||
| 76 | ac_cv_func_isnan=yes \ | ||
| 77 | ac_cv_func_isinf=yes \ | ||
| 78 | " | ||
| 79 | |||
| 80 | PARALLEL_MAKEINST = "" | ||
| 81 | |||
| 82 | do_install:append:class-target () { | ||
| 83 | # Find out rbconfig.rb from .installed.list | ||
| 84 | rbconfig_rb=`grep rbconfig.rb ${B}/.installed.list` | ||
| 85 | # Remove build host directories | ||
| 86 | sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \ | ||
| 87 | -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ | ||
| 88 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
| 89 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
| 90 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
| 91 | -e 's:${RECIPE_SYSROOT}::g' \ | ||
| 92 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
| 93 | ${D}$rbconfig_rb | ||
| 94 | |||
| 95 | sed -i -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
| 96 | ${D}${libdir}/pkgconfig/*.pc | ||
| 97 | |||
| 98 | # logs that may contain host-specific paths | ||
| 99 | find ${D} -name gem_make.out -delete | ||
| 100 | } | ||
| 101 | |||
| 102 | do_install_ptest () { | ||
| 103 | cp -rf ${S}/test ${D}${PTEST_PATH}/ | ||
| 104 | |||
| 105 | install -D ${S}/tool/test/runner.rb ${D}${PTEST_PATH}/tool/test/runner.rb | ||
| 106 | cp -r ${S}/tool/lib ${D}${PTEST_PATH}/tool/ | ||
| 107 | mkdir -p ${D}${PTEST_PATH}/lib | ||
| 108 | cp -r ${S}/lib/did_you_mean ${S}/lib/rdoc ${D}${PTEST_PATH}/lib | ||
| 109 | |||
| 110 | # install test-binaries | ||
| 111 | # These .so files have sporadic reproducibility fails as seen here: | ||
| 112 | # https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20220107-rm1diuww/packages/diff-html/ | ||
| 113 | # As they are needed only in ruby-ptest, and that is currently altogether disabled, let's take them out. | ||
| 114 | # If someone wants to look at where the non-determinism comes from, one possible reason is use of | ||
| 115 | # -rdynamic -Wl,-export-dynamic | ||
| 116 | #find $(find ./.ext -path '*/-test-') -name '*.so' -print0 \ | ||
| 117 | # | tar --no-recursion --null -T - --no-same-owner --preserve-permissions -cf - \ | ||
| 118 | # | tar -C ${D}${libdir}/ruby/${SHRT_VER}.0/ --no-same-owner --preserve-permissions --strip-components=2 -xf - | ||
| 119 | # adjust path to not assume build directory layout | ||
| 120 | sed -e 's|File.expand_path(.*\.\./bin/erb[^)]*|File.expand_path("${bindir}/erb"|g' \ | ||
| 121 | -i ${D}${PTEST_PATH}/test/erb/test_erb_command.rb | ||
| 122 | |||
| 123 | cp -r ${S}/include ${D}/${libdir}/ruby/ | ||
| 124 | } | ||
| 125 | |||
| 126 | PACKAGES =+ "${PN}-ri-docs ${PN}-rdoc" | ||
| 127 | |||
| 128 | SUMMARY:${PN}-ri-docs = "ri (Ruby Interactive) documentation for the Ruby standard library" | ||
| 129 | RDEPENDS:${PN}-ri-docs = "${PN}" | ||
| 130 | FILES:${PN}-ri-docs += "${datadir}/ri" | ||
| 131 | |||
| 132 | SUMMARY:${PN}-rdoc = "RDoc documentation generator from Ruby source" | ||
| 133 | RDEPENDS:${PN}-rdoc = "${PN}" | ||
| 134 | FILES:${PN}-rdoc += "${libdir}/ruby/*/rdoc ${bindir}/rdoc" | ||
| 135 | |||
| 136 | FILES:${PN} += "${datadir}/rubygems" | ||
| 137 | |||
| 138 | FILES:${PN}-ptest:append:class-target = "\ | ||
| 139 | ${libdir}/ruby/include \ | ||
| 140 | ${libdir}/ruby/${SHRT_VER}.0/*/-test- \ | ||
| 141 | " | ||
| 142 | |||
| 143 | BBCLASSEXTEND = "native" | ||
