From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from hbe.hbelightingsystems.com ([213.239.196.253]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RPtah-0000cm-Et for ptxdist@pengutronix.de; Mon, 14 Nov 2011 11:16:48 +0100 Received: from localhost (localhost [127.0.0.1]) by hbe.hbelightingsystems.com (Postfix) with ESMTP id 7826E1E8002 for ; Mon, 14 Nov 2011 11:16:37 +0100 (CET) Received: from hbe.hbelightingsystems.com ([127.0.0.1]) by localhost (hbe.hbelightingsystems.com [127.0.0.1]) (amavisd-new, port 10024) with SMTP id W3xn3MwJzVqw for ; Mon, 14 Nov 2011 11:16:36 +0100 (CET) Received: from [192.168.1.4] (ip51ce2bef.speed.planet.nl [81.206.43.239]) (Authenticated sender: erwin@hbelightingsystems.com) by hbe.hbelightingsystems.com (Postfix) with ESMTP id 4D47E1E8001 for ; Mon, 14 Nov 2011 11:16:36 +0100 (CET) Message-ID: <4EC0EA8C.3010902@erwinrol.com> Date: Mon, 14 Nov 2011 11:16:44 +0100 From: Erwin Rol MIME-Version: 1.0 Subject: [ptxdist] mono Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hey all, 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? Any hints are welcome. - Erwin -- ptxdist mailing list ptxdist@pengutronix.de