Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 1998 19:16:20 -0800 (PST)
From:      dburr@POBoxes.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/6076: Upgrade port graphics/sane to version 0.71
Message-ID:  <199803210316.TAA25545@colossus.dyn.ml.org>

next in thread | raw e-mail | index | archive | help

>Number:         6076
>Category:       ports
>Synopsis:       Upgrade port graphics/sane to version 0.71
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 20 19:20:01 PST 1998
>Last-Modified:
>Originator:     Donald Burr
>Organization:
Starfleet Command
>Release:        FreeBSD 2.2.5-RELEASE i386
>Environment:
Built on 2.2.5-RELEASE
	

>Description:
Version 0.71 of SANE (Scanner Access Now Easy) is out, with more supported
devices and much improvements.  Here's the port upgrade.
	

>How-To-Repeat:

	

>Fix:
	
#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.1.4).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1998-03-20 19:14 PST by <dburr@control.colossus.dyn.ml.org>.
# Source directory was `/usr/ports/graphics'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#     58 -rw-r--r-- sane/files/md5
#     80 -rw-r--r-- sane/pkg/COMMENT
#    599 -rw-r--r-- sane/pkg/DESCR
#   2397 -rw-r--r-- sane/pkg/PLIST
#    728 -rw-r--r-- sane/Makefile
#    761 -rw-r--r-- sane/patches/patch-ab
#    456 -rw-r--r-- sane/patches/patch-ac
#    776 -rw-r--r-- sane/patches/patch-aa
#    662 -rw-r--r-- sane/patches/patch-ad
#    799 -rw-r--r-- sane/patches/patch-ae
#   1164 -rw-r--r-- sane/patches/patch-af
#    829 -rw-r--r-- sane/patches/patch-ag
#    747 -rw-r--r-- sane/patches/patch-ah
#
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
  shar_touch=touch
else
  shar_touch=:
  echo
  echo 'WARNING: not restoring timestamps.  Consider getting and'
  echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 1231235999 $$.touch
#
# ============= sane/files/md5 ==============
if test ! -d 'sane'; then
  echo 'x - creating directory sane'
  mkdir 'sane'
fi
if test ! -d 'sane/files'; then
  echo 'x - creating directory sane/files'
  mkdir 'sane/files'
fi
if test -f 'sane/files/md5' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/files/md5 (file already exists)'
else
  echo 'x - extracting sane/files/md5 (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/files/md5' &&
MD5 (sane-0.71.tar.gz) = 761a7f4a106c218e8c1d6fb1e9ee0c27
SHAR_EOF
  $shar_touch -am 0303005098 'sane/files/md5' &&
  chmod 0644 'sane/files/md5' ||
  echo 'restore of sane/files/md5 failed'
  shar_count="`wc -c < 'sane/files/md5'`"
  test 58 -eq "$shar_count" ||
    echo "sane/files/md5: original size 58, current size $shar_count"
fi
# ============= sane/pkg/COMMENT ==============
if test ! -d 'sane/pkg'; then
  echo 'x - creating directory sane/pkg'
  mkdir 'sane/pkg'
fi
if test -f 'sane/pkg/COMMENT' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/pkg/COMMENT (file already exists)'
else
  echo 'x - extracting sane/pkg/COMMENT (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/pkg/COMMENT' &&
Scanner Access Now Easy, allows you to acquire images from scanners and cameras
SHAR_EOF
  $shar_touch -am 0303201998 'sane/pkg/COMMENT' &&
  chmod 0644 'sane/pkg/COMMENT' ||
  echo 'restore of sane/pkg/COMMENT failed'
  shar_count="`wc -c < 'sane/pkg/COMMENT'`"
  test 80 -eq "$shar_count" ||
    echo "sane/pkg/COMMENT: original size 80, current size $shar_count"
fi
# ============= sane/pkg/DESCR ==============
if test -f 'sane/pkg/DESCR' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/pkg/DESCR (file already exists)'
else
  echo 'x - extracting sane/pkg/DESCR (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/pkg/DESCR' &&
