patches/ltrace/0.5.3/150-allow-configurable-arch.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Jul 31 22:27:29 2012 +0200 (2012-07-31)
changeset 3018 7776e8369284
permissions -rw-r--r--
complibs/cloog: create missing m4 dir

Because we now patch configure.in and configure, the Makefile quicks
in a re-build rule as the source files are now more recent than the
bundled generated files, and that fails because the m4 directory
is missing, although on some systems where aclocal is not installed,
the re-build rule does nothing (except a warning).

Always create tht directory.

Reported-by: Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com>
[Also thanks to Thomas De Schampheleire <patrickdepinguin@gmail.com>
for some digging works on this issue]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
jocke@1685
     1
This patch is to ensure the proper ARCH is selected when cross compiling.  Make
jocke@1685
     2
sure to call the configure script with, e.g., HOST=arm ./configure to select 
jocke@1685
     3
the arm sysdeps.
jocke@1685
     4
jocke@1685
     5
	Joachim Nilsson <jocke@vmlinux.org>
jocke@1685
     6
jocke@1685
     7
diff -ru ltrace-0.5.3.orig/configure ltrace-0.5.3/configure
jocke@1685
     8
--- ltrace-0.5.3.orig/configure	2010-01-02 11:05:55.000000000 +0100
jocke@1685
     9
+++ ltrace-0.5.3/configure	2010-01-02 20:49:11.000000000 +0100
jocke@1685
    10
@@ -110,7 +110,7 @@
jocke@1685
    11
 #
jocke@1685
    12
 # Makefile.in -> Makefile
jocke@1685
    13
 #
jocke@1685
    14
-x_subst_vars='PACKAGE_VERSION HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
jocke@1685
    15
+x_subst_vars='PACKAGE_VERSION HOST HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
jocke@1685
    16
 
jocke@1685
    17
 for i in $x_subst_vars
jocke@1685
    18
 do
jocke@1685
    19
Only in ltrace-0.5.3: configure~
jocke@1685
    20
diff -ru ltrace-0.5.3.orig/Makefile.in ltrace-0.5.3/Makefile.in
jocke@1685
    21
--- ltrace-0.5.3.orig/Makefile.in	2010-01-02 11:05:55.000000000 +0100
jocke@1685
    22
+++ ltrace-0.5.3/Makefile.in	2010-01-03 01:28:41.000000000 +0100
jocke@1685
    23
@@ -1,10 +1,12 @@
jocke@1685
    24
 #
jocke@1685
    25
 # ltrace's Makefile.in
jocke@1685
    26
 #
jocke@1685
    27
-
jocke@1685
    28
+MY_TARGET       = @HOST@
jocke@1685
    29
+ifdef MY_TARGET
jocke@1685
    30
+ARCH            = $(MY_TARGET)
jocke@1685
    31
+endif
jocke@1685
    32
 #OS		:= $(shell uname -s)
jocke@1685
    33
 OS		:= @HOST_OS@
jocke@1685
    34
-
jocke@1685
    35
 TOPDIR		= $(shell pwd)
jocke@1685
    36
 
jocke@1685
    37
 prefix		= @prefix@
jocke@1685
    38
Only in ltrace-0.5.3: Makefile.in~
jocke@1685
    39
diff -ru ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile ltrace-0.5.3/sysdeps/linux-gnu/Makefile
jocke@1685
    40
--- ltrace-0.5.3.orig/sysdeps/linux-gnu/Makefile	2010-01-02 11:05:55.000000000 +0100
jocke@1685
    41
+++ ltrace-0.5.3/sysdeps/linux-gnu/Makefile	2010-01-02 20:49:51.000000000 +0100
jocke@1685
    42
@@ -1,4 +1,4 @@
jocke@1685
    43
-ARCH		:=	$(shell uname -m | sed \
jocke@1685
    44
+ARCH		?=	$(shell uname -m | sed \
jocke@1685
    45
 				-e s/i.86/i386/ \
jocke@1685
    46
 				-e s/sun4u/sparc64/ \
jocke@1685
    47
 				-e s/sparc64/sparc/ \
jocke@1685
    48
Only in ltrace-0.5.3/sysdeps/linux-gnu: Makefile~