Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 2002 08:30:09 -0700 (PDT)
From:      Marco Molteni <molter@tin.it>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/41469: [MAINTAINER UPDATE] astro/gpsdrive
Message-ID:  <200208121530.g7CFU9c9047558@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/41469; it has been noted by GNATS.

From: Marco Molteni <molter@tin.it>
To: Christian Weisgerber <naddy@freebsd.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/41469: [MAINTAINER UPDATE] astro/gpsdrive
Date: Mon, 12 Aug 2002 17:23:42 +0200

 On Mon, 12 Aug 2002 16:17:13 +0200, Christian Weisgerber
 <naddy@freebsd.org> wrote:
 
 > > ok, could you check the following patch?
 > 
 > Yes, this builds.
 
 Good. I am including at the end of the email a patch against the current
 astro/gpsdrive directory. Could you commit that? I assume I don't need
 to bump the PORTREVISION. 
 
 > You may also want to investigate these:
 > gpsdrive.c:5917: warning: cast to pointer from integer of different
 > size gpsdrive.c:6722: warning: cast to pointer from integer of
 > different size settings.c:261: warning: cast to pointer from integer
 > of different size
 
 I assume you get these from compiling on the alpha, is this correct?
 
 First one:
 
     5914  gint
     5915  setup2_cb (GtkWidget *widget, guint datum)
     5916  {
     5917    gtk_widget_destroy (GTK_WIDGET (datum));
 
 Second one:
 
     6700  gint
     6701  addwaypoint (GtkWidget *widget, guint datum)
     ...
     6722    gtk_widget_destroy (GTK_WIDGET (datum));
 
 This is GTK/GDK stuff, I really don't know what to do with it. Any
 suggestions? Besides the warnings, does the program run on the alpha?
 
 
 marco
 
 
 diff -u -rN gpsdrive/files/patch-src-battery.c gpsdrive-1.26r4/files/patch-src-battery.c
 --- gpsdrive/files/patch-src-battery.c	Thu Jan  1 01:00:00 1970
 +++ gpsdrive-1.26r4/files/patch-src-battery.c	Mon Aug 12 17:12:00 2002
 @@ -0,0 +1,43 @@
 +--- src/battery.c.orig	Mon Aug 12 14:07:55 2002
 ++++ src/battery.c	Mon Aug 12 14:16:49 2002
 +@@ -70,10 +70,11 @@
 + #include <gdk-pixbuf/gdk-pixbuf.h>
 + #include <gtk/gtk.h>
 + 
 +-#ifdef __FreeBSD__
 ++/* APM is i386-specific. */
 ++#if defined(__FreeBSD__) && defined(__i386__)
 + #include <fcntl.h>
 + #include <machine/apm_bios.h>
 +-#endif /* __FreeBSD__ */
 ++#endif /* __FreeBSD__ && __i386__ */
 + 
 + #include "../config.h"
 + #include "battery.h"
 +@@ -237,7 +238,7 @@
 + #endif /* Linux */
 + 
 + 
 +-#ifdef __FreeBSD__
 ++#if defined(__FreeBSD__) && defined(__i386__)
 + /*
 +  * Return TRUE on success, FALSE on error.
 +  */
 +@@ -311,7 +312,7 @@
 +   close (fd);
 +   return TRUE;
 + }
 +-#endif /* __FreeBSD__ */
 ++#endif /* __FreeBSD__ && __i386__ */
 + 
 + 
 + /*
 +@@ -326,7 +327,7 @@
 +     }
 + #if defined(__linux__)
 +   return battery_get_values_linux (&batlevel, &batloading);
 +-#elif defined(__FreeBSD__)
 ++#elif defined(__FreeBSD__) && defined(__i386__)
 +   return battery_get_values_fbsd (&batlevel, &batloading);
 + #else
 +   /* add support for your favourite OS here */

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?200208121530.g7CFU9c9047558>