SANE (Scanner Access Now Easy) is a set of tools that allows you to
acquire images from scanners, video cameras, digital cameras, or other
sources attached to your computer.  This is done using the `scanimage'
(command line based) and `xscanimage' (X-based) programs.  SANE also
includes a GIMP plug-in that will allow you to acquire images directly
from the GIMP program.
X
Many (mostly SCSI) scanners and digital cameras are currently supported.
The program is authored around an open, plug-in architecture, so that it
is possible to easily write a driver to support a new device if you so
desire.
SHAR_EOF
  $shar_touch -am 0303202498 'sane/pkg/DESCR' &&
  chmod 0644 'sane/pkg/DESCR' ||
  echo 'restore of sane/pkg/DESCR failed'
  shar_count="`wc -c < 'sane/pkg/DESCR'`"
  test 599 -eq "$shar_count" ||
    echo "sane/pkg/DESCR: original size 599, current size $shar_count"
fi
# ============= sane/pkg/PLIST ==============
if test -f 'sane/pkg/PLIST' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/pkg/PLIST (file already exists)'
else
  echo 'x - extracting sane/pkg/PLIST (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/pkg/PLIST' &&
bin/scanimage
bin/xscanimage
bin/xcam
etc/sane.d/apple.conf
etc/sane.d/coolscan.conf
etc/sane.d/dmc.conf
etc/sane.d/hp.conf
etc/sane.d/microtek.conf
etc/sane.d/mustek.conf
etc/sane.d/net.conf
etc/sane.d/s9036.conf
etc/sane.d/snapscan.conf
etc/sane.d/tamarack.conf
etc/sane.d/umax.conf
etc/sane.d/dll.conf
@dirrm etc/sane.d
include/sane/sane.h
include/sane/sanei.h
include/sane/sanei_backend.h
include/sane/sanei_codec_ascii.h
include/sane/sanei_codec_bin.h
include/sane/sanei_debug.h
include/sane/sanei_net.h
include/sane/sanei_scsi.h
include/sane/sanei_wire.h
include/sane/saneopts.h
include/sane/config.h
@dirrm include/sane
lib/libsane.a
lib/libsane-apple.so.0.71
lib/libsane-apple.so
lib/libsane-apple.la
lib/libsane-apple.a
lib/libsane-canon.so.0.71
lib/libsane-canon.so
lib/libsane-canon.la
lib/libsane-canon.a
lib/libsane-coolscan.so.0.71
lib/libsane-coolscan.so
lib/libsane-coolscan.la
lib/libsane-coolscan.a
lib/libsane-dmc.so.0.71
lib/libsane-dmc.so
lib/libsane-dmc.la
lib/libsane-dmc.a
lib/libsane-epson.so.0.71
lib/libsane-epson.so
lib/libsane-epson.la
lib/libsane-epson.a
lib/libsane-hp.so.0.71
lib/libsane-hp.so
lib/libsane-hp.la
lib/libsane-hp.a
lib/libsane-microtek.so.0.71
lib/libsane-microtek.so
lib/libsane-microtek.la
lib/libsane-microtek.a
lib/libsane-mustek.so.0.71
lib/libsane-mustek.so
lib/libsane-mustek.la
lib/libsane-mustek.a
lib/libsane-net.so.0.71
lib/libsane-net.so
lib/libsane-net.la
lib/libsane-net.a
lib/libsane-pnm.so.0.71
lib/libsane-pnm.so
lib/libsane-pnm.la
lib/libsane-pnm.a
lib/libsane-s9036.so.0.71
lib/libsane-s9036.so
lib/libsane-s9036.la
lib/libsane-s9036.a
lib/libsane-snapscan.so.0.71
lib/libsane.so
lib/libsane-snapscan.so
lib/libsane-snapscan.la
lib/libsane-snapscan.a
lib/libsane-tamarack.so.0.71
lib/libsane-tamarack.so
lib/libsane-tamarack.la
lib/libsane-tamarack.a
lib/libsane-umax.so.0.71
lib/libsane-umax.so
lib/libsane-umax.la
lib/libsane-umax.a
lib/libsane-dll.so.0.71
lib/libsane-dll.so
lib/libsane-dll.la
lib/libsane-dll.a
lib/libsane.so.0.71
@exec /sbin/ldconfig -m %D/lib
man/man1/saned.1.gz
man/man1/scanimage.1.gz
man/man1/xscanimage.1.gz
man/man5/sane-epson.5.gz
man/man5/sane-microtek.5.gz
man/man5/sane-net.5.gz
man/man5/sane-qcam.5.gz
man/man5/sane-umax.5.gz
man/man5/sane-scsi.5.gz
man/man5/sane-dll.5.gz
man/man5/sane-hp.5.gz
man/man5/sane-mustek.5.gz
man/man5/sane-pnm.5.gz
man/man5/sane-pint.5.gz
sbin/saned
share/sane-style.rc
SHAR_EOF
  $shar_touch -am 0303031998 'sane/pkg/PLIST' &&
  chmod 0644 'sane/pkg/PLIST' ||
  echo 'restore of sane/pkg/PLIST failed'
  shar_count="`wc -c < 'sane/pkg/PLIST'`"
  test 2397 -eq "$shar_count" ||
    echo "sane/pkg/PLIST: original size 2397, current size $shar_count"
