On Wed, Sep 05, 2007 at 02:43:26PM +0800, Lars Hansson wrote:
> > hmm, it seems to be playing mp3 playlists fine for me on amd64.
> > what platform?
> i386, dmesg attached.
> 
> >  what are the items in the playlist?  mp3? ogg?
> 
> I tried mp3, ogg and flac, same result with all of them.

OK, the problem appears to be in libjs from the lang/spidermonkey port.

if I'm not mistaken (it's really late for me) patch below makes libjs
use the same locking routines on all platforms on OpenBSD.

at any rate, it lets me play a playlist with gxine on i386.

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org

Index: Makefile
===================================================================
RCS file: /home/cvs/OpenBSD/ports/lang/spidermonkey/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile    29 May 2007 05:52:47 -0000      1.6
+++ Makefile    6 Sep 2007 11:57:57 -0000
@@ -6,7 +6,7 @@
 
 V=             1.60
 DISTNAME=      js-${V}
-PKGNAME=       spidermonkey-${V}p1
+PKGNAME=       spidermonkey-${V}p2
 SHARED_LIBS=   js 2.0
 CATEGORIES=     lang
 
Index: patches/patch-src_jslock_h
===================================================================
RCS file: patches/patch-src_jslock_h
diff -N patches/patch-src_jslock_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_jslock_h  6 Sep 2007 11:57:57 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+--- src/jslock.h.orig  Thu Sep  6 04:41:02 2007
++++ src/jslock.h       Thu Sep  6 04:41:02 2007
+@@ -181,6 +181,9 @@ extern JSBool js_IsScopeLocked(JSContext *cx, JSScope 
+         JS_LOCK_RUNTIME_VOID(_rt, e);                                         
\
+     JS_END_MACRO
+ 
++#ifdef __OpenBSD__
++#define JS_USE_ONLY_NSPR_LOCKS
++#endif
+ #if defined(JS_USE_ONLY_NSPR_LOCKS) ||                                        
\
+     !( (defined(_WIN32) && defined(_M_IX86)) ||                               
\
+        (defined(__GNUC__) && defined(__i386__)) ||                            
\

Reply via email to