X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 86019DC0082 for ; Wed, 12 Nov 2014 19:57:38 +0000 (UTC) Received: by mail-pa0-f46.google.com with SMTP id lf10so13645016pab.33 for ; Wed, 12 Nov 2014 11:57:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=kXObzYD9mB6uKePZRuQEFuhBDS3/ATt92vJbL/FtkAA=; b=0CmTA7IIPZJxeQhA37VJRvI7wkMmaOjQMgnIfscUYyN+SKFrlkrirGlKXRVkzdmGmj icoP5UUfGj5jc3G4BD2x64cMQZ2Blhnorqpc/2KvNtWbuILIC8ztXpUMVit43Evb0BIK p2c6ZIwVljmzhnyhm5AJG9ocMiDQ32qzkhWmuXngUGqm00ttf/AcU3j6pomzREjrziws EEfrfaLAljvc1ObKF1lSNCqI40aI3JXEvwDP98ImLfbhe0+XP7LjP01mJDC/Fb3jWLS1 e6hAdvJRx6buoHmAIWGvNg+gSX2A+sYaK4wB+PDATI0A8QK+6rAmoQGHq6Z6caWHwvbY Bc3A== X-Received: by 10.68.215.67 with SMTP id og3mr25118453pbc.117.1415822257285; Wed, 12 Nov 2014 11:57:37 -0800 (PST) Received: from newbook ([50.0.227.65]) by mx.google.com with ESMTPSA id nx13sm22995347pdb.1.2014.11.12.11.57.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Nov 2014 11:57:37 -0800 (PST) Date: Wed, 12 Nov 2014 11:57:42 -0800 From: Isaac Dunham To: Amat Coder Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH] testing/mednafen: new aport Message-ID: <20141112195742.GB1861@newbook> References: <1415813332-3112-1-git-send-email-amatcoder@gmail.com> <20141112183645.GA1861@newbook> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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 $@' > > 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@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---