fi
# ============= sane/Makefile ==============
if test -f 'sane/Makefile' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/Makefile (file already exists)'
else
  echo 'x - extracting sane/Makefile (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/Makefile' &&
# New ports collection makefile for:	sane
# Version required:     0.71
# Date created:         Sat Jul 19 16:23:10 MET DST 1997
# Whom:                 gary@hotlava.com
#			obrien@FreeBSD.org
#
# $Id: Makefile,v 1.1.1.1 1998/03/01 00:44:58 obrien Exp $
#
X
DISTNAME=       sane-0.71
CATEGORIES=	graphics
MASTER_SITES=	ftp://ftp.mostang.com/pub/sane/
X
LIB_DEPENDS=	libgtk.so.1.0
X
MAINTAINER=	gary@hotlava.com
X
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
X
MAN1=	saned.1 \
X	scanimage.1 \
X	xscanimage.1
X
MAN5=	sane-epson.5 \
X	sane-microtek.5 \
X	sane-net.5 \
X	sane-qcam.5 \
X	sane-umax.5 \
X	sane-scsi.5 \
X	sane-dll.5 \
X	sane-hp.5 \
X	sane-mustek.5 \
X	sane-pnm.5 \
X	sane-pint.5
X
post-install:
X	${LDCONFIG} -m ${PREFIX}/lib
X
X.include <bsd.port.mk>
SHAR_EOF
  $shar_touch -am 0310155698 'sane/Makefile' &&
  chmod 0644 'sane/Makefile' ||
  echo 'restore of sane/Makefile failed'
  shar_count="`wc -c < 'sane/Makefile'`"
  test 728 -eq "$shar_count" ||
    echo "sane/Makefile: original size 728, current size $shar_count"
fi
# ============= sane/patches/patch-ab ==============
if test ! -d 'sane/patches'; then
  echo 'x - creating directory sane/patches'
  mkdir 'sane/patches'
fi
if test -f 'sane/patches/patch-ab' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/patches/patch-ab (file already exists)'
else
  echo 'x - extracting sane/patches/patch-ab (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/patches/patch-ab' &&
--- backend/Makefile.in.old	Mon Feb 23 23:02:49 1998
+++ backend/Makefile.in	Tue Mar  3 00:57:26 1998
@@ -75,7 +75,7 @@
X 
X %-s.c:	$(srcdir)/stubs.c
X 	rm -f $@
-	ln -s $(srcdir)/stubs.c $@
+	ln -sf $(srcdir)/stubs.c $@
X 
X # Don't delete any intermediate files.
X .PRECIOUS: %-s.c %-s.lo %.lo dll-preload.c
@@ -92,8 +92,8 @@
X 	@$(LIBTOOL) $(MINST) --finish $(libdir)
X 	rm -f $(libdir)/libsane.a $(libdir)/libsane.so \
X 		$(libdir)/libsane.so.$(V_MAJOR)*
-	ln -s libsane-dll.a $(libdir)/libsane.a
-	ln -s libsane-dll.so $(libdir)/libsane.so
+	ln -sf libsane-dll.a $(libdir)/libsane.a
+	ln -sf libsane-dll.so $(libdir)/libsane.so
X 	@cd $(libdir) && for n in libsane-dll.so.$(V_MAJOR)*; do \
X 	  nn=`echo $$n | sed 's,^libsane-dll,libsane,'`; \
X 	  ln -s $$n $$nn; \
SHAR_EOF
  $shar_touch -am 0303005798 'sane/patches/patch-ab' &&
  chmod 0644 'sane/patches/patch-ab' ||
  echo 'restore of sane/patches/patch-ab failed'
  shar_count="`wc -c < 'sane/patches/patch-ab'`"
  test 761 -eq "$shar_count" ||
    echo "sane/patches/patch-ab: original size 761, current size $shar_count"
