patches/ltrace/0.5.3/150-allow-configurable-arch.patch
author Anthony Foiani <anthony.foiani@gmail.com>
Thu May 19 23:09:43 2011 +0200 (2011-05-19)
branch1.11
changeset 2465 5f98b7a90fbc
permissions -rw-r--r--
complibs/ppl: fix 0.11-0.11.2 to compile with --disable-shared

PPL 0.11 (through 0.11.2) had a small bug where it still tried to build
and test its Java interface even when shared libraries are disabled.
Since that's exactly what ct-ng does, it explodes.

This is the patch from the PPL authors (see final link below).

More information can be found in these messages/threads:

Anthony's initial report and analysis with Yann:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00046.html

Ron Flory hit the same problem:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00054.html

Anthony's report to the ppl-devel list:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017450.html

Roberto's reply with a link to the fix in the PPL git repo:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017455.html

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
(transplanted from 139b85d70b623e51f7585e7c64ecb8c6a6cf4567)
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~