patches/ltrace/0.5.3/150-allow-configurable-arch.patch
author Joachim Nilsson <jocke@vmlinux.org>
Sun Jan 03 16:46:58 2010 +0100 (2010-01-03)
changeset 1685 ecccce88fc71
permissions -rw-r--r--
debug/ltrace: Add support for ltrace-0.5.3

From this version of ltrace the maintainer has removed support for
GNU Autotools, so the patch sets needed to be reworked.

Included is the latest Debian patch, by the Debian ltrace maintainer
Juan Cespedes <cespedes@debian.org>, the OpenEmbedded patches for cross
compiling, by Khem Raj <raj.khem@gmail.com> and a further set of patches
by Joachim Nilsson <jocke@vmlinux.org> for crosstool-NG.
     1 This patch is to ensure the proper ARCH is selected when cross compiling.  Make
     2 sure to call the configure script with, e.g., HOST=arm ./configure to select 
     3 the arm sysdeps.
     4 
     5 	Joachim Nilsson <jocke@vmlinux.org>
     6 
     7 diff -ru ltrace-0.5.3.orig/configure ltrace-0.5.3/configure
     8 --- ltrace-0.5.3.orig/configure	2010-01-02 11:05:55.000000000 +0100
     9 +++ ltrace-0.5.3/configure	2010-01-02 20:49:11.000000000 +0100
    10 @@ -110,7 +110,7 @@
    11  #
    12  # Makefile.in -> Makefile
    13  #
    14 -x_subst_vars='PACKAGE_VERSION HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
    15 +x_subst_vars='PACKAGE_VERSION HOST HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
    16  
    17  for i in $x_subst_vars
    18  do
    19 Only in ltrace-0.5.3: configure~
    20 diff -ru ltrace-0.5.3.orig/Makefile.in ltrace-0.5.3/Makefile.in
    21 --- ltrace-0.5.3.orig/Makefile.in	2010-01-02 11:05:55.000000000 +0100
    22 +++ ltrace-0.5.3/Makefile.in	2010-01-03 01:28:41.000000000 +0100
    23 @@ -1,10 +1,12 @@
    24  #
    25  # ltrace's Makefile.in
    26  #
    27 -
    28 +MY_TARGET       = @HOST@
    29 +ifdef MY_TARGET
    30 +ARCH            = $(MY_TARGET)
    31 +endif
    32  #OS		:= $(shell uname -s)
    33  OS		:= @HOST_OS@
    34 -
    35  TOPDIR		= $(shell pwd)
    36  
    37  prefix		= @prefix@
    38 Only in ltrace-0.5.3: Makefile.in~
    39 diff -ru ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile ltrace-0.5.3/sysdeps/linux-gnu/Makefile
    40 --- ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile	2010-01-02 11:05:55.000000000 +0100
    41 +++ ltrace-0.5.3/sysdeps/linux-gnu/Makefile	2010-01-02 20:49:51.000000000 +0100
    42 @@ -1,4 +1,4 @@
    43 -ARCH		:=	$(shell uname -m | sed \
    44 +ARCH		?=	$(shell uname -m | sed \
    45  				-e s/i.86/i386/ \
    46  				-e s/sun4u/sparc64/ \
    47  				-e s/sparc64/sparc/ \
    48 Only in ltrace-0.5.3/sysdeps/linux-gnu: Makefile~