fi
# ============= sane/patches/patch-ac ==============
if test -f 'sane/patches/patch-ac' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/patches/patch-ac (file already exists)'
else
  echo 'x - extracting sane/patches/patch-ac (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/patches/patch-ac' &&
Gcc gave up unless I did this (on Solaris too).  Hope it was the right
thing to do:
X
--- sanei/sanei_ab306.c.org     Tue Feb 24 22:13:38 1998
+++ sanei/sanei_ab306.c Tue Feb 24 22:41:22 1998
@@ -56,7 +56,7 @@
X static __inline__ void
X outb (u_char value, u_long port)
X {
-  __asm__ __volatile__ ("outb %0,%1" : : "a" value, "d" ((u_short) port));
+  __asm__ __volatile__ ("outb %0,%1" : : "a" (value), "d" ((u_short) port));
X }
X 
X static __inline__ u_char
X
SHAR_EOF
  $shar_touch -am 0303005998 'sane/patches/patch-ac' &&
  chmod 0644 'sane/patches/patch-ac' ||
  echo 'restore of sane/patches/patch-ac failed'
  shar_count="`wc -c < 'sane/patches/patch-ac'`"
  test 456 -eq "$shar_count" ||
    echo "sane/patches/patch-ac: original size 456, current size $shar_count"
fi
# ============= sane/patches/patch-aa ==============
if test -f 'sane/patches/patch-aa' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/patches/patch-aa (file already exists)'
else
  echo 'x - extracting sane/patches/patch-aa (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/patches/patch-aa' &&
