Re: [math/scilab] configuration failure by error in version check of hdf5

2013-10-24 Thread Mamoru Iwaki

(2013/10/23 22:10), Max Brazhnikov wrote:

On Tue, 22 Oct 2013 16:19:55 -0700 Don Lewis wrote:

On  9 Oct, Mamoru Iwaki wrote:

Hi,

Re: math/scilab (Revision 327746)

I have failed to configure this port in compilation stage these days.
It is caused by an error in version check code for hdf5.  Because the
code writen in Java uses String.compareTo() for numeric comparision,
1.8.10 is not recognized as a newer one than 1.8.4.
Could somebody correct this easy bug?


Scilab 5.4.1 is out now, so the port should probably be updated.  This
version of scilab removed the version check for hdf5.

This is the patch that I'm using with the current port.  Just drop it in
the files directory, run make clean, and then rebuild.

--- configure.orig  2013-10-09 00:04:19.0 -0700
+++ configure   2013-10-09 10:41:39.0 -0700
@@ -12226,14 +12226,15 @@

  public class conftest {
  public static void main(String[] argv) {
-String minVersion=1.8.4;
+int minVersion=10804;
  int[] vers = new int[3];
  try { H5.H5get_libversion(vers); }
  catch (Throwable ex) {System.exit(-1);}
  String ver = vers[0] + .+ vers[1] +.+vers[2];
+int Version = 1*vers[0] + 100*vers[1] + vers[2];

  System.out.println(ver);
-  if (minVersion.compareTo(ver)  0) {
+  if (minVersion  Version) {
 System.exit(-1);
  }


I've committed this patch, thanks!

Max



Thanks, but the committed patch looks different from Don's original 
patch.  Unfortunately, the committed patch still causes version check 
error in configuration stage, and the patch does not work as expected. 
We can find two very similar conftest codes around there.  The original 
patch fixed the bug around line 12226 as above, howver the comitted one 
did around line 12281.  I think the conftest around line 12226 (or both 
conftests around lines 12226 and ass81) should be corrected.  The 
attached patch could be a candidate to correct both conftests.


Cheers
--
-
Mamoru Iwaki
Japan
--- ./configure.orig2011-07-20 08:15:42.0 +
+++ ./configure 2013-10-23 11:59:48.722499060 +
@@ -12226,14 +12226,15 @@
 
 public class conftest {
 public static void main(String[] argv) {
-String minVersion=1.8.4;
+int minVersion=10804;
 int[] vers = new int[3];
 try { H5.H5get_libversion(vers); }
 catch (Throwable ex) {System.exit(-1);}
 String ver = vers[0] + .+ vers[1] +.+vers[2];
+int Version = 1*vers[0] + 100*vers[1] + vers[2];
 
 System.out.println(ver);
-  if (minVersion.compareTo(ver)  0) {
+  if (minVersion  Version) {
System.exit(-1);
 }
 
@@ -12281,14 +12281,15 @@
 
 public class conftest {
 public static void main(String[] argv) {
-String minVersion=1.8.4;
+int minVersion=10804;
 int[] vers = new int[3];
 try { H5.H5get_libversion(vers); }
 catch (Throwable ex) {System.exit(-1);}
 String ver = vers[0] + .+ vers[1] +.+vers[2];
+int Version = 1*vers[0] + 100*vers[1] + vers[2];
 
 System.out.println(ver);
-  if (minVersion.compareTo(ver) != 0) {
+  if (minVersion  Version) {
System.exit(-1);
 }
 
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

Re: [math/scilab] configuration failure by error in version check of hdf5

2013-10-22 Thread Mamoru Iwaki

Thank you for your investigation.
The patch you proposed solved the problem, at least for me.
Now, the patch should be included until newer version appears in the 
port, I think.


Cheers

(2013/10/23 8:19), Don Lewis wrote:

On  9 Oct, Mamoru Iwaki wrote:

Hi,

Re: math/scilab (Revision 327746)

I have failed to configure this port in compilation stage these days.
It is caused by an error in version check code for hdf5.  Because the
code writen in Java uses String.compareTo() for numeric comparision,
1.8.10 is not recognized as a newer one than 1.8.4.
Could somebody correct this easy bug?


Scilab 5.4.1 is out now, so the port should probably be updated.  This
version of scilab removed the version check for hdf5.

This is the patch that I'm using with the current port.  Just drop it in
the files directory, run make clean, and then rebuild.

--- configure.orig  2013-10-09 00:04:19.0 -0700
+++ configure   2013-10-09 10:41:39.0 -0700
@@ -12226,14 +12226,15 @@

  public class conftest {
  public static void main(String[] argv) {
-String minVersion=1.8.4;
+int minVersion=10804;
  int[] vers = new int[3];
  try { H5.H5get_libversion(vers); }
  catch (Throwable ex) {System.exit(-1);}
  String ver = vers[0] + .+ vers[1] +.+vers[2];
+int Version = 1*vers[0] + 100*vers[1] + vers[2];

  System.out.println(ver);
-  if (minVersion.compareTo(ver)  0) {
+  if (minVersion  Version) {
 System.exit(-1);
  }




--
-
Mamoru Iwaki
Japan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


[math/scilab] configuration failure by error in version check of hdf5

2013-10-09 Thread Mamoru Iwaki
Hi,

Re: math/scilab (Revision 327746)

I have failed to configure this port in compilation stage these days.
It is caused by an error in version check code for hdf5.  Because the
code writen in Java uses String.compareTo() for numeric comparision,
1.8.10 is not recognized as a newer one than 1.8.4.
Could somebody correct this easy bug?

Cheers
-- 
-
Mamoru Iwaki
Japan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


workaround for /ports/x11/xlockmore/ with mesagl

2008-03-14 Thread Mamoru Iwaki

Hi,

I encounterd a compile error with the following environment

# $FreeBSD: ports/x11/xlockmore/Makefile,v 1.109 2008/03/13 11:33:44 
miwi Exp $


FreeBSD  7.0-STABLE FreeBSD 7.0-STABLE #0: Thu Mar 13 19:32:06 JST 2008 
root@:/usr/obj/usr/src/sys/GENERIC  i386


The error happened when MESAGL option set.
As a workaround, the following patch works:

--- Makefile.org2008-03-14 20:45:22.0 +0900
+++ Makefile   2008-03-14 20:28:29.0 +0900
@@ -58,6 +58,7 @@
 CONFIGURE_ARGS+=   --with-mesa
 MESALIB=${PTHREAD_LIBS}
 USE_GL=yes
+CFLAGS+=   -I${X11BASE}/include/FTGL
 .else
 CONFIGURE_ARGS+=   --without-mesa --without-opengl
 .endif


Thank you
--
-
Mamoru IWAKI   ([EMAIL PROTECTED])
Graduate School of Science and Technology, Niigata University


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]