mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 14:50:07 +04:00
8dbb989cb7
Remove obsolete patches: - 010-compat-off64_t-is-not-defined-by-musl.patch: the patched files (src/common/compat/compat-fcntl.c and src/common/compat/fcntl.h) no longer exist in 2.15.0 - 020-fix-lttng-tools-fails-to-compile-with-libxml2-2-14-0.patch: the encode_string() function was refactored in 2.15.0 to use xmlCharEncInFunc() instead of handler->input(), so the fix is no longer needed Add musl compatibility fixes in Build/Prepare via sed: - Remove :: global-namespace qualifier from TFD_CLOEXEC in timerfd.hpp; musl defines it as an octal literal so ::TFD_CLOEXEC is invalid C++ - Same fix for EPOLL_CLOEXEC in poller.cpp - Relax static_assert in consumer.hpp from __cplusplus == 201103L to >= 201103L; SDK builds with C++17 Add missing +libstdcpp to DEPENDS (lttng-tools links libstdc++.so.6). Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
20 lines
392 B
Bash
20 lines
392 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
lttng-tools)
|
|
lttng --version 2>&1 | grep -qF "$2" || {
|
|
echo "FAIL: lttng --version did not print expected version '$2'"
|
|
exit 1
|
|
}
|
|
echo "lttng version: OK"
|
|
|
|
# Library must be present
|
|
[ -e /usr/lib/liblttng-ctl.so.4 ] || \
|
|
ls /usr/lib/liblttng-ctl.so.* >/dev/null 2>&1 || {
|
|
echo "FAIL: liblttng-ctl.so not found"
|
|
exit 1
|
|
}
|
|
echo "liblttng-ctl: OK"
|
|
;;
|
|
esac
|