--- configure.old	Mon Feb 23 21:55:20 1998
+++ configure	Tue Mar  3 01:47:33 1998
@@ -815,7 +815,7 @@
X 
X # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
X # It thinks the first close brace ends the variable substitution.
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+test -z "$INSTALL_SCRIPT" && INSTALL_PROGRAM='${INSTALL}'
X 
X test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
X 
@@ -3336,7 +3336,7 @@
X #include "confdefs.h"
X #include <$ac_hdr>
X EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp -I/usr/X11R6/include/X11 conftest.$ac_ext >/dev/null 2>conftest.out"
X { (eval echo configure:3341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
X ac_err=`grep -v '^ *+' conftest.out`
X if test -z "$ac_err"; then
SHAR_EOF
  $shar_touch -am 0303022498 'sane/patches/patch-aa' &&
  chmod 0644 'sane/patches/patch-aa' ||
  echo 'restore of sane/patches/patch-aa failed'
  shar_count="`wc -c < 'sane/patches/patch-aa'`"
  test 776 -eq "$shar_count" ||
    echo "sane/patches/patch-aa: original size 776, current size $shar_count"
fi
# ============= sane/patches/patch-ad ==============
if test -f 'sane/patches/patch-ad' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/patches/patch-ad (file already exists)'
else
  echo 'x - extracting sane/patches/patch-ad (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/patches/patch-ad' &&
The "find-scanner" tool needed to be linked against the -lscsi lib,
just like everything else (added $(LIBS) to link target):
X
--- tools/Makefile.in.old	Tue Dec  2 22:44:15 1997
+++ tools/Makefile.in	Tue Mar  3 02:44:07 1998
@@ -32,6 +32,7 @@
X CPPFLAGS = @CPPFLAGS@
X CFLAGS = @CFLAGS@
X LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
X DEFS = @DEFS@
X 
X LIBTOOL = ../libtool
@@ -63,7 +64,8 @@
X 
X find-scanner: find-scanner.o \
X 	../sanei/sanei_scsi.lo ../sanei/sanei_init_debug.lo
-	@$(LIBTOOL) $(MLINK) $(LINK) find-scanner.o $(LIBSANEI) $(LIBLIB)
+	@$(LIBTOOL) $(MLINK) $(LINK) find-scanner.o $(LIBSANEI) $(LIBLIB) \
+		$(LIB) -lscsi
X 
X depend:
X 	makedepend $(INCLUDES) *.c
X
SHAR_EOF
  $shar_touch -am 0303024698 'sane/patches/patch-ad' &&
  chmod 0644 'sane/patches/patch-ad' ||
  echo 'restore of sane/patches/patch-ad failed'
  shar_count="`wc -c < 'sane/patches/patch-ad'`"
  test 662 -eq "$shar_count" ||
    echo "sane/patches/patch-ad: original size 662, current size $shar_count"
fi
# ============= sane/patches/patch-ae ==============
if test -f 'sane/patches/patch-ae' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/patches/patch-ae (file already exists)'
else
  echo 'x - extracting sane/patches/patch-ae (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/patches/patch-ae' &&
A bit of a moot point -- anyone who has gotten around configuring the
"unknown" scsi devices is likely to already have figured out where the
scanner is.  But I guess it doesn't hurt looking, so:
X
The first changed line avoids a syntax error when building on Suns.
X
--- tools/find-scanner.c.orig   Tue Feb 24 06:23:17 1998
+++ tools/find-scanner.c        Sat Feb 28 10:05:15 1998
@@ -347,7 +347,10 @@
X 	  "/dev/scg2a", "/dev/scg2b", "/dev/scg2c", "/dev/scg2d",
X 	  "/dev/scg2e", "/dev/scg2f", "/dev/scg2g",
X 	  "/dev/sg/0", "/dev/sg/1", "/dev/sg/2", "/dev/sg/3",
-	  "/dev/sg/4", "/dev/sg/5", "/dev/sg/6"
+	  "/dev/sg/4", "/dev/sg/5", "/dev/sg/6",
+#elif defined(__FreeBSD__)
+	  "/dev/uk0", "/dev/uk1", "/dev/uk2", "/dev/uk3", "/dev/uk4",
+	  "/dev/uk5", "/dev/uk6",
X #endif
X          0
X        };
X
SHAR_EOF
  $shar_touch -am 0303010498 'sane/patches/patch-ae' &&
  chmod 0644 'sane/patches/patch-ae' ||
  echo 'restore of sane/patches/patch-ae failed'
  shar_count="`wc -c < 'sane/patches/patch-ae'`"
  test 799 -eq "$shar_count" ||
    echo "sane/patches/patch-ae: original size 799, current size $shar_count"
fi
# ============= sane/patches/patch-af ==============
if test -f 'sane/patches/patch-af' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/patches/patch-af (file already exists)'
else
  echo 'x - extracting sane/patches/patch-af (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/patches/patch-af' &&
Libtool kept printing out insults against the system linker, even
though I know for a fact that it is possble to compile, link and
install programs...  After these changes it behaved more reasonably
(it insisted on including the full path to the build directory for
"libsane.so" in the binaries otherwise):
X
I suppose this should be sent to the "libtool" maintainer.  I'm just
including it for the benefit of any other FreeBSD users.
X
On FreeBSD 3.0 it works directly out of the box, though.
X
--- ltconfig.org        Tue Feb 24 22:23:48 1998
+++ ltconfig    Tue Feb 24 23:07:18 1998
@@ -705,6 +705,15 @@
X     hardcode_minus_L=yes
X     ;;
X 
+  freebsd2.2.[56]*)	# The .6 is just a guess...
+    runpath_var=LD_RUN_PATH
+    archive_cmds='$LD -Bshareable -o $lib$libobjs$deplibs /usr/lib/c++rt0.o'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_minus_L=no
+    hardcode_shlibpath_var=no
+    ;;
+
X   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
X   # support.  Future versions do this automatically, but an explicit c++rt0.o
X   # doesn't break anything, and helps significantly (at the cost of a little
X
SHAR_EOF
  $shar_touch -am 0303010498 'sane/patches/patch-af' &&
  chmod 0644 'sane/patches/patch-af' ||
  echo 'restore of sane/patches/patch-af failed'
  shar_count="`wc -c < 'sane/patches/patch-af'`"
  test 1164 -eq "$shar_count" ||
    echo "sane/patches/patch-af: original size 1164, current size $shar_count"
