diff options
author | Alexander Kanavin <alex@linutronix.de> | 2021-09-06 11:38:48 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-10 09:25:38 +0100 |
commit | 84e0778f0af3d0327a6a462bc88cc86f33cf47c6 (patch) | |
tree | 13b755ec0445c7edc609f829b183eff0d348eb04 /meta/recipes-kernel/lttng | |
parent | d42e12a0bd6dd94e1f43d1bd363b2c18624fb925 (diff) | |
download | poky-84e0778f0af3d0327a6a462bc88cc86f33cf47c6.tar.gz |
lttng: update 2.12 -> 2.13.0
Drop 0001-tests-regression-disable-the-tools-live-tests.patch
(mass-disabling of ptests) and replace that with more targeted fixes:
- a patch that adds explicit sleeps where races due to too tight timings
were observed (not a proper fix; upstream needs to figure out how
to sync explicitly and reliably)
- LD_LIBRARY_PATH so that helper binaries are able to find their
custom libraries they're linked with (we strip rpath from them
for reproducibility)
- set pgrep location explicitly as it used unconditionally
on target, but auto-detected (incorrectly) on the host
- enable kmod as it is available in target images
- correct various missing scripts, binaries, and inhibit stripping
where that is expected.
License-Update: license info consolidated in LICENSE
(From OE-Core rev: 750d640f12b5c6804af51a67e23d4aca93564b79)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools/0001-src-common-correct-header-location.patch | 41 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools/0001-tests-regression-disable-the-tools-live-tests.patch | 55 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools/0001-tests-wait-some-more-before-analysing-traces-or-star.patch | 88 | ||||
-rwxr-xr-x | meta/recipes-kernel/lttng/lttng-tools/run-ptest | 1 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools_2.13.0.bb (renamed from meta/recipes-kernel/lttng/lttng-tools_2.12.4.bb) | 22 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-ust/0001-lttng-ust-common-link-with-liburcu-explicitly.patch | 25 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-ust/0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch | 22 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb (renamed from meta/recipes-kernel/lttng/lttng-ust_2.12.2.bb) | 7 |
8 files changed, 185 insertions, 76 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-src-common-correct-header-location.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-src-common-correct-header-location.patch new file mode 100644 index 0000000000..925b51c3ce --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-tools/0001-src-common-correct-header-location.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 790ef313364d1f1efb6f283705bb324eea2979ba Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Sun, 5 Sep 2021 10:13:08 +0200 | ||
4 | Subject: [PATCH] src/common: correct header location | ||
5 | |||
6 | sys/unistd.h is not guaranteed to exist, and does not with | ||
7 | e.g. musl C library. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | --- | ||
12 | src/common/kernel-probe.c | 2 +- | ||
13 | src/common/userspace-probe.c | 2 +- | ||
14 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/src/common/kernel-probe.c b/src/common/kernel-probe.c | ||
17 | index 2beb53f..44100bc 100644 | ||
18 | --- a/src/common/kernel-probe.c | ||
19 | +++ b/src/common/kernel-probe.c | ||
20 | @@ -20,7 +20,7 @@ | ||
21 | #include <lttng/kernel-probe.h> | ||
22 | #include <sys/stat.h> | ||
23 | #include <sys/types.h> | ||
24 | -#include <sys/unistd.h> | ||
25 | +#include <unistd.h> | ||
26 | |||
27 | static | ||
28 | int lttng_kernel_probe_location_address_serialize( | ||
29 | diff --git a/src/common/userspace-probe.c b/src/common/userspace-probe.c | ||
30 | index 67b0ee6..66afc6f 100644 | ||
31 | --- a/src/common/userspace-probe.c | ||
32 | +++ b/src/common/userspace-probe.c | ||
33 | @@ -20,7 +20,7 @@ | ||
34 | #include <lttng/userspace-probe-internal.h> | ||
35 | #include <sys/stat.h> | ||
36 | #include <sys/types.h> | ||
37 | -#include <sys/unistd.h> | ||
38 | +#include <unistd.h> | ||
39 | |||
40 | static | ||
41 | int lttng_userspace_probe_location_function_set_binary_fd_handle( | ||
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-tests-regression-disable-the-tools-live-tests.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-tests-regression-disable-the-tools-live-tests.patch deleted file mode 100644 index 08c1423310..0000000000 --- a/meta/recipes-kernel/lttng/lttng-tools/0001-tests-regression-disable-the-tools-live-tests.patch +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | From de9fc501e775cae05f1f87534b4237cd78e8d9a8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 24 Jan 2020 18:03:25 +0100 | ||
4 | Subject: [PATCH] tests/regression: disable the tools/live tests | ||
5 | |||
6 | They have been found to sporadically fail; the issue has been | ||
7 | reported upstream and they will work to investigate and fix: | ||
8 | https://bugs.lttng.org/issues/1217 | ||
9 | |||
10 | Upstream-Status: Inappropriate [upstream is working on a real fix] | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | |||
13 | --- | ||
14 | tests/regression/Makefile.am | 10 +--------- | ||
15 | 1 file changed, 1 insertion(+), 9 deletions(-) | ||
16 | |||
17 | diff --git a/tests/regression/Makefile.am b/tests/regression/Makefile.am | ||
18 | index cbac90d..d467886 100644 | ||
19 | --- a/tests/regression/Makefile.am | ||
20 | +++ b/tests/regression/Makefile.am | ||
21 | @@ -11,16 +11,10 @@ TESTS = tools/filtering/test_invalid_filter \ | ||
22 | tools/filtering/test_valid_filter \ | ||
23 | tools/streaming/test_ust \ | ||
24 | tools/health/test_thread_ok \ | ||
25 | - tools/live/test_ust \ | ||
26 | - tools/live/test_ust_tracefile_count \ | ||
27 | - tools/live/test_lttng_ust \ | ||
28 | tools/tracefile-limits/test_tracefile_count \ | ||
29 | tools/tracefile-limits/test_tracefile_size \ | ||
30 | - tools/exclusion/test_exclusion \ | ||
31 | tools/snapshots/test_ust_fast \ | ||
32 | - tools/snapshots/test_ust_streaming \ | ||
33 | tools/save-load/test_save \ | ||
34 | - tools/save-load/test_load \ | ||
35 | tools/save-load/test_autoload \ | ||
36 | tools/mi/test_mi \ | ||
37 | tools/wildcard/test_event_wildcard \ | ||
38 | @@ -38,8 +32,7 @@ TESTS = tools/filtering/test_invalid_filter \ | ||
39 | tools/working-directory/test_relayd_working_directory \ | ||
40 | tools/notification/test_notification_multi_app \ | ||
41 | tools/clear/test_ust \ | ||
42 | - tools/clear/test_kernel \ | ||
43 | - tools/tracker/test_event_tracker | ||
44 | + tools/clear/test_kernel | ||
45 | |||
46 | if HAVE_LIBLTTNG_UST_CTL | ||
47 | SUBDIRS += ust | ||
48 | @@ -60,7 +53,6 @@ TESTS += ust/before-after/test_before_after \ | ||
49 | ust/multi-lib/test_multi_lib \ | ||
50 | ust/rotation-destroy-flush/test_rotation_destroy_flush \ | ||
51 | ust/namespaces/test_ns_contexts \ | ||
52 | - ust/namespaces/test_ns_contexts_change \ | ||
53 | tools/metadata/test_ust \ | ||
54 | tools/relayd-grouping/test_ust | ||
55 | endif # HAVE_LIBLTTNG_UST_CTL | ||
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-tests-wait-some-more-before-analysing-traces-or-star.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-tests-wait-some-more-before-analysing-traces-or-star.patch new file mode 100644 index 0000000000..c4cac9cc58 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-tools/0001-tests-wait-some-more-before-analysing-traces-or-star.patch | |||
@@ -0,0 +1,88 @@ | |||
1 | From 8d9daede0882d239b0a47b0f7a6db68ba4934a7d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Sat, 4 Sep 2021 13:57:39 +0200 | ||
4 | Subject: [PATCH] tests: wait some more before analysing traces or starting | ||
5 | tracing | ||
6 | |||
7 | Otherwise, there are sporadic race failures where lttng tracing | ||
8 | is stopped before all expected events are collected or is started too soon, e.g.: | ||
9 | |||
10 | PASS: tools/tracker/test_event_tracker 205 - Traced application stopped. | ||
11 | PASS: tools/tracker/test_event_tracker 206 - Stop lttng tracing for session | ||
12 | PASS: tools/tracker/test_event_tracker 207 - Destroy session tracker | ||
13 | FAIL: tools/tracker/test_event_tracker 208 - Validate empty trace | ||
14 | |||
15 | PASS: ust/namespaces/test_ns_contexts_change 42 - Stop lttng tracing for session mnt_ns | ||
16 | PASS: ust/namespaces/test_ns_contexts_change 43 - Destroy session mnt_ns | ||
17 | PASS: ust/namespaces/test_ns_contexts_change 44 - Wait after kill session daemon | ||
18 | PASS: ust/namespaces/test_ns_contexts_change 45 - Validate trace for event mnt_ns = 4026531840, 1000 events | ||
19 | PASS: ust/namespaces/test_ns_contexts_change 46 - Read a total of 1000 events, expected 1000 | ||
20 | PASS: ust/namespaces/test_ns_contexts_change 47 - Validate trace for event mnt_ns = 4026532303, 233 events | ||
21 | FAIL: ust/namespaces/test_ns_contexts_change 48 - Read a total of 233 events, expected 1000 | ||
22 | |||
23 | This is a hack; issue should be fixed upstream with explicit syncs. | ||
24 | It has been reported here: https://bugs.lttng.org/issues/1217 | ||
25 | |||
26 | Upstream-Status: Inappropriate [needs a real fix] | ||
27 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
28 | --- | ||
29 | tests/regression/tools/tracker/test_event_tracker | 8 ++++++++ | ||
30 | tests/regression/ust/namespaces/test_ns_contexts_change | 2 ++ | ||
31 | 2 files changed, 10 insertions(+) | ||
32 | |||
33 | diff --git a/tests/regression/tools/tracker/test_event_tracker b/tests/regression/tools/tracker/test_event_tracker | ||
34 | index feb3787..a0f2257 100755 | ||
35 | --- a/tests/regression/tools/tracker/test_event_tracker | ||
36 | +++ b/tests/regression/tools/tracker/test_event_tracker | ||
37 | @@ -130,6 +130,8 @@ function test_event_vpid_tracker() | ||
38 | |||
39 | prepare_"$domain"_app | ||
40 | |||
41 | +sleep 5 | ||
42 | + | ||
43 | start_lttng_tracing_ok | ||
44 | |||
45 | if [ "$expect_event" -eq 1 ]; then | ||
46 | @@ -173,6 +175,8 @@ function test_event_pid_tracker() | ||
47 | |||
48 | prepare_"$domain"_app | ||
49 | |||
50 | +sleep 5 | ||
51 | + | ||
52 | start_lttng_tracing_ok | ||
53 | |||
54 | if [ "$expect_event" -eq 1 ]; then | ||
55 | @@ -275,6 +279,8 @@ function test_event_vpid_track_untrack() | ||
56 | |||
57 | prepare_"$domain"_app | ||
58 | |||
59 | +sleep 5 | ||
60 | + | ||
61 | start_lttng_tracing_ok | ||
62 | |||
63 | lttng_track_"$domain"_ok "--vpid ${CHILD_PID}" | ||
64 | @@ -315,6 +321,8 @@ function test_event_pid_track_untrack() | ||
65 | |||
66 | prepare_"$domain"_app | ||
67 | |||
68 | +sleep 5 | ||
69 | + | ||
70 | start_lttng_tracing_ok | ||
71 | |||
72 | lttng_track_"$domain"_ok "--pid ${CHILD_PID}" | ||
73 | diff --git a/tests/regression/ust/namespaces/test_ns_contexts_change b/tests/regression/ust/namespaces/test_ns_contexts_change | ||
74 | index c0af15e..b111bfe 100755 | ||
75 | --- a/tests/regression/ust/namespaces/test_ns_contexts_change | ||
76 | +++ b/tests/regression/ust/namespaces/test_ns_contexts_change | ||
77 | @@ -79,6 +79,8 @@ function test_ns() | ||
78 | |||
79 | touch "$file_sync_before_last" | ||
80 | |||
81 | +sleep 5 | ||
82 | + | ||
83 | # stop and destroy | ||
84 | stop_lttng_tracing_ok "$session_name" | ||
85 | destroy_lttng_session_ok "$session_name" | ||
86 | -- | ||
87 | 2.20.1 | ||
88 | |||
diff --git a/meta/recipes-kernel/lttng/lttng-tools/run-ptest b/meta/recipes-kernel/lttng/lttng-tools/run-ptest index eaa2e7b29d..c4dbe50f21 100755 --- a/meta/recipes-kernel/lttng/lttng-tools/run-ptest +++ b/meta/recipes-kernel/lttng/lttng-tools/run-ptest | |||
@@ -1,6 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # Without --ignore-exit, the tap harness causes any FAILs within a | 2 | # Without --ignore-exit, the tap harness causes any FAILs within a |
3 | # test plan to raise ERRORs; this is just noise. | 3 | # test plan to raise ERRORs; this is just noise. |
4 | export LD_LIBRARY_PATH=FIXMEPTESTPATH/tests/utils/testapp/userspace-probe-elf-binary/.libs | ||
4 | makeargs="LOG_DRIVER_FLAGS=--ignore-exit top_srcdir=$PWD top_builddir=$PWD" | 5 | makeargs="LOG_DRIVER_FLAGS=--ignore-exit top_srcdir=$PWD top_builddir=$PWD" |
5 | make -k -t all >/dev/null 2>&1 | 6 | make -k -t all >/dev/null 2>&1 |
6 | exec make -k -s $makeargs check 2>/dev/null | sed -e 's#/tmp/tmp\...........#/tmp/tmp.XXXXXXXXXX#g' | 7 | exec make -k -s $makeargs check 2>/dev/null | sed -e 's#/tmp/tmp\...........#/tmp/tmp.XXXXXXXXXX#g' |
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.12.4.bb b/meta/recipes-kernel/lttng/lttng-tools_2.13.0.bb index ba26c15cdd..95bb2519d7 100644 --- a/meta/recipes-kernel/lttng/lttng-tools_2.12.4.bb +++ b/meta/recipes-kernel/lttng/lttng-tools_2.13.0.bb | |||
@@ -25,7 +25,7 @@ PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \ | |||
25 | am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ | 25 | am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ |
26 | PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ | 26 | PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ |
27 | " | 27 | " |
28 | PACKAGECONFIG ??= "${LTTNGUST}" | 28 | PACKAGECONFIG ??= "${LTTNGUST} kmod" |
29 | PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python3 swig-native" | 29 | PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python3 swig-native" |
30 | PACKAGECONFIG[lttng-ust] = "--with-lttng-ust, --without-lttng-ust, lttng-ust" | 30 | PACKAGECONFIG[lttng-ust] = "--with-lttng-ust, --without-lttng-ust, lttng-ust" |
31 | PACKAGECONFIG[kmod] = "--with-kmod, --without-kmod, kmod" | 31 | PACKAGECONFIG[kmod] = "--with-kmod, --without-kmod, kmod" |
@@ -35,14 +35,17 @@ SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \ | |||
35 | file://0001-tests-do-not-strip-a-helper-library.patch \ | 35 | file://0001-tests-do-not-strip-a-helper-library.patch \ |
36 | file://run-ptest \ | 36 | file://run-ptest \ |
37 | file://lttng-sessiond.service \ | 37 | file://lttng-sessiond.service \ |
38 | file://0001-tests-regression-disable-the-tools-live-tests.patch \ | ||
39 | file://determinism.patch \ | 38 | file://determinism.patch \ |
39 | file://0001-src-common-correct-header-location.patch \ | ||
40 | file://0001-tests-wait-some-more-before-analysing-traces-or-star.patch \ | ||
40 | " | 41 | " |
41 | 42 | ||
42 | SRC_URI[sha256sum] = "d729f8c2373a41194f171aeb0da0a9bb35ac181f31afa7e260786d19a500dea1" | 43 | SRC_URI[sha256sum] = "8dc894f9a7a840e943c1c344345c75f001a9529daa9157f1a0e6175c081c29e6" |
43 | 44 | ||
44 | inherit autotools ptest pkgconfig useradd python3-dir manpages systemd | 45 | inherit autotools ptest pkgconfig useradd python3-dir manpages systemd |
45 | 46 | ||
47 | CACHED_CONFIGUREVARS = "PGREP=/usr/bin/pgrep" | ||
48 | |||
46 | SYSTEMD_SERVICE:${PN} = "lttng-sessiond.service" | 49 | SYSTEMD_SERVICE:${PN} = "lttng-sessiond.service" |
47 | SYSTEMD_AUTO_ENABLE = "disable" | 50 | SYSTEMD_AUTO_ENABLE = "disable" |
48 | 51 | ||
@@ -72,14 +75,18 @@ do_install_ptest () { | |||
72 | for f in Makefile tests/Makefile tests/utils/utils.sh tests/regression/tools/save-load/*.lttng \ | 75 | for f in Makefile tests/Makefile tests/utils/utils.sh tests/regression/tools/save-load/*.lttng \ |
73 | tests/regression/tools/save-load/configuration/load-42*.lttng tests/regression/tools/health/test_health.sh \ | 76 | tests/regression/tools/save-load/configuration/load-42*.lttng tests/regression/tools/health/test_health.sh \ |
74 | tests/regression/tools/metadata/utils.sh tests/regression/tools/rotation/rotate_utils.sh \ | 77 | tests/regression/tools/metadata/utils.sh tests/regression/tools/rotation/rotate_utils.sh \ |
78 | tests/regression/tools/notification/util_event_generator.sh \ | ||
75 | tests/regression/tools/base-path/*.lttng; do | 79 | tests/regression/tools/base-path/*.lttng; do |
76 | install -D "${B}/$f" "${D}${PTEST_PATH}/$f" | 80 | install -D "${B}/$f" "${D}${PTEST_PATH}/$f" |
77 | done | 81 | done |
78 | 82 | ||
79 | for f in config/tap-driver.sh config/test-driver src/common/config/session.xsd src/common/mi-lttng-4.0.xsd; do | 83 | for f in tests/utils/tap-driver.sh config/test-driver src/common/config/session.xsd src/common/mi-lttng-4.1.xsd; do |
80 | install -D "${S}/$f" "${D}${PTEST_PATH}/$f" | 84 | install -D "${S}/$f" "${D}${PTEST_PATH}/$f" |
81 | done | 85 | done |
82 | 86 | ||
87 | # Patch in the correct path for the custom libraries a helper executable needs | ||
88 | sed -i -e 's!FIXMEPTESTPATH!${PTEST_PATH}!' "${D}${PTEST_PATH}/run-ptest" | ||
89 | |||
83 | # Prevent 'make check' from recursing into non-test subdirectories. | 90 | # Prevent 'make check' from recursing into non-test subdirectories. |
84 | sed -i -e 's!^SUBDIRS = .*!SUBDIRS = tests!' "${D}${PTEST_PATH}/Makefile" | 91 | sed -i -e 's!^SUBDIRS = .*!SUBDIRS = tests!' "${D}${PTEST_PATH}/Makefile" |
85 | 92 | ||
@@ -107,7 +114,7 @@ do_install_ptest () { | |||
107 | for f in $(find "${B}/tests/$d" -maxdepth 1 -executable -type f -printf '%P ') ; do | 114 | for f in $(find "${B}/tests/$d" -maxdepth 1 -executable -type f -printf '%P ') ; do |
108 | cp ${B}/tests/$d/$f ${D}${PTEST_PATH}/tests/`dirname $d`/$f | 115 | cp ${B}/tests/$d/$f ${D}${PTEST_PATH}/tests/`dirname $d`/$f |
109 | case $f in | 116 | case $f in |
110 | *.so) | 117 | *.so|userspace-probe-elf-binary) |
111 | install -d ${D}${PTEST_PATH}/tests/$d/ | 118 | install -d ${D}${PTEST_PATH}/tests/$d/ |
112 | ln -s ../$f ${D}${PTEST_PATH}/tests/$d/$f | 119 | ln -s ../$f ${D}${PTEST_PATH}/tests/$d/$f |
113 | # Remove any rpath/runpath to pass QA check. | 120 | # Remove any rpath/runpath to pass QA check. |
@@ -175,3 +182,8 @@ do_install_ptest () { | |||
175 | esac | 182 | esac |
176 | done | 183 | done |
177 | } | 184 | } |
185 | |||
186 | INHIBIT_PACKAGE_STRIP_FILES = "\ | ||
187 | ${PKGD}${PTEST_PATH}/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary \ | ||
188 | ${PKGD}${PTEST_PATH}/tests/utils/testapp/userspace-probe-elf-binary/.libs/userspace-probe-elf-binary \ | ||
189 | " | ||
diff --git a/meta/recipes-kernel/lttng/lttng-ust/0001-lttng-ust-common-link-with-liburcu-explicitly.patch b/meta/recipes-kernel/lttng/lttng-ust/0001-lttng-ust-common-link-with-liburcu-explicitly.patch new file mode 100644 index 0000000000..2d61dfa525 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-ust/0001-lttng-ust-common-link-with-liburcu-explicitly.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 2058584b7e87d6bd9d1765577766e0df7752232c Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Sun, 5 Sep 2021 10:44:19 +0200 | ||
4 | Subject: [PATCH] lttng-ust-common: link with liburcu explicitly | ||
5 | |||
6 | Otherwise linking errors are seen on x86-32. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
10 | --- | ||
11 | src/lib/lttng-ust-common/Makefile.am | 1 + | ||
12 | 1 file changed, 1 insertion(+) | ||
13 | |||
14 | diff --git a/src/lib/lttng-ust-common/Makefile.am b/src/lib/lttng-ust-common/Makefile.am | ||
15 | index caeea2b..30febf0 100644 | ||
16 | --- a/src/lib/lttng-ust-common/Makefile.am | ||
17 | +++ b/src/lib/lttng-ust-common/Makefile.am | ||
18 | @@ -15,6 +15,7 @@ liblttng_ust_common_la_SOURCES = \ | ||
19 | |||
20 | liblttng_ust_common_la_LIBADD = \ | ||
21 | $(top_builddir)/src/common/libcommon.la \ | ||
22 | + $(URCU_LIBS) \ | ||
23 | $(DL_LIBS) | ||
24 | |||
25 | liblttng_ust_common_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION) | ||
diff --git a/meta/recipes-kernel/lttng/lttng-ust/0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch b/meta/recipes-kernel/lttng/lttng-ust/0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch index c2028d0e1a..fd9b6ea7ff 100644 --- a/meta/recipes-kernel/lttng/lttng-ust/0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch +++ b/meta/recipes-kernel/lttng/lttng-ust/0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From f79dac30af9adda12996da7f6aa6667d3b580537 Mon Sep 17 00:00:00 2001 | 1 | From dd1fdc841d069dbd4e284f430a88af79de951124 Mon Sep 17 00:00:00 2001 |
2 | From: Robert Yang <liezhi.yang@windriver.com> | 2 | From: Robert Yang <liezhi.yang@windriver.com> |
3 | Date: Thu, 26 Sep 2019 17:54:00 +0800 | 3 | Date: Thu, 26 Sep 2019 17:54:00 +0800 |
4 | Subject: [PATCH] python-lttngust/Makefile.am: Add --install-lib to setup.py | 4 | Subject: [PATCH] python-lttngust/Makefile.am: Add --install-lib to setup.py |
@@ -9,23 +9,21 @@ building. | |||
9 | Upstream-Status: Submitted [https://github.com/lttng/lttng-ust/pull/59] | 9 | Upstream-Status: Submitted [https://github.com/lttng/lttng-ust/pull/59] |
10 | 10 | ||
11 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | 11 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
12 | |||
12 | --- | 13 | --- |
13 | python-lttngust/Makefile.am | 2 +- | 14 | src/python-lttngust/Makefile.am | 2 +- |
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 16 | ||
16 | diff --git a/python-lttngust/Makefile.am b/python-lttngust/Makefile.am | 17 | diff --git a/src/python-lttngust/Makefile.am b/src/python-lttngust/Makefile.am |
17 | index 6c0d20d..38b51b8 100644 | 18 | index f95482d..f76d95b 100644 |
18 | --- a/python-lttngust/Makefile.am | 19 | --- a/src/python-lttngust/Makefile.am |
19 | +++ b/python-lttngust/Makefile.am | 20 | +++ b/src/python-lttngust/Makefile.am |
20 | @@ -9,7 +9,7 @@ install-exec-local: | 21 | @@ -32,7 +32,7 @@ install-exec-local: build-python-bindings.stamp |
21 | if [ "$(DESTDIR)" != "" ]; then \ | 22 | if [ "$(DESTDIR)" != "" ]; then \ |
22 | opts="$$opts --root=$(DESTDIR)"; \ | 23 | opts="$$opts --root=$(DESTDIR)"; \ |
23 | fi; \ | 24 | fi; \ |
24 | - $(PYTHON) setup.py install $$opts; | 25 | - $(PYTHON) $(builddir)/setup.py install $$opts; |
25 | + $(PYTHON) setup.py install $$opts --install-lib=$(pythondir); | 26 | + $(PYTHON) $(builddir)/setup.py install $$opts --install-lib=$(pythondir); |
26 | 27 | ||
27 | clean-local: | 28 | clean-local: |
28 | rm -rf $(builddir)/build | 29 | rm -rf $(builddir)/build |
29 | -- | ||
30 | 2.7.4 | ||
31 | |||
diff --git a/meta/recipes-kernel/lttng/lttng-ust_2.12.2.bb b/meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb index 54a473d2cb..2074b8c318 100644 --- a/meta/recipes-kernel/lttng/lttng-ust_2.12.2.bb +++ b/meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb | |||
@@ -4,9 +4,7 @@ HOMEPAGE = "http://lttng.org/ust" | |||
4 | BUGTRACKER = "https://bugs.lttng.org/projects/lttng-ust" | 4 | BUGTRACKER = "https://bugs.lttng.org/projects/lttng-ust" |
5 | 5 | ||
6 | LICENSE = "LGPLv2.1+ & MIT & GPLv2" | 6 | LICENSE = "LGPLv2.1+ & MIT & GPLv2" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=c963eb366b781252b0bf0fdf1624d9e9 \ | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a46577a38ad0c36ff6ff43ccf40c480f" |
8 | file://snprintf/snprintf.c;endline=32;md5=d3d544959d8a3782b2e07451be0a903c \ | ||
9 | file://snprintf/various.h;endline=31;md5=89f2509b6b4682c4fc95255eec4abe44" | ||
10 | 8 | ||
11 | PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \ | 9 | PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \ |
12 | am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ | 10 | am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ |
@@ -31,9 +29,10 @@ PE = "2" | |||
31 | 29 | ||
32 | SRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \ | 30 | SRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \ |
33 | file://0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch \ | 31 | file://0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch \ |
32 | file://0001-lttng-ust-common-link-with-liburcu-explicitly.patch \ | ||
34 | " | 33 | " |
35 | 34 | ||
36 | SRC_URI[sha256sum] = "bcd0f064b6ca88c72d84e760eac3472ae5c828411c634435922bee9fce359fc7" | 35 | SRC_URI[sha256sum] = "54e4c933679cf6a07971dc5861ce57fc4876ab740ab612407b30b5fc85371750" |
37 | 36 | ||
38 | CVE_PRODUCT = "ust" | 37 | CVE_PRODUCT = "ust" |
39 | 38 | ||