summaryrefslogtreecommitdiffstats
path: root/patches/latrace-0.5.11
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2016-11-21 14:02:08 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-11-28 11:41:40 +0100
commit9fe8365ed8c9c161e22c79e2c4b4e4af122025f5 (patch)
tree8928237d1aa60aa4f440572cf1640e1b8ff2315f /patches/latrace-0.5.11
parentf21814906b4e8c8843623af698ff9832199f34f5 (diff)
downloadptxdist-9fe8365ed8c9c161e22c79e2c4b4e4af122025f5.tar.gz
ptxdist-9fe8365ed8c9c161e22c79e2c4b4e4af122025f5.tar.xz
latrace: add new package
This change adds a different approach to log library calls than 'ltrace' does. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/latrace-0.5.11')
-rw-r--r--patches/latrace-0.5.11/0001-Buildsystem-fix-configure-creation.patch25
-rw-r--r--patches/latrace-0.5.11/0002-Buildsystem-fix-cross-compilation.patch53
l---------patches/latrace-0.5.11/autogen.sh1
-rw-r--r--patches/latrace-0.5.11/series5
4 files changed, 84 insertions, 0 deletions
diff --git a/patches/latrace-0.5.11/0001-Buildsystem-fix-configure-creation.patch b/patches/latrace-0.5.11/0001-Buildsystem-fix-configure-creation.patch
new file mode 100644
index 000000000..8da3bceae
--- /dev/null
+++ b/patches/latrace-0.5.11/0001-Buildsystem-fix-configure-creation.patch
@@ -0,0 +1,25 @@
+From: Juergen Borleis <jbe@pengutronix.de>
+Date: Fri, 11 Nov 2016 10:47:48 +0100
+Subject: [PATCH] Buildsystem: fix configure creation
+
+According to the AC_DEFINE documentation no parameter is possible, but it
+fails to create the configure script
+
+Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 2c287d128f28..42bb7ec78e0f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -88,7 +88,7 @@ AC_DEFINE(CONFIG_VERSION, "AC_PACKAGE_VERSION", [Version of latrace.])
+ if test "$unamem" = "x86_64" -o\
+ "$unamem" = "i686" -o\
+ "$unamem" = "arm"; then
+- AC_DEFINE(CONFIG_ARCH_HAVE_ARGS)
++ AC_DEFINE(CONFIG_ARCH_HAVE_ARGS, [], [argument display support])
+ AC_SUBST(CONFIG_ARCH_HAVE_ARGS, "y")
+ else
+ AC_MSG_WARN([Arguments display support disabled])
diff --git a/patches/latrace-0.5.11/0002-Buildsystem-fix-cross-compilation.patch b/patches/latrace-0.5.11/0002-Buildsystem-fix-cross-compilation.patch
new file mode 100644
index 000000000..359228fb6
--- /dev/null
+++ b/patches/latrace-0.5.11/0002-Buildsystem-fix-cross-compilation.patch
@@ -0,0 +1,53 @@
+From: Juergen Borleis <jbe@pengutronix.de>
+Date: Fri, 11 Nov 2016 10:48:21 +0100
+Subject: [PATCH] Buildsystem: fix cross compilation
+
+Its a really bad idea to use build host's 'uname'...
+
+Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
+---
+ configure.ac | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 42bb7ec78e0f..4671c2e0c9a5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -75,19 +75,19 @@ AC_TYPE_UINT8_T
+ AC_SYS_LARGEFILE
+
+ date=`date "+%B %G"`
+-unamem=`uname -m | sed -e 's/i.86/i686/' -e 's/^armv.*/arm/'`
++AC_CACHE_VAL([latrace_arch], [latrace_arch=`uname -m | sed -e 's/i.86/i686/' -e 's/^armv.*/arm/'`])
+
+ AC_SUBST(CONFIG_DATE, "$date")
+-AC_SUBST(CONFIG_SYSDEP_DIR, "$unamem")
++AC_SUBST(CONFIG_SYSDEP_DIR, "$latrace_arch")
+ AC_SUBST(CONFIG_VERSION, "AC_PACKAGE_VERSION")
+
+ AC_DEFINE(CONFIG_LT_CONFIG, "/tmp/lt-config", [Temporary directory prefix.])
+ AC_DEFINE(CONFIG_VERSION, "AC_PACKAGE_VERSION", [Version of latrace.])
+
+ # for following architectures we have argument display support
+-if test "$unamem" = "x86_64" -o\
+- "$unamem" = "i686" -o\
+- "$unamem" = "arm"; then
++if test "$latrace_arch" = "x86_64" -o\
++ "$latrace_arch" = "i686" -o\
++ "$latrace_arch" = "arm"; then
+ AC_DEFINE(CONFIG_ARCH_HAVE_ARGS, [], [argument display support])
+ AC_SUBST(CONFIG_ARCH_HAVE_ARGS, "y")
+ else
+@@ -95,9 +95,9 @@ else
+ fi
+
+ # for following architectures we have automated tests support
+-if test "$unamem" = "x86_64" -o\
+- "$unamem" = "i686" -o\
+- "$unamem" = "arm" ; then
++if test "$latrace_arch" = "x86_64" -o\
++ "$latrace_arch" = "i686" -o\
++ "$latrace_arch" = "arm" ; then
+ AC_SUBST(CONFIG_ARCH_HAVE_TEST, "y")
+ else
+ AC_MSG_WARN([No automated test support])
diff --git a/patches/latrace-0.5.11/autogen.sh b/patches/latrace-0.5.11/autogen.sh
new file mode 120000
index 000000000..9f8a4cb7d
--- /dev/null
+++ b/patches/latrace-0.5.11/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh \ No newline at end of file
diff --git a/patches/latrace-0.5.11/series b/patches/latrace-0.5.11/series
new file mode 100644
index 000000000..b3d7039ce
--- /dev/null
+++ b/patches/latrace-0.5.11/series
@@ -0,0 +1,5 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Buildsystem-fix-configure-creation.patch
+0002-Buildsystem-fix-cross-compilation.patch
+# 2fce77713402030eb4733818ed9fa789 - git-ptx-patches magic