Package: primaxscan
Severity: important
Hello,
primaxscan currently fails to build on GNU/kFreeBSD due to the
following reasons:
- kfreebsd-i386 is not in the arch list
- outdated config.guess and config.sub
- use of asm/io.h instead of sys/io.h
Please find attached a patch to fix that. Could you please include it
in your next upload?
Thanks in advance,
Aurelien
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.3-17
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
diff -u primaxscan-0.93beta3/debian/rules primaxscan-0.93beta3/debian/rules
--- primaxscan-0.93beta3/debian/rules
+++ primaxscan-0.93beta3/debian/rules
@@ -14,6 +14,7 @@
configure-stamp:
dh_testdir
# Add here commands to configure the package.
+ cp -f /usr/share/misc/config.{guess,sub} $(CURDIR)
./configure --prefix=/usr --mandir=\$${prefix}/share/man
--infodir=\$${prefix}/share/info
touch configure-stamp
@@ -36,6 +37,7 @@
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
+ rm -f config.{guess,sub}
# Add here commands to clean up after the build process.
-$(MAKE) distclean
diff -u primaxscan-0.93beta3/debian/control primaxscan-0.93beta3/debian/control
--- primaxscan-0.93beta3/debian/control
+++ primaxscan-0.93beta3/debian/control
@@ -2,11 +2,11 @@
Section: misc
Priority: extra
Maintainer: Ola Lundqvist <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 3.0.0), perl, libtiff4-dev, zlib1g-dev (>=
1:1.1.3)
+Build-Depends: debhelper (>> 3.0.0), perl, libtiff4-dev, zlib1g-dev (>=
1:1.1.3), autotools-dev
Standards-Version: 3.6.1
Package: primaxscan
-Architecture: i386 amd64
+Architecture: i386 kfreebsd-i386 amd64
Depends: ${shlibs:Depends}
Description: Primax Colorado Direct scanner software
This is a stand-alone driver program for the Primax Colorado Direct
only in patch2:
unchanged:
--- primaxscan-0.93beta3.orig/lp.c
+++ primaxscan-0.93beta3/lp.c
@@ -25,7 +25,7 @@
-#include <asm/io.h>
+#include <sys/io.h>
#include <stdio.h>
#include <unistd.h>
#include <sched.h>
only in patch2:
unchanged:
--- primaxscan-0.93beta3.orig/primax_scan.c
+++ primaxscan-0.93beta3/primax_scan.c
@@ -22,7 +22,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <asm/io.h>
+#include <sys/io.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>