fi
# ============= sane/patches/patch-ag ==============
if test -f 'sane/patches/patch-ag' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/patches/patch-ag (file already exists)'
else
  echo 'x - extracting sane/patches/patch-ag (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/patches/patch-ag' &&
As I got a free SCSI card with the AGFA scanner, to my surprise I also
found that it worked:
X
Now I'll have to find some other use for my old 1542B...  Or, maybe
not - the aic driver doesn't do dma, and the 1505 generates tons of
interrupts, which slows down the system noticeably during scans.
X
--- doc/sane-scsi.man.org       Tue Feb 24 22:33:09 1998
+++ doc/sane-scsi.man   Tue Feb 24 22:49:13 1998
@@ -61,6 +61,16 @@
X .B aic
X driver.
X .TP
+Adaptec 1505
+Works on FreeBSD 2.2.5R and 3.0 using the
+.B aic
+driver, provided that Plug-and-Play support is disabled on the card.
+If there are no
+.I uk
+devices, just do a "sh MAKEDEV uk0" in the "/dev" directory. The
+scanner should then be accessible as "/dev/uk0" if it was probed
+during boot.
+.TP
X Tekram DC390
X Reported to work fine under FreeBSD 2.2.2R with the
X .B amd
X
SHAR_EOF
  $shar_touch -am 0303010598 'sane/patches/patch-ag' &&
  chmod 0644 'sane/patches/patch-ag' ||
  echo 'restore of sane/patches/patch-ag failed'
  shar_count="`wc -c < 'sane/patches/patch-ag'`"
  test 829 -eq "$shar_count" ||
    echo "sane/patches/patch-ag: original size 829, current size $shar_count"
fi
# ============= sane/patches/patch-ah ==============
if test -f 'sane/patches/patch-ah' && test X"$1" != X"-c"; then
  echo 'x - skipping sane/patches/patch-ah (file already exists)'
else
  echo 'x - extracting sane/patches/patch-ah (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'sane/patches/patch-ah' &&
And last, xscanimage got floating exceptions on seemingly normal
calculations when using the pnm backend.  Recalling that there were
similar problems with TCL, I dug up these lines from tcl-7.5:
X
--- frontend/xscanimage.c.org   Sat Feb 28 16:08:58 1998
+++ frontend/xscanimage.c       Sat Feb 28 10:46:01 1998
@@ -59,6 +59,10 @@
X 
X #include <libgimp/gimp.h>
X 
+#ifdef __FreeBSD__
+#  include <floatingpoint.h>
+#endif
+
X static void query (void);
X static void run (char *name, int nparams, GParam * param,
X                 int *nreturn_vals, GParam ** return_vals);
@@ -1703,6 +1707,11 @@
X     ++prog_name;
X   else
X     prog_name = argv[0];
+
+#ifdef __FreeBSD__
+  fpsetround(FP_RN);
+  fpsetmask(0L);
+#endif
X 
X #ifdef HAVE_LIBGIMP_GIMP_H
X   {
X
SHAR_EOF
  $shar_touch -am 0303010598 'sane/patches/patch-ah' &&
  chmod 0644 'sane/patches/patch-ah' ||
  echo 'restore of sane/patches/patch-ah failed'
  shar_count="`wc -c < 'sane/patches/patch-ah'`"
  test 747 -eq "$shar_count" ||
    echo "sane/patches/patch-ah: original size 747, current size $shar_count"
fi
exit 0
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803210316.TAA25545>