patches/ppl/0.11.1/100-fix-java-test-vs-enabled-shared.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)
     1 commit 25bb77587944768581225d1c0048facab32cf019
     2 Author: Roberto Bagnara <bagnara@cs.unipr.it>
     3 Date:   Wed May 18 09:35:36 2011 +0200
     4 
     5     Moved misplaced conditional.
     6 
     7 diff --git a/interfaces/Java/tests/Makefile.am b/interfaces/Java/tests/Makefile.am
     8 index 64ba864..607bbc6 100644
     9 --- a/interfaces/Java/tests/Makefile.am
    10 +++ b/interfaces/Java/tests/Makefile.am
    11 @@ -51,6 +51,8 @@ Parma_Polyhedra_Library_test2.java \
    12  PPL_Test.java \
    13  ppl_java_tests_common
    14  
    15 +if ENABLE_SHARED
    16 +
    17  check_JAVA = \
    18  ppl_java_generated_tests.java \
    19  Test_Executor.java \
    20 @@ -62,8 +64,6 @@ Parma_Polyhedra_Library_test1.java \
    21  Parma_Polyhedra_Library_test2.java \
    22  PPL_Test.java
    23  
    24 -if ENABLE_SHARED
    25 -
    26  CLASSPATH = ../ppl_java.jar:.
    27  JAVACFLAGS = -classpath $(CLASSPATH)
    28