summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.9
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-04-07 04:24:22 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-08 10:53:22 +0100
commit5169721033ca1c2d9a9721761930d668fa1e70ba (patch)
tree0932752be91cd4384c0971302c4ec3bc87625074 /meta/recipes-devtools/strace/strace-4.9
parent6cd8c8d7466cdf29e7a94ebd4978b129da4455fa (diff)
downloadpoky-5169721033ca1c2d9a9721761930d668fa1e70ba.tar.gz
strace: 4.9 -> 4.10
Updated patches: Makefile-ptest.patch strace-add-configure-options.patch Fixed: debugedit: netlink_unix_diag: canonicalization unexpectedly shrank by one character It was because oe_runmake -C ${TESTDIR} buildtest-TESTS didn't set OS and ARCH, which caused "-I<foo>//" in gcc options, and would cause debugedit error. (From OE-Core rev: af76eb0405352d66dfd00d7f856f401d892855e1) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/strace/strace-4.9')
-rw-r--r--meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch53
-rwxr-xr-xmeta/recipes-devtools/strace/strace-4.9/git-version-gen225
-rwxr-xr-xmeta/recipes-devtools/strace/strace-4.9/run-ptest2
-rw-r--r--meta/recipes-devtools/strace/strace-4.9/strace-add-configure-options.patch65
4 files changed, 0 insertions, 345 deletions
diff --git a/meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch
deleted file mode 100644
index df013102d7..0000000000
--- a/meta/recipes-devtools/strace/strace-4.9/Makefile-ptest.patch
+++ /dev/null
@@ -1,53 +0,0 @@
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 configure.ac | 2 +-
9 tests/Makefile.am | 18 ++++++++++++++++++
10 2 files changed, 19 insertions(+), 1 deletion(-)
11
12diff --git a/configure.ac b/configure.ac
13index 054f85b..9aec566 100644
14--- a/configure.ac
15+++ b/configure.ac
16@@ -6,7 +6,7 @@ AC_INIT([strace],
17 AC_CONFIG_SRCDIR([strace.c])
18 AC_CONFIG_AUX_DIR([.])
19 AC_CONFIG_HEADERS([config.h])
20-AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules parallel-tests])
21+AM_INIT_AUTOMAKE([foreign dist-xz no-dist-gzip silent-rules serial-tests])
22 AM_MAINTAINER_MODE
23 AC_CANONICAL_HOST
24
25diff --git a/tests/Makefile.am b/tests/Makefile.am
26index 922452a..b17837f 100644
27--- a/tests/Makefile.am
28+++ b/tests/Makefile.am
29@@ -37,3 +37,21 @@ TEST_LOG_COMPILER = $(srcdir)/run.sh
30 EXTRA_DIST = init.sh run.sh sigaction.awk $(TESTS)
31
32 CLEANFILES = $(TESTS:=.tmp)
33+
34+buildtest-TESTS: $(check_PROGRAMS) $(TESTS)
35+
36+install-ptest:
37+ install $(BUILDDIR)/strace $(DESTDIR)
38+ install "$(srcdir)/.."/strace-log-merge $(DESTDIR)
39+ install -d $(DESTDIR)/$(TESTDIR)
40+ cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR)
41+ sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile
42+ sed -i -e 's/bash/sh/' $(DESTDIR)/$(TESTDIR)/Makefile
43+ for file in $(check_PROGRAMS); do \
44+ install $(BUILDDIR)/$(TESTDIR)/$$file $(DESTDIR)/$(TESTDIR); \
45+ done
46+ for file in $(EXTRA_DIST); do \
47+ install $(srcdir)/$$file $(DESTDIR)/$(TESTDIR); \
48+ sed -i -e 's/$${srcdir=.}/./g' $(DESTDIR)/$(TESTDIR)/$$file; \
49+ done
50+ for i in net net-fd scm_rights-fd sigaction; do sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/$$i.test; done
51--
521.9.1
53
diff --git a/meta/recipes-devtools/strace/strace-4.9/git-version-gen b/meta/recipes-devtools/strace/strace-4.9/git-version-gen
deleted file mode 100755
index 8fee74e121..0000000000
--- a/meta/recipes-devtools/strace/strace-4.9/git-version-gen
+++ /dev/null
@@ -1,225 +0,0 @@
1#!/bin/sh
2# Print a version string.
3scriptversion=2012-12-31.23; # UTC
4
5# Copyright (C) 2007-2013 Free Software Foundation, Inc.
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20# This script is derived from GIT-VERSION-GEN from GIT: http://git.or.cz/.
21# It may be run two ways:
22# - from a git repository in which the "git describe" command below
23# produces useful output (thus requiring at least one signed tag)
24# - from a non-git-repo directory containing a .tarball-version file, which
25# presumes this script is invoked like "./git-version-gen .tarball-version".
26
27# In order to use intra-version strings in your project, you will need two
28# separate generated version string files:
29#
30# .tarball-version - present only in a distribution tarball, and not in
31# a checked-out repository. Created with contents that were learned at
32# the last time autoconf was run, and used by git-version-gen. Must not
33# be present in either $(srcdir) or $(builddir) for git-version-gen to
34# give accurate answers during normal development with a checked out tree,
35# but must be present in a tarball when there is no version control system.
36# Therefore, it cannot be used in any dependencies. GNUmakefile has
37# hooks to force a reconfigure at distribution time to get the value
38# correct, without penalizing normal development with extra reconfigures.
39#
40# .version - present in a checked-out repository and in a distribution
41# tarball. Usable in dependencies, particularly for files that don't
42# want to depend on config.h but do want to track version changes.
43# Delete this file prior to any autoconf run where you want to rebuild
44# files to pick up a version string change; and leave it stale to
45# minimize rebuild time after unrelated changes to configure sources.
46#
47# As with any generated file in a VC'd directory, you should add
48# /.version to .gitignore, so that you don't accidentally commit it.
49# .tarball-version is never generated in a VC'd directory, so needn't
50# be listed there.
51#
52# Use the following line in your configure.ac, so that $(VERSION) will
53# automatically be up-to-date each time configure is run (and note that
54# since configure.ac no longer includes a version string, Makefile rules
55# should not depend on configure.ac for version updates).
56#
57# AC_INIT([GNU project],
58# m4_esyscmd([build-aux/git-version-gen .tarball-version]),
59# [bug-project@example])
60#
61# Then use the following lines in your Makefile.am, so that .version
62# will be present for dependencies, and so that .version and
63# .tarball-version will exist in distribution tarballs.
64#
65# EXTRA_DIST = $(top_srcdir)/.version
66# BUILT_SOURCES = $(top_srcdir)/.version
67# $(top_srcdir)/.version:
68# echo $(VERSION) > $@-t && mv $@-t $@
69# dist-hook:
70# echo $(VERSION) > $(distdir)/.tarball-version
71
72
73me=$0
74
75version="git-version-gen $scriptversion
76
77Copyright 2011 Free Software Foundation, Inc.
78There is NO warranty. You may redistribute this software
79under the terms of the GNU General Public License.
80For more information about these matters, see the files named COPYING."
81
82usage="\
83Usage: $me [OPTION]... \$srcdir/.tarball-version [TAG-NORMALIZATION-SED-SCRIPT]
84Print a version string.
85
86Options:
87
88 --prefix prefix of git tags (default 'v')
89 --fallback fallback version to use if \"git --version\" fails
90
91 --help display this help and exit
92 --version output version information and exit
93
94Running without arguments will suffice in most cases."
95
96prefix=v
97fallback=
98
99while test $# -gt 0; do
100 case $1 in
101 --help) echo "$usage"; exit 0;;
102 --version) echo "$version"; exit 0;;
103 --prefix) shift; prefix="$1";;
104 --fallback) shift; fallback="$1";;
105 -*)
106 echo "$0: Unknown option '$1'." >&2
107 echo "$0: Try '--help' for more information." >&2
108 exit 1;;
109 *)
110 if test "x$tarball_version_file" = x; then
111 tarball_version_file="$1"
112 elif test "x$tag_sed_script" = x; then
113 tag_sed_script="$1"
114 else
115 echo "$0: extra non-option argument '$1'." >&2
116 exit 1
117 fi;;
118 esac
119 shift
120done
121
122if test "x$tarball_version_file" = x; then
123 echo "$usage"
124 exit 1
125fi
126
127tag_sed_script="${tag_sed_script:-s/x/x/}"
128
129nl='
130'
131
132# Avoid meddling by environment variable of the same name.
133v=
134v_from_git=
135
136# First see if there is a tarball-only version file.
137# then try "git describe", then default.
138if test -f $tarball_version_file
139then
140 v=`cat $tarball_version_file` || v=
141 case $v in
142 *$nl*) v= ;; # reject multi-line output
143 [0-9]*) ;;
144 *) v= ;;
145 esac
146 test "x$v" = x \
147 && echo "$0: WARNING: $tarball_version_file is missing or damaged" 1>&2
148fi
149
150if test "x$v" != x
151then
152 : # use $v
153# Otherwise, if there is at least one git commit involving the working
154# directory, and "git describe" output looks sensible, use that to
155# derive a version string.
156elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
157 && v=`git describe --abbrev=4 --match="$prefix*" HEAD 2>/dev/null \
158 || git describe --abbrev=4 HEAD 2>/dev/null` \
159 && v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \
160 && case $v in
161 $prefix[0-9]*) ;;
162 *) (exit 1) ;;
163 esac
164then
165 # Is this a new git that lists number of commits since the last
166 # tag or the previous older version that did not?
167 # Newer: v6.10-77-g0f8faeb
168 # Older: v6.10-g0f8faeb
169 case $v in
170 *-*-*) : git describe is okay three part flavor ;;
171 *-*)
172 : git describe is older two part flavor
173 # Recreate the number of commits and rewrite such that the
174 # result is the same as if we were using the newer version
175 # of git describe.
176 vtag=`echo "$v" | sed 's/-.*//'`
177 commit_list=`git rev-list "$vtag"..HEAD 2>/dev/null` \
178 || { commit_list=failed;
179 echo "$0: WARNING: git rev-list failed" 1>&2; }
180 numcommits=`echo "$commit_list" | wc -l`
181 v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
182 test "$commit_list" = failed && v=UNKNOWN
183 ;;
184 esac
185
186 # Change the first '-' to a '.', so version-comparing tools work properly.
187 # Remove the "g" in git describe's output string, to save a byte.
188 v=`echo "$v" | sed 's/-/.0./;s/\(.*\)-g/\1-/'`;
189 v_from_git=1
190elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
191 v=UNKNOWN
192else
193 v=$fallback
194fi
195
196v=`echo "$v" |sed "s/^$prefix//"`
197
198# Test whether to append the "-dirty" suffix only if the version
199# string we're using came from git. I.e., skip the test if it's "UNKNOWN"
200# or if it came from .tarball-version.
201if test "x$v_from_git" != x; then
202 # Don't declare a version "dirty" merely because a time stamp has changed.
203 git update-index --refresh > /dev/null 2>&1
204
205 dirty=`exec 2>/dev/null;git diff-index --name-only HEAD` || dirty=
206 case "$dirty" in
207 '') ;;
208 *) # Append the suffix only if there isn't one already.
209 case $v in
210 *-dirty) ;;
211 *) v="$v-dirty" ;;
212 esac ;;
213 esac
214fi
215
216# Omit the trailing newline, so that m4_esyscmd can use the result directly.
217echo "$v" | tr -d "$nl"
218
219# Local variables:
220# eval: (add-hook 'write-file-hooks 'time-stamp)
221# time-stamp-start: "scriptversion="
222# time-stamp-format: "%:y-%02m-%02d.%02H"
223# time-stamp-time-zone: "UTC"
224# time-stamp-end: "; # UTC"
225# End:
diff --git a/meta/recipes-devtools/strace/strace-4.9/run-ptest b/meta/recipes-devtools/strace/strace-4.9/run-ptest
deleted file mode 100755
index 133cf92d02..0000000000
--- a/meta/recipes-devtools/strace/strace-4.9/run-ptest
+++ /dev/null
@@ -1,2 +0,0 @@
1#!/bin/sh
2make -C tests -k runtest-TESTS
diff --git a/meta/recipes-devtools/strace/strace-4.9/strace-add-configure-options.patch b/meta/recipes-devtools/strace/strace-4.9/strace-add-configure-options.patch
deleted file mode 100644
index 15e37bce03..0000000000
--- a/meta/recipes-devtools/strace/strace-4.9/strace-add-configure-options.patch
+++ /dev/null
@@ -1,65 +0,0 @@
1Add options "aio" and "acl" to enable/disable libaio and acl support.
2
3Upstream-Status: Pending
4
5Signed-off-by: Kai Kang <kai.kang@windriver.com>
6Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
7---
8 configure.ac | 27 ++++++++++++++++++++++++++-
9 1 file changed, 26 insertions(+), 1 deletion(-)
10
11diff --git a/configure.ac b/configure.ac
12index 054f85b..8ed49f1 100644
13--- a/configure.ac
14+++ b/configure.ac
15@@ -238,7 +238,6 @@ AC_CHECK_HEADERS(m4_normalize([
16 poll.h
17 scsi/sg.h
18 stropts.h
19- sys/acl.h
20 sys/asynch.h
21 sys/conf.h
22 sys/epoll.h
23@@ -250,6 +249,18 @@ AC_CHECK_HEADERS(m4_normalize([
24 sys/uio.h
25 sys/vfs.h
26 ]))
27+
28+AC_ARG_ENABLE([acl],
29+ [AS_HELP_STRING([--enable-acl], [turn on acl support])],
30+ [case $enableval in
31+ yes)
32+ AC_CHECK_HEADERS([sys/acl.h])
33+ ;;
34+ no) ;;
35+ *) AC_MSG_ERROR([bad value $enableval for aio option]) ;;
36+ esac]
37+)
38+
39 AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
40 [], [], [#include <stddef.h>
41 #include <sys/socket.h>
42@@ -649,6 +660,20 @@ if test "x$st_cv_have___builtin_popcount" = xyes; then
43 [Define to 1 if the system provides __builtin_popcount function])
44 fi
45
46+AC_ARG_ENABLE([aio],
47+ [AS_HELP_STRING([--enable-aio], [turn on libaio support])],
48+ [case $enableval in
49+ yes)
50+ AC_CHECK_HEADERS([libaio.h], [
51+ AC_CHECK_MEMBERS([struct iocb.u.c.flags],,, [#include <libaio.h>])
52+ AC_CHECK_DECLS([IO_CMD_PWRITE, IO_CMD_PWRITEV],,, [#include <libaio.h>])
53+ ])
54+ ;;
55+ no) ;;
56+ *) AC_MSG_ERROR([bad value $enableval for aio option]) ;;
57+ esac]
58+)
59+
60 AC_PATH_PROG([PERL], [perl])
61
62 dnl stack trace with libunwind
63--
641.9.1
65