Subject: pkg/21890: graphics/ogle[_gui] needs some tweaking to work
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Kai.Puolamaki@iki.fi>
List: netbsd-bugs
Date: 06/15/2003 09:01:49
>Number:         21890
>Category:       pkg
>Synopsis:       graphics/ogle[_gui] needs some tweaking to work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 15 09:02:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kai Puolamaki
>Release:        NetBSD 1.6.1
>Organization:
Helsinki University of Technology
>Environment:
NetBSD winnie.localdomain 1.6.1 NetBSD 1.6.1 (WINNIE) #0: Tue Apr 29 20:21:43 EEST 2003     root@winnie.localdomain:/usr/src/sys/arch/i386/compile/WINNIE i386

>Description:
I made instructions on how to install Ogle to NetBSD:
http://www.iki.fi/kaip/netbsd.html#DVD

For Ogle to work in NetBSD the kernel parameters must be modified as
in OpenBSD, see:
http://www.dtek.chalmers.se/groups/dvd/openbsd_install.shtml

graphics/ogle_gui does not work in NetBSD 1.6.1 because the
implementation of dlerror() is broken, see:
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=19024
dlerror() is fixed in netbsd-current, but not in netbsd-1-6.

>How-To-Repeat:

>Fix:
1. Add a post-install message to graphics/ogle that says that you
   must modify the kernel parameters as adviced in:
   http://www.dtek.chalmers.se/groups/dvd/openbsd_install.shtml


2. Add the attached patch to graphics/ogle_gui.


$NetBSD$

--- src/my_glade.c.orig	Sat Jun 14 15:15:24 2003
+++ src/my_glade.c
@@ -37,6 +37,10 @@ static void *my_dlsym(void *handle, char
   new_symbol = g_strdup(symbol);
 #endif
 
+#if defined(__NetBSD__)
+ error = dlerror();
+#endif
+
   fun = dlsym(handle, new_symbol);
   error = dlerror();
   if(error != NULL) {

>Release-Note:
>Audit-Trail:
>Unformatted: