Mail archive
alpine-devel

Re: [alpine-devel] [PATCH] testing/mednafen: new aport

From: Isaac Dunham <ibid.ag_at_gmail.com>
Date: Wed, 12 Nov 2014 11:57:42 -0800

On Wed, Nov 12, 2014 at 07:35:40PM +0000, Amat Coder wrote:
> That patch is because a wrapper is needed to make it work.
>
> Mednafen requires LD_PRELOAD=libGL.so because this library is not
> found by dlopen() with musl (same issue than firefox):
> https://bugs.freedesktop.org/show_bug.cgi?id=35268
>
> So we need to rename executable to 'mednafen-bin' and to create a script
> called 'mednafen' to process:
> 'LD_PRELOAD=libGL.so exec mednafen-bin $_at_'
>
> Then, argv[0] points to '/usr/bin/mendnafen-bin'
> which is not correct.
>
> argv[0] it is only used when invoking '--help' so I changed to avoid
> confusion.
>
> Regards.

Thanks for the explanation.
What I'd meant to comment on was that argv[0] does not include the path
unless you specify it in the command line: most people would run it as
"mednafen ...", so 's/argv[0]/mednafen/g' would be nicer.

Thank you,
Isaac Dunham


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Wed Nov 12 2014 - 11:57:42 GMT