diff options
Diffstat (limited to 'meta/recipes-devtools/strace')
-rw-r--r-- | meta/recipes-devtools/strace/strace/Makefile-ptest.patch | 9 | ||||
-rwxr-xr-x | meta/recipes-devtools/strace/strace/run-ptest | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/strace/strace_6.15.bb (renamed from meta/recipes-devtools/strace/strace_6.9.bb) | 12 |
3 files changed, 13 insertions, 10 deletions
diff --git a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch index 3e50bf40f0..9520aa8842 100644 --- a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch +++ b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 245f6322cf64e562d3227dfac26ce93c905b0380 Mon Sep 17 00:00:00 2001 | 1 | From 593bea35a044b55222a71737ca8455c2359817d1 Mon Sep 17 00:00:00 2001 |
2 | From: Gabriel Barbu <gabriel.barbu@enea.com> | 2 | From: Gabriel Barbu <gabriel.barbu@enea.com> |
3 | Date: Thu, 25 Jul 2013 15:28:33 +0200 | 3 | Date: Thu, 25 Jul 2013 15:28:33 +0200 |
4 | Subject: [PATCH] strace: Add ptest | 4 | Subject: [PATCH] strace: Add ptest |
@@ -12,8 +12,9 @@ Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | |||
12 | tests/Makefile.am | 20 ++++++++++++++++++++ | 12 | tests/Makefile.am | 20 ++++++++++++++++++++ |
13 | 1 file changed, 20 insertions(+) | 13 | 1 file changed, 20 insertions(+) |
14 | 14 | ||
15 | |||
15 | diff --git a/tests/Makefile.am b/tests/Makefile.am | 16 | diff --git a/tests/Makefile.am b/tests/Makefile.am |
16 | index ef68898..735b73d 100644 | 17 | index b29471f..b8b66f0 100644 |
17 | --- a/tests/Makefile.am | 18 | --- a/tests/Makefile.am |
18 | +++ b/tests/Makefile.am | 19 | +++ b/tests/Makefile.am |
19 | @@ -18,6 +18,7 @@ SIZEOF_LONG = @SIZEOF_LONG@ | 20 | @@ -18,6 +18,7 @@ SIZEOF_LONG = @SIZEOF_LONG@ |
@@ -21,10 +22,10 @@ index ef68898..735b73d 100644 | |||
21 | MPERS_CC_FLAGS = | 22 | MPERS_CC_FLAGS = |
22 | ARCH_MFLAGS = | 23 | ARCH_MFLAGS = |
23 | +TEST_SUITE_LOG = test-suite.log | 24 | +TEST_SUITE_LOG = test-suite.log |
24 | AM_CFLAGS = $(WARN_CFLAGS) | 25 | AM_CFLAGS = $(WARN_CFLAGS) $(TEST_WARN_CFLAGS) |
25 | bundled_CPPFLAGS = | 26 | bundled_CPPFLAGS = |
26 | if USE_BUNDLED_HEADERS | 27 | if USE_BUNDLED_HEADERS |
27 | @@ -889,3 +890,22 @@ BUILT_SOURCES = ksysent.h | 28 | @@ -932,3 +933,22 @@ BUILT_SOURCES = ksysent.h |
28 | CLEANFILES = ksysent.h | 29 | CLEANFILES = ksysent.h |
29 | 30 | ||
30 | include ../src/scno.am | 31 | include ../src/scno.am |
diff --git a/meta/recipes-devtools/strace/strace/run-ptest b/meta/recipes-devtools/strace/strace/run-ptest index 1224229e8f..d9248df225 100755 --- a/meta/recipes-devtools/strace/strace/run-ptest +++ b/meta/recipes-devtools/strace/strace/run-ptest | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | set -u | 3 | set -u |
4 | 4 | ||
5 | export TIMEOUT_DURATION=240 | 5 | export TIMEOUT_DURATION=600 |
6 | make -j4 -B -C tests -k test-suite.log | 6 | make -j4 -B -C tests -k test-suite.log |
7 | res=$? | 7 | res=$? |
8 | if [ $res -ne 0 ]; then | 8 | if [ $res -ne 0 ]; then |
diff --git a/meta/recipes-devtools/strace/strace_6.9.bb b/meta/recipes-devtools/strace/strace_6.15.bb index bb9f8e42ba..fdc79bcf85 100644 --- a/meta/recipes-devtools/strace/strace_6.9.bb +++ b/meta/recipes-devtools/strace/strace_6.15.bb | |||
@@ -3,9 +3,9 @@ HOMEPAGE = "http://strace.io" | |||
3 | DESCRIPTION = "strace is a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state." | 3 | DESCRIPTION = "strace is a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state." |
4 | SECTION = "console/utils" | 4 | SECTION = "console/utils" |
5 | LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" | 5 | LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=2433d82e1432a76dc3eadd9002bfe304" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=1efaf30bb0084b4a17a6f55f9cbcd25b" |
7 | 7 | ||
8 | SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ | 8 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \ |
9 | file://update-gawk-paths.patch \ | 9 | file://update-gawk-paths.patch \ |
10 | file://Makefile-ptest.patch \ | 10 | file://Makefile-ptest.patch \ |
11 | file://run-ptest \ | 11 | file://run-ptest \ |
@@ -15,9 +15,9 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ | |||
15 | file://0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch \ | 15 | file://0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch \ |
16 | file://0002-tests-Replace-off64_t-with-off_t.patch \ | 16 | file://0002-tests-Replace-off64_t-with-off_t.patch \ |
17 | " | 17 | " |
18 | SRC_URI[sha256sum] = "da189e990a82e3ca3a5a4631012f7ecfd489dab459854d82d8caf6a865c1356a" | 18 | SRC_URI[sha256sum] = "8552dfab08abc22a0f2048c98fd9541fd4d71b6882507952780dab7c7c512f51" |
19 | 19 | ||
20 | inherit autotools ptest | 20 | inherit autotools github-releases ptest |
21 | 21 | ||
22 | # Not yet ported to rv32 | 22 | # Not yet ported to rv32 |
23 | COMPATIBLE_HOST:riscv32 = "null" | 23 | COMPATIBLE_HOST:riscv32 = "null" |
@@ -44,7 +44,9 @@ do_install_ptest() { | |||
44 | mkdir -p ${D}${PTEST_PATH}/src | 44 | mkdir -p ${D}${PTEST_PATH}/src |
45 | install -m 755 ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/ | 45 | install -m 755 ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/ |
46 | install -m 644 ${B}/src/config.h ${D}${PTEST_PATH}/src/ | 46 | install -m 644 ${B}/src/config.h ${D}${PTEST_PATH}/src/ |
47 | sed -i -e '/^src/s/strace.*[0-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile | 47 | sed -e 's/^srcdir = .*/srcdir = ..\/..\/ptest\/tests/' \ |
48 | -e "/^TEST_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \ | ||
49 | -i ${D}/${PTEST_PATH}/${TESTDIR}/Makefile | ||
48 | } | 50 | } |
49 | 51 | ||
50 | RDEPENDS:${PN}-ptest += "make coreutils grep gawk sed locale-base-en-us" | 52 | RDEPENDS:${PN}-ptest += "make coreutils grep gawk sed locale-base-en-us" |