[Pkg-scicomp-devel] Bug#576896: libglpk-java does not build on kfreebsd

glpk xypron xypron.glpk at gmx.de
Tue Sep 7 23:02:49 UTC 2010


Make does not run because GCJ javac ignores the -sourcepath
parameter. It can be replaced by the -classpath parameter.

--- trunk/swig/Makefile	2010/06/03 20:29:48	85
+++ trunk/swig/Makefile	2010/09/07 23:00:35	89
@@ -23,7 +23,7 @@
 	javadoc -sourcepath ./src/main/java org.gnu.glpk -d ./target/apidocs
 	jar cf glpk-java-javadoc.jar -C ./target/apidocs .
 	jar cf glpk-java-sources.jar -C ./src/main/java .
-	javac -source 1.6 -target 1.6 -sourcepath ./src/main/java \
+	javac -source 1.6 -target 1.6 -classpath ./src/main/java \
         -d ./target/classes *.java 
 	jar cf glpk-java.jar -C ./target/classes .


Examples contain erroneous @override annotations.

--- trunk/examples/java/LinOrd.java	2010/06/03 20:29:48	85
+++ trunk/examples/java/LinOrd.java	2010/09/07 23:00:35	89
@@ -301,7 +301,6 @@
         }
     }
 
-    @Override
     public void callback(glp_tree tree) {
         if (GLPK.glp_ios_reason(tree) == GLPKConstants.GLP_IROWGEN) {
             remove_inactive(tree);


--- trunk/examples/java/ErrorDemo.java	2010/06/03 20:29:48	85
+++ trunk/examples/java/ErrorDemo.java	2010/09/07 23:00:35	89
@@ -22,7 +22,6 @@
 
     static boolean forceError = true;
 
-    @Override
     public void callback(glp_tree tree) {
         glp_prob prob;
         if (GLPK.glp_ios_reason(tree) == GLPKConstants.GLP_IROWGEN) {


I have corrected these issues in the upstream, which is based
on GLPK-4.44. The same patches could be used on glpk-java-1.0.13.
-- 
GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 Euro/mtl.!*
http://portal.gmx.net/de/go/dsl





More information about the Pkg-scicomp-devel mailing list