diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2018-08-27 23:31:28 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-29 10:42:51 +0100 |
commit | c0d181dc93353cbe72e712f3f1c0e6ae6c50f5d2 (patch) | |
tree | ee2edd4d2e46b5abe4c4bd905687e6e501986b4a /meta/recipes-devtools/ruby | |
parent | ea2f74e9a780f76cb4c86dadc97ce32af0f96d69 (diff) | |
download | poky-c0d181dc93353cbe72e712f3f1c0e6ae6c50f5d2.tar.gz |
ruby: improve reproducibility
Find out rbconfig.rb and created.rid from ${B}/.installed.list
and remove build host directories
- For rbconfig.rb, parse it like python's _sysconfigdata.py
[snip rbconfig.rb]
26 CONFIG["INSTALL"] = 'install -c'
[snip rbconfig.rb]
- For created.rid, it records file created time, just strip ${WORKDIR} prefix.
[snip created.rid]
840 /ruby-2.5.1/doc/maintainers.rdoc Fri, 22 Dec 2017 23:08:05 +0000
[snip created.rid]
(From OE-Core rev: 853e0499be449c71378c087e08b1926be8e2ac87)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.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_2.5.1.bb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_2.5.1.bb b/meta/recipes-devtools/ruby/ruby_2.5.1.bb index af2739a43d..1197323e90 100644 --- a/meta/recipes-devtools/ruby/ruby_2.5.1.bb +++ b/meta/recipes-devtools/ruby/ruby_2.5.1.bb | |||
@@ -35,6 +35,26 @@ do_install() { | |||
35 | oe_runmake 'DESTDIR=${D}' install | 35 | oe_runmake 'DESTDIR=${D}' install |
36 | } | 36 | } |
37 | 37 | ||
38 | do_install_append_class-target () { | ||
39 | # Find out rbconfig.rb from .installed.list | ||
40 | rbconfig_rb=`grep rbconfig.rb ${B}/.installed.list` | ||
41 | # Remove build host directories | ||
42 | sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \ | ||
43 | -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ | ||
44 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
45 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
46 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
47 | -e 's:${RECIPE_SYSROOT}::g' \ | ||
48 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
49 | ${D}$rbconfig_rb | ||
50 | |||
51 | # Find out created.rid from .installed.list | ||
52 | created_rid=`grep created.rid ${B}/.installed.list` | ||
53 | # Remove build host directories | ||
54 | sed -i -e 's:${WORKDIR}::g' ${D}$created_rid | ||
55 | |||
56 | } | ||
57 | |||
38 | PACKAGES =+ "${PN}-ri-docs ${PN}-rdoc" | 58 | PACKAGES =+ "${PN}-ri-docs ${PN}-rdoc" |
39 | 59 | ||
40 | SUMMARY_${PN}-ri-docs = "ri (Ruby Interactive) documentation for the Ruby standard library" | 60 | SUMMARY_${PN}-ri-docs = "ri (Ruby Interactive) documentation for the Ruby standard library" |