diff options
| -rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools/stop-using-SIGUNUSED.patch | 51 | ||||
| -rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools_git.bb | 11 |
2 files changed, 5 insertions, 57 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools/stop-using-SIGUNUSED.patch b/meta/recipes-kernel/lttng/lttng-tools/stop-using-SIGUNUSED.patch deleted file mode 100644 index bd4f7d1d1b..0000000000 --- a/meta/recipes-kernel/lttng/lttng-tools/stop-using-SIGUNUSED.patch +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | From 1f54181c2df1fb92c3323a6dbf8273fb66b883b6 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Galarneau?= | ||
| 3 | <jeremie.galarneau@efficios.com> | ||
| 4 | Date: Sat, 17 Oct 2015 19:41:47 -0400 | ||
| 5 | Subject: [PATCH] Port: Don't use SIGUNUSED which is not defined on Solaris | ||
| 6 | MIME-Version: 1.0 | ||
| 7 | Content-Type: text/plain; charset=UTF-8 | ||
| 8 | Content-Transfer-Encoding: 8bit | ||
| 9 | Organization: O.S. Systems Software LTDA. | ||
| 10 | |||
| 11 | Upstream-Status: Backport [2.8.0] | ||
| 12 | |||
| 13 | Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> | ||
| 14 | --- | ||
| 15 | src/common/runas.c | 18 +++++------------- | ||
| 16 | 1 file changed, 5 insertions(+), 13 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/src/common/runas.c b/src/common/runas.c | ||
| 19 | index 57f7382..0825470 100644 | ||
| 20 | --- a/src/common/runas.c | ||
| 21 | +++ b/src/common/runas.c | ||
| 22 | @@ -530,21 +530,13 @@ int run_as_rmdir_recursive(const char *path, uid_t uid, gid_t gid) | ||
| 23 | static | ||
| 24 | int reset_sighandler(void) | ||
| 25 | { | ||
| 26 | - int sig, ret = 0; | ||
| 27 | + int sig; | ||
| 28 | |||
| 29 | - for (sig = SIGHUP; sig <= SIGUNUSED; sig++) { | ||
| 30 | - /* Skip unblockable signals. */ | ||
| 31 | - if (sig == SIGKILL || sig == SIGSTOP) { | ||
| 32 | - continue; | ||
| 33 | - } | ||
| 34 | - if (signal(sig, SIG_DFL) == SIG_ERR) { | ||
| 35 | - PERROR("reset signal %d", sig); | ||
| 36 | - ret = -1; | ||
| 37 | - goto end; | ||
| 38 | - } | ||
| 39 | + DBG("Resetting run_as worker signal handlers to default"); | ||
| 40 | + for (sig = 1; sig <= 31; sig++) { | ||
| 41 | + (void) signal(sig, SIG_DFL); | ||
| 42 | } | ||
| 43 | -end: | ||
| 44 | - return ret; | ||
| 45 | + return 0; | ||
| 46 | } | ||
| 47 | |||
| 48 | static | ||
| 49 | -- | ||
| 50 | 2.6.2 | ||
| 51 | |||
diff --git a/meta/recipes-kernel/lttng/lttng-tools_git.bb b/meta/recipes-kernel/lttng/lttng-tools_git.bb index fe1e2a3167..e2f30325ff 100644 --- a/meta/recipes-kernel/lttng/lttng-tools_git.bb +++ b/meta/recipes-kernel/lttng/lttng-tools_git.bb | |||
| @@ -13,8 +13,8 @@ DEPENDS = "liburcu popt libxml2" | |||
| 13 | RDEPENDS_${PN} = "libgcc" | 13 | RDEPENDS_${PN} = "libgcc" |
| 14 | RDEPENDS_${PN}-ptest += "make perl bash" | 14 | RDEPENDS_${PN}-ptest += "make perl bash" |
| 15 | 15 | ||
| 16 | SRCREV = "a90f2c1e10b759782653a81815625e9d1bbb75ca" | 16 | SRCREV = "d11e0dba0df9024b8613c51e167a379b91e8b20b" |
| 17 | PV = "2.7.1+git${SRCPV}" | 17 | PV = "2.8.1+git${SRCPV}" |
| 18 | 18 | ||
| 19 | PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \ | 19 | PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \ |
| 20 | am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ | 20 | am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ |
| @@ -22,12 +22,11 @@ PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \ | |||
| 22 | " | 22 | " |
| 23 | PACKAGECONFIG ??= "lttng-ust" | 23 | PACKAGECONFIG ??= "lttng-ust" |
| 24 | PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python3 swig-native" | 24 | PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python3 swig-native" |
| 25 | PACKAGECONFIG[lttng-ust] = "--enable-lttng-ust, --disable-lttng-ust, lttng-ust" | 25 | PACKAGECONFIG[lttng-ust] = "--with-lttng-ust, --without-lttng-ust, lttng-ust" |
| 26 | PACKAGECONFIG[kmod] = "--enable-kmod, --disable-kmod, kmod" | 26 | PACKAGECONFIG[kmod] = "--enable-kmod, --disable-kmod, kmod" |
| 27 | PACKAGECONFIG_remove_libc-musl = "lttng-ust" | 27 | PACKAGECONFIG_remove_libc-musl = "lttng-ust" |
| 28 | 28 | ||
| 29 | SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.7 \ | 29 | SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.8 \ |
| 30 | file://stop-using-SIGUNUSED.patch \ | ||
| 31 | file://runtest-2.4.0.patch \ | 30 | file://runtest-2.4.0.patch \ |
| 32 | file://run-ptest" | 31 | file://run-ptest" |
| 33 | 32 | ||
| @@ -51,7 +50,7 @@ INSANE_SKIP_${PN}-dbg = "libexec" | |||
| 51 | 50 | ||
| 52 | do_configure_prepend () { | 51 | do_configure_prepend () { |
| 53 | # Delete a shipped m4 file that overrides our patched one | 52 | # Delete a shipped m4 file that overrides our patched one |
| 54 | rm -f ${S}/config/libxml.m4 | 53 | rm -f ${S}/m4/libxml.m4 |
| 55 | } | 54 | } |
| 56 | 55 | ||
| 57 | do_install_ptest () { | 56 | do_install_ptest () { |
