diff options
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap_git.bb')
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.bb | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb deleted file mode 100644 index c4a6eef59a..0000000000 --- a/meta/recipes-kernel/systemtap/systemtap_git.bb +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | SUMMARY = "Script-directed dynamic tracing and performance analysis tool for Linux" | ||
2 | DESCRIPTION = "It provides free software infrastructure to simplify the \ | ||
3 | gathering of information about the running Linux system. This assists \ | ||
4 | diagnosis of a performance or functional problem." | ||
5 | HOMEPAGE = "https://sourceware.org/systemtap/" | ||
6 | |||
7 | require systemtap_git.inc | ||
8 | |||
9 | SRC_URI += "file://0001-improve-reproducibility-for-c-compiling.patch" | ||
10 | |||
11 | DEPENDS = "elfutils" | ||
12 | |||
13 | EXTRA_OECONF += "--with-libelf=${STAGING_DIR_TARGET} --without-rpm \ | ||
14 | --without-nss --without-avahi --without-dyninst \ | ||
15 | --disable-server --disable-grapher --enable-prologues \ | ||
16 | --with-python3 --without-python2-probes \ | ||
17 | ac_cv_prog_have_javac=no \ | ||
18 | ac_cv_prog_have_jar=no " | ||
19 | |||
20 | STAP_DOCS ?= "--disable-docs --disable-publican --disable-refdocs" | ||
21 | |||
22 | EXTRA_OECONF += "${STAP_DOCS} " | ||
23 | |||
24 | PACKAGECONFIG ??= "translator sqlite monitor python3-probes" | ||
25 | PACKAGECONFIG[translator] = "--enable-translator,--disable-translator,boost,bash" | ||
26 | PACKAGECONFIG[libvirt] = "--enable-libvirt,--disable-libvirt,libvirt" | ||
27 | PACKAGECONFIG[sqlite] = "--enable-sqlite,--disable-sqlite,sqlite3" | ||
28 | PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor,ncurses json-c" | ||
29 | PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes,python3-setuptools-native" | ||
30 | |||
31 | inherit autotools gettext pkgconfig systemd | ||
32 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3-probes', 'distutils3-base', '', d)} | ||
33 | |||
34 | # exporter comes with python3-probes | ||
35 | PACKAGES =+ "${PN}-exporter" | ||
36 | FILES_${PN}-exporter = "${sysconfdir}/stap-exporter/* \ | ||
37 | ${sysconfdir}/sysconfig/stap-exporter \ | ||
38 | ${systemd_unitdir}/system/stap-exporter.service \ | ||
39 | ${sbindir}/stap-exporter" | ||
40 | RDEPENDS_${PN}-exporter = "${PN} python3-core python3-netclient" | ||
41 | SYSTEMD_SERVICE_${PN}-exporter = "stap-exporter.service" | ||
42 | |||
43 | PACKAGES =+ "${PN}-runtime" | ||
44 | FILES_${PN}-runtime = "\ | ||
45 | ${bindir}/staprun \ | ||
46 | ${bindir}/stap-merge \ | ||
47 | ${bindir}/stapsh \ | ||
48 | ${libexecdir}/${BPN}/stapio \ | ||
49 | " | ||
50 | RDEPENDS_${PN}_class-target += "${PN}-runtime" | ||
51 | |||
52 | PACKAGES =+ "${PN}-examples" | ||
53 | FILES_${PN}-examples = "${datadir}/${BPN}/examples/" | ||
54 | RDEPENDS_${PN}-examples += "${PN}" | ||
55 | |||
56 | # don't complain that some examples involve bash, perl, php... | ||
57 | INSANE_SKIP_${PN}-examples += "file-rdeps" | ||
58 | |||
59 | PACKAGES =+ "${PN}-python" | ||
60 | FILES_${PN}-python += "\ | ||
61 | ${bindir}/dtrace \ | ||
62 | ${libdir}/python*/ \ | ||
63 | ${libexecdir}/${BPN}/python/ \ | ||
64 | " | ||
65 | # python material requires sdt headers | ||
66 | RDEPENDS_${PN}-python += "${PN}-dev python3-core" | ||
67 | INSANE_SKIP_${PN}-python += "dev-deps" | ||
68 | |||
69 | do_configure_prepend () { | ||
70 | # Improve reproducibility for c++ object files | ||
71 | reltivepath="${@os.path.relpath(d.getVar('STAGING_INCDIR'), d.getVar('S'))}" | ||
72 | sed -i "s:@RELATIVE_STAGING_INCDIR@:$reltivepath:g" ${S}/stringtable.h | ||
73 | } | ||
74 | |||
75 | do_install_append () { | ||
76 | if [ ! -f ${D}${bindir}/stap ]; then | ||
77 | # translator disabled case, need to leave only minimal runtime | ||
78 | rm -rf ${D}${datadir}/${PN} | ||
79 | rm ${D}${libexecdir}/${PN}/stap-env | ||
80 | fi | ||
81 | |||
82 | if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then | ||
83 | # Fix makefile hardcoded path assumptions for systemd (assumes $prefix) | ||
84 | # without usrmerge distro feature enabled | ||
85 | install -d `dirname ${D}${systemd_unitdir}` | ||
86 | mv ${D}${prefix}/lib/systemd `dirname ${D}${systemd_unitdir}` | ||
87 | rmdir ${D}${prefix}/lib --ignore-fail-on-non-empty | ||
88 | fi | ||
89 | |||
90 | # Ensure correct ownership for files copied in | ||
91 | if [ -d ${D}${sysconfdir}/stap-exporter ]; then | ||
92 | chown root:root ${D}${sysconfdir}/stap-exporter/* -R | ||
93 | fi | ||
94 | } | ||
95 | |||
96 | BBCLASSEXTEND = "nativesdk" | ||