diff options
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap_git.bb')
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.bb | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb index c4a6eef59a..68f5c76428 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.bb +++ b/meta/recipes-kernel/systemtap/systemtap_git.bb | |||
@@ -6,7 +6,10 @@ HOMEPAGE = "https://sourceware.org/systemtap/" | |||
6 | 6 | ||
7 | require systemtap_git.inc | 7 | require systemtap_git.inc |
8 | 8 | ||
9 | SRC_URI += "file://0001-improve-reproducibility-for-c-compiling.patch" | 9 | SRC_URI += " \ |
10 | file://0001-improve-reproducibility-for-c-compiling.patch \ | ||
11 | file://0001-staprun-address-ncurses-6.3-failures.patch \ | ||
12 | " | ||
10 | 13 | ||
11 | DEPENDS = "elfutils" | 14 | DEPENDS = "elfutils" |
12 | 15 | ||
@@ -21,58 +24,62 @@ STAP_DOCS ?= "--disable-docs --disable-publican --disable-refdocs" | |||
21 | 24 | ||
22 | EXTRA_OECONF += "${STAP_DOCS} " | 25 | EXTRA_OECONF += "${STAP_DOCS} " |
23 | 26 | ||
24 | PACKAGECONFIG ??= "translator sqlite monitor python3-probes" | 27 | PACKAGECONFIG ??= "translator sqlite monitor python3-probes ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" |
25 | PACKAGECONFIG[translator] = "--enable-translator,--disable-translator,boost,bash" | 28 | PACKAGECONFIG[translator] = "--enable-translator,--disable-translator,boost,bash" |
26 | PACKAGECONFIG[libvirt] = "--enable-libvirt,--disable-libvirt,libvirt" | 29 | PACKAGECONFIG[libvirt] = "--enable-libvirt,--disable-libvirt,libvirt" |
27 | PACKAGECONFIG[sqlite] = "--enable-sqlite,--disable-sqlite,sqlite3" | 30 | PACKAGECONFIG[sqlite] = "--enable-sqlite,--disable-sqlite,sqlite3" |
28 | PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor,ncurses json-c" | 31 | PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor,ncurses json-c" |
29 | PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes,python3-setuptools-native" | 32 | PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes,python3-setuptools-native" |
33 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod" | ||
30 | 34 | ||
31 | inherit autotools gettext pkgconfig systemd | 35 | inherit autotools gettext pkgconfig systemd |
32 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3-probes', 'distutils3-base', '', d)} | 36 | inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python3-probes', 'setuptools3-base', '', d)} |
37 | |||
38 | # | ../git/elaborate.cxx:2601:21: error: storing the address of local variable 'sym' in '*s.systemtap_session::symbol_resolver' [-Werror=dangling-pointer=] | ||
39 | CXXFLAGS += "-Wno-dangling-pointer" | ||
33 | 40 | ||
34 | # exporter comes with python3-probes | 41 | # exporter comes with python3-probes |
35 | PACKAGES =+ "${PN}-exporter" | 42 | PACKAGES =+ "${PN}-exporter" |
36 | FILES_${PN}-exporter = "${sysconfdir}/stap-exporter/* \ | 43 | FILES:${PN}-exporter = "${sysconfdir}/stap-exporter/* \ |
37 | ${sysconfdir}/sysconfig/stap-exporter \ | 44 | ${sysconfdir}/sysconfig/stap-exporter \ |
38 | ${systemd_unitdir}/system/stap-exporter.service \ | 45 | ${systemd_system_unitdir}/stap-exporter.service \ |
39 | ${sbindir}/stap-exporter" | 46 | ${sbindir}/stap-exporter" |
40 | RDEPENDS_${PN}-exporter = "${PN} python3-core python3-netclient" | 47 | RDEPENDS:${PN}-exporter = "${PN} python3-core python3-netclient" |
41 | SYSTEMD_SERVICE_${PN}-exporter = "stap-exporter.service" | 48 | SYSTEMD_SERVICE:${PN}-exporter = "stap-exporter.service" |
42 | 49 | ||
43 | PACKAGES =+ "${PN}-runtime" | 50 | PACKAGES =+ "${PN}-runtime" |
44 | FILES_${PN}-runtime = "\ | 51 | FILES:${PN}-runtime = "\ |
45 | ${bindir}/staprun \ | 52 | ${bindir}/staprun \ |
46 | ${bindir}/stap-merge \ | 53 | ${bindir}/stap-merge \ |
47 | ${bindir}/stapsh \ | 54 | ${bindir}/stapsh \ |
48 | ${libexecdir}/${BPN}/stapio \ | 55 | ${libexecdir}/${BPN}/stapio \ |
49 | " | 56 | " |
50 | RDEPENDS_${PN}_class-target += "${PN}-runtime" | 57 | RDEPENDS:${PN}:class-target += "${PN}-runtime" |
51 | 58 | ||
52 | PACKAGES =+ "${PN}-examples" | 59 | PACKAGES =+ "${PN}-examples" |
53 | FILES_${PN}-examples = "${datadir}/${BPN}/examples/" | 60 | FILES:${PN}-examples = "${datadir}/${BPN}/examples/" |
54 | RDEPENDS_${PN}-examples += "${PN}" | 61 | RDEPENDS:${PN}-examples += "${PN}" |
55 | 62 | ||
56 | # don't complain that some examples involve bash, perl, php... | 63 | # don't complain that some examples involve bash, perl, php... |
57 | INSANE_SKIP_${PN}-examples += "file-rdeps" | 64 | INSANE_SKIP:${PN}-examples += "file-rdeps" |
58 | 65 | ||
59 | PACKAGES =+ "${PN}-python" | 66 | PACKAGES =+ "${PN}-python" |
60 | FILES_${PN}-python += "\ | 67 | FILES:${PN}-python += "\ |
61 | ${bindir}/dtrace \ | 68 | ${bindir}/dtrace \ |
62 | ${libdir}/python*/ \ | 69 | ${libdir}/python*/ \ |
63 | ${libexecdir}/${BPN}/python/ \ | 70 | ${libexecdir}/${BPN}/python/ \ |
64 | " | 71 | " |
65 | # python material requires sdt headers | 72 | # python material requires sdt headers |
66 | RDEPENDS_${PN}-python += "${PN}-dev python3-core" | 73 | RDEPENDS:${PN}-python += "${PN}-dev python3-core" |
67 | INSANE_SKIP_${PN}-python += "dev-deps" | 74 | INSANE_SKIP:${PN}-python += "dev-deps" |
68 | 75 | ||
69 | do_configure_prepend () { | 76 | do_configure:prepend () { |
70 | # Improve reproducibility for c++ object files | 77 | # Improve reproducibility for c++ object files |
71 | reltivepath="${@os.path.relpath(d.getVar('STAGING_INCDIR'), d.getVar('S'))}" | 78 | reltivepath="${@os.path.relpath(d.getVar('STAGING_INCDIR'), d.getVar('S'))}" |
72 | sed -i "s:@RELATIVE_STAGING_INCDIR@:$reltivepath:g" ${S}/stringtable.h | 79 | sed -i "s:@RELATIVE_STAGING_INCDIR@:$reltivepath:g" ${S}/stringtable.h |
73 | } | 80 | } |
74 | 81 | ||
75 | do_install_append () { | 82 | do_install:append () { |
76 | if [ ! -f ${D}${bindir}/stap ]; then | 83 | if [ ! -f ${D}${bindir}/stap ]; then |
77 | # translator disabled case, need to leave only minimal runtime | 84 | # translator disabled case, need to leave only minimal runtime |
78 | rm -rf ${D}${datadir}/${PN} | 85 | rm -rf ${D}${datadir}/${PN} |