summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch')
-rw-r--r--meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
new file mode 100644
index 0000000000..3a0eb39375
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
@@ -0,0 +1,41 @@
1strace: Add ptest
2
3Upstream-Status: Inappropriate
4
5Signed-off-by: Gabriel Barbu <gabriel.barbu@enea.com>
6Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
7
8--- old/tests/Makefile.am 2013-07-23 13:44:24.660481381 +0200
9+++ new/tests/Makefile.am 2013-07-23 16:22:42.937654391 +0200
10@@ -9,3 +9,21 @@
11 EXTRA_DIST = init.sh $(TESTS)
12
13 CLEANFILES = check.log
14+
15+buildtest-TESTS: $(check_PROGRAMS) $(TESTS)
16+
17+install-ptest:
18+ install $(BUILDDIR)/strace $(DESTDIR)
19+ install "$(srcdir)/.."/strace-log-merge $(DESTDIR)
20+ install -d $(DESTDIR)/$(TESTDIR)
21+ cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR)
22+ sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile
23+ sed -i -e 's/bash/sh/' $(DESTDIR)/$(TESTDIR)/Makefile
24+ for file in $(check_PROGRAMS); do \
25+ install $(BUILDDIR)/$(TESTDIR)/$$file $(DESTDIR)/$(TESTDIR); \
26+ done
27+ for file in $(EXTRA_DIST); do \
28+ install $(srcdir)/$$file $(DESTDIR)/$(TESTDIR); \
29+ sed -i -e 's/$${srcdir=.}/./g' $(DESTDIR)/$(TESTDIR)/$$file; \
30+ done
31+ sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/net
32--- a/configure.ac
33+++ b/configure.ac
34@@ -6,7 +6,7 @@ AC_INIT([strace],
35 AC_CONFIG_SRCDIR([strace.c])
36 AC_CONFIG_AUX_DIR([.])
37 AC_CONFIG_HEADERS([config.h])
38-AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules])
39+AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules serial-tests])
40 AM_MAINTAINER_MODE
41 AC_CANONICAL_HOST