On Tue, 09 Oct 2012, Kirill Bychkov wrote:

> On Tue, October 9, 2012 14:04, David Coppa wrote:
> > On Tue, 09 Oct 2012, Kirill Bychkov wrote:
> >
> >> Hi.
> >> tangogps appears to be broken for some time.
> >> Same behaviour with foxtrotgps, which is a fork of tangogps.
> >> Any clues?
> >>
> >
> >
> > Can you try if the following diff fixes your problem?
> >
> > Btw, I don't think it's feasible even if it works, since it would
> > require adding "cares" to WANTLIB for all the ports that use libcurl
> > and they're a bazillion...
> >
> > Another (better) option is to wait for asr by eric@ to be finished
> > and enabled.
> >
> > Ciao,
> > David
> >
> 
> Nope, it's still crashing

I'm sorry. I completely misunderstood the problem here...

The following diff should work:

Index: Makefile
===================================================================
RCS file: /cvs/ports/geo/tangogps/Makefile,v
retrieving revision 1.15
diff -u -p -r1.15 Makefile
--- Makefile    23 Apr 2012 17:15:18 -0000      1.15
+++ Makefile    11 Oct 2012 18:22:01 -0000
@@ -3,7 +3,7 @@
 COMMENT =              lightweight mapping application for use with or without 
GPS
 
 DISTNAME =             tangogps-0.99.4
-REVISION =             7
+REVISION =             8
 
 CATEGORIES =           geo
 
Index: patches/patch-src_main_c
===================================================================
RCS file: patches/patch-src_main_c
diff -N patches/patch-src_main_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_main_c    11 Oct 2012 18:22:01 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Properly call gdk_threads_enter() and gdk_threads_leave() to prevent
+abort() on startup due to gtk trying to unlock a uninitialized
+mutex
+
+--- src/main.c.orig    Thu Oct 11 19:40:20 2012
++++ src/main.c Thu Oct 11 19:40:41 2012
+@@ -124,7 +124,9 @@ main (int argc, char *argv[])
+       
+       init();
+       
++      gdk_threads_enter();
+       gtk_main ();
++      gdk_threads_leave();
+ 
+ 
+       

Reply via email to