Your message dated Thu, 28 Sep 2006 07:47:05 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#345215: fixed in gpsim 0.21.11-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gpsim
Version: 0.20.14-7.2
Severity: important
Tags: patch

Hi,

gpsim fails to build on GNU/kFreeBSD because the code to access to the
parallel port is Linux specific. Please find attached a patch to add
support for GNU/kFreeBSD. It should also work on plain FreeBSD, so the
upstream may be interested in it. 

Could you please apply this patch in the 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.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages gpsim depends on:
ii  libc0.1                2.3-1+kbsd.15     GNU C Library: Shared libraries an
ii  libgcc1                1:4.0.2-5         GCC support library
ii  libglib1.2             1.2.10-10+libtool The GLib library of C routines
ii  libgtk1.2              1.2.10-18         The GIMP Toolkit set of widgets fo
ii  libgtkextra17          0.99.17-2.2       A useful set of widgets for GTK+
ii  libpopt0               1.7-5+libtool     lib for parsing cmdline parameters
ii  libreadline5           5.1-4             GNU readline and history libraries
ii  libstdc++6             4.0.2-5           The GNU Standard C++ Library v3
ii  libx11-6               6.8.2.dfsg.1-11   X Window System protocol client li
ii  libxext6               6.8.2.dfsg.1-11   X Window System miscellaneous exte
ii  libxi6                 6.8.2.dfsg.1-11   X Window System Input extension li
ii  xlibs                  6.8.2.dfsg.1-11   X Window System client libraries m

Versions of packages gpsim recommends:
ii  gputils                       0.13.3-1   GNU PIC utilities

-- no debconf information
Status: in BTS
Author: aurel32

diff -u gpsim-0.20.14/modules/paraface.cc gpsim-0.20.14/modules/paraface.cc
--- gpsim-0.20.14/modules/paraface.cc
+++ gpsim-0.20.14/modules/paraface.cc
@@ -41,9 +41,20 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 
+#if defined(__linux__)
 #include <linux/parport.h>
 #include <linux/ppdev.h>
-
+#elif defined(__FreeBSD_kernel__) || defined(__FreeBSD__)
+#include <dev/ppbus/ppi.h>
+#include <dev/ppbus/ppbconf.h>
+#define PPRSTATUS 		PPIGSTATUS
+#define PPWDATA			PPISDATA
+#define PARPORT_STATUS_ACK	nACK
+#define PARPORT_STATUS_BUSY	nBUSY
+#define PARPORT_STATUS_PAPEROUT	PERROR
+#define PARPORT_STATUS_SELECT	SELECT
+#define PARPORT_STATUS_ERROR	nFAULT
+#endif
 
 #include <errno.h>
 #include <stdlib.h>
@@ -345,14 +356,17 @@
 		perror ("open");
 		return -1;
     }
-
+
+#if defined(PPCLAIM)
     if (ioctl (fd, PPCLAIM)) {
 		perror ("PPCLAIM");
 		close (fd);
         fd=-1;
 		return -1;
     }
+#endif
 
+#if defined(PPNEGOT)
     /* Switch to compatibility mode.  (In fact we don't need
      * to do this, since we start off in compatibility mode
      * anyway, but this demonstrates PPNEGOT.)*/
@@ -364,6 +378,19 @@
 		return -1;
     }
 	return 0;		// SUCCESS
+#elif defined(PPISECR)
+    /* Switch to compatibility mode.  (In fact we don't need
+     * to do this, since we start off in compatibility mode
+     * anyway, but this demonstrates PPISECR.)*/
+    mode = PPB_COMPATIBLE;
+    if (ioctl (fd, PPISECR, &mode)) {
+    		perror ("PPISECR");
+		close (fd);
+        fd=-1;
+		return -1;
+    }
+	return 0;		// SUCCESS
+#endif
 }
 
 // Return low five bits containing:

--- End Message ---
--- Begin Message ---
Source: gpsim
Source-Version: 0.21.11-2

We believe that the bug you reported is fixed in the latest version of
gpsim, which is due to be installed in the Debian FTP archive:

gpsim-dev_0.21.11-2_i386.deb
  to pool/main/g/gpsim/gpsim-dev_0.21.11-2_i386.deb
gpsim_0.21.11-2.diff.gz
  to pool/main/g/gpsim/gpsim_0.21.11-2.diff.gz
gpsim_0.21.11-2.dsc
  to pool/main/g/gpsim/gpsim_0.21.11-2.dsc
gpsim_0.21.11-2_i386.deb
  to pool/main/g/gpsim/gpsim_0.21.11-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steffen Joeris <[EMAIL PROTECTED]> (supplier of updated gpsim package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 28 Sep 2006 18:20:03 +1000
Source: gpsim
Binary: gpsim gpsim-dev
Architecture: source i386
Version: 0.21.11-2
Distribution: unstable
Urgency: low
Maintainer: Steffen Joeris <[EMAIL PROTECTED]>
Changed-By: Steffen Joeris <[EMAIL PROTECTED]>
Description: 
 gpsim      - Simulator for Microchip's PIC microcontrollers
 gpsim-dev  - Libraries needed only for building gpsim components
Closes: 345215
Changes: 
 gpsim (0.21.11-2) unstable; urgency=low
 .
   * Include patch from Aurelien Jarno to make sure it build on
     kfreeBSD-i386 (Closes: #345215)
   * Improve debian/copyright notes and add other copyright holders
   * Include patch from upstream cvs to handle high level language
     debugging and more better pic support (30-picfix.dpatch)
   * Add lintian override for soname missmatch
 .
   * Upload sponsored by Morten Werner Olsen.
Files: 
 f9b6befa64f1bd1801fa00cbc8b36c19 754 electronics optional gpsim_0.21.11-2.dsc
 394687c4218d412038d69f3ca07490c8 23154 electronics optional 
gpsim_0.21.11-2.diff.gz
 891a376b5f7aa4401caa124f31fa5ccd 911152 electronics optional 
gpsim_0.21.11-2_i386.deb
 bb23b0cb13c5437b36e9f7982df6be50 142470 devel optional 
gpsim-dev_0.21.11-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFG9p8w951rgNrq40RAkM9AKCBTn0Qu4s8p6bEoeKgFiwBlcOuYwCfXJ4A
XxLMmGkBujGXDw9/3hWGTSw=
=FLqv
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to