From 9fe8365ed8c9c161e22c79e2c4b4e4af122025f5 Mon Sep 17 00:00:00 2001 From: Juergen Borleis Date: Mon, 21 Nov 2016 14:02:08 +0100 Subject: latrace: add new package This change adds a different approach to log library calls than 'ltrace' does. Signed-off-by: Juergen Borleis Signed-off-by: Michael Olbrich --- .../0001-Buildsystem-fix-configure-creation.patch | 25 ++++++++++ .../0002-Buildsystem-fix-cross-compilation.patch | 53 ++++++++++++++++++++++ patches/latrace-0.5.11/autogen.sh | 1 + patches/latrace-0.5.11/series | 5 ++ 4 files changed, 84 insertions(+) create mode 100644 patches/latrace-0.5.11/0001-Buildsystem-fix-configure-creation.patch create mode 100644 patches/latrace-0.5.11/0002-Buildsystem-fix-cross-compilation.patch create mode 120000 patches/latrace-0.5.11/autogen.sh create mode 100644 patches/latrace-0.5.11/series (limited to 'patches/latrace-0.5.11') 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 +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 +--- + 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 +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 +--- + 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 -- cgit v1.2.3