pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/46249: Fix SDL dlopen of libGL.dylib on Mac OS X 10.6.8



The following reply was made to PR pkg/46249; it has been noted by GNATS.

From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/46249: Fix SDL dlopen of libGL.dylib on Mac OS X 10.6.8
Date: Mon, 30 May 2016 05:15:47 +0000

 On Fri, Mar 23, 2012 at 02:20:01AM +0000, stix%stix.id.au@localhost wrote:
  > Ignoring MAME exception: Unable to load opengl library: /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dyli
  > b: Failed loading /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib: dlopen(/usr/X11/lib//System/Library
  > /Frameworks/OpenGL.framework/Libraries/libGL.dylib, 2): image not found
  > 
  > >How-To-Repeat:
  > 
  > Run a program linked against SDL which uses opengl.
  > 
  > >Fix:
  > 
  > The following patch fixes it for me, allowing dlopen of absolute paths, since
  > libGL.dylib is:
  > /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib
 
  >  +	static const char * const libdirs[] = {
  >  +		PREFIX "/lib/",
  >  +		X11BASE "/lib/",
  > ++		"",
  >  +	};
 
 Wouldn't it be better to have something like
 
 #ifdef __APPLE__
 	"/System/Library/Frameworks/",
 #endif
 
 rather than blanketly accepting anything, which seems like it might
 lead to security hassles?
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index