diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2018-07-20 17:13:50 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-26 13:16:31 +0100 |
commit | 806a8626c3fb5020666152b295f12541f5f61ffd (patch) | |
tree | 1b651aabbc43457530806435bcb0776e5a1881b6 /meta/recipes-kernel/systemtap/systemtap_git.bb | |
parent | a405383e63c35d7b56108f192ca74755b122a639 (diff) | |
download | openembedded-core-contrib-806a8626c3fb5020666152b295f12541f5f61ffd.tar.gz |
systemtap: improve reproducibility
- Fix build path issue of .pyc files:
Supply "--root" directory to the "install" command.
- Fix build path issue of c++ object files:
Use relative dir to include header string_ref.
- Fix build path issue of c library generated by distutils:
Add OE's CFLAGS which contains `-fdebug-prefix-map' options
to setup.py
[YOCTO #12528]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap_git.bb')
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb index b280f583e2..0b7833e901 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.bb +++ b/meta/recipes-kernel/systemtap/systemtap_git.bb @@ -3,6 +3,8 @@ HOMEPAGE = "https://sourceware.org/systemtap/" require systemtap_git.inc +SRC_URI += "file://0001-improve-reproducibility-for-c-compiling.patch" + DEPENDS = "elfutils" EXTRA_OECONF += "--with-libelf=${STAGING_DIR_TARGET} --without-rpm \ @@ -25,6 +27,12 @@ PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes, inherit autotools gettext pkgconfig distutils3-base +do_configure_prepend () { + # Improve reproducibility for c++ object files + reltivepath="${@os.path.relpath(d.getVar('STAGING_INCDIR'), d.getVar('S'))}" + sed -i "s:@RELATIVE_STAGING_INCDIR@:$reltivepath:g" ${S}/stringtable.h +} + do_install_append () { if [ ! -f ${D}${bindir}/stap ]; then # translator disabled case, need to leave only minimal runtime |