Mail archive

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

From: Isaac Dunham <>
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 because this library is not
> found by dlopen() with musl (same issue than firefox):
> So we need to rename executable to 'mednafen-bin' and to create a script
> called 'mednafen' to process:
> ' 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

Received on Wed Nov 12 2014 - 11:57:42 UTC