Package: geomview
Severity: important
Version: 1.8.1-10
Tags: patch

Hi,

the current version of geomview fails to build on GNU/kFreeBSD.

It needs updated config.guess, config.sub and small tweaks.
Please find attached patch with tweaks. 

For config.guess and config.sub is needed a version
from this year, which is available in the autotools-dev
packages that are in current sarge, and sid.

You can simply copy them manually, but it can also be done 
automatically using the method described in
/usr/share/doc/autotools-dev/README.Debian.gz 

It would also be nice if you can ask upstream 
to include this changes.

Thanks in advance

                        Petr



diff -u geomview-1.8.1/debian/control geomview-1.8.1/debian/control
--- geomview-1.8.1/debian/control
+++ geomview-1.8.1/debian/control
@@ -7,7 +7,7 @@
 Standards-Version: 3.5.8
 
 Package: geomview
-Architecture: i386 powerpc mips m68k arm mipsel sparc
+Architecture: i386 powerpc mips m68k arm mipsel sparc kfreebsd-i386
 Depends: ${shlibs:Depends}
 Description: interactive geometry viewing program
  Geomview is interactive geometry software which is
diff -u geomview-1.8.1/src/lib/oogl/util/futil.c 
geomview-1.8.1/src/lib/oogl/util/futil.c
--- geomview-1.8.1/src/lib/oogl/util/futil.c
+++ geomview-1.8.1/src/lib/oogl/util/futil.c
@@ -193,7 +193,7 @@
        /* Peer into a stdio buffer, check whether it has data available
         * for reading.  Almost portable given the common stdio ancestry.
         */
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
 #define F_HASDATA(f)  ((f)->_IO_read_ptr < (f)->_IO_read_end)
 #else
 #define F_HASDATA(f)  ((f)->_cnt > 0)
@@ -743,7 +743,7 @@
        return dflt;
     if(feof(f))
        return "> END OF FILE\n";
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
     base = (char *)f->_IO_read_base;
     ptr = (char *)f->_IO_read_ptr;
     cnt = ptr - base;

Reply via email to