From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from octopus.hi.pengutronix.de ([2001:6f8:1178:2:215:17ff:fe12:23b0]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RPttI-0001gg-3M for ptxdist@pengutronix.de; Mon, 14 Nov 2011 11:35:52 +0100 Received: from rsc by octopus.hi.pengutronix.de with local (Exim 4.77) (envelope-from ) id 1RPttI-0003rH-2C for ptxdist@pengutronix.de; Mon, 14 Nov 2011 11:35:52 +0100 Date: Mon, 14 Nov 2011 11:35:52 +0100 From: Robert Schwebel Message-ID: <20111114103552.GF28900@pengutronix.de> References: <4EC0EA8C.3010902@erwinrol.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4EC0EA8C.3010902@erwinrol.com> Subject: Re: [ptxdist] mono Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Mon, Nov 14, 2011 at 11:16:44AM +0100, Erwin Rol wrote: > I have been playing with mono a bit and ran into a bit more general > problem. > > mono has several scripts that call the mono binary with certain > arguments, for example mcs. > > less platform-ETH2/sysroot-host/bin/mcs > #!/bin/sh > exec /bin/mono $MONO_OPTIONS /lib/mono/2.0/mcs.exe > -lib:/lib/mono/2.0 -lib:/lib/mono/3.5 "$@" > > Of course that won't work, because it will try to call /bin/mono and > use libs from /lib/mono. > > The question is how to solve this problem, because just patching the > path will not work since on the target this would be correct and on > the target we don't want SYSROOT/usr/bin/mono but /usr/bin/mono. > > I am sure other packages had similar problems, how was it fixed in them? Do you want to run those scripts on the host? Because on the target it should work, right? If you have pre/post scripts, you should use $DESTDIR; we set this variable while installing the opkg packages and it is not set on runtime. rsc -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de