mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Robert Schwebel <r.schwebel@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] mono
Date: Mon, 14 Nov 2011 11:35:52 +0100	[thread overview]
Message-ID: <20111114103552.GF28900@pengutronix.de> (raw)
In-Reply-To: <4EC0EA8C.3010902@erwinrol.com>

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

  reply	other threads:[~2011-11-14 10:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-14 10:16 Erwin Rol
2011-11-14 10:35 ` Robert Schwebel [this message]
2011-11-14 10:56   ` Erwin Rol
2011-11-14 10:59     ` Robert Schwebel
2011-11-14 11:04       ` Alexander Stein
2011-11-14 11:10         ` Erwin Rol

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111114103552.GF28900@pengutronix.de \
    --to=r.schwebel@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox