mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas@biessmann.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] libptxdist: explicitly use sed to run migrate_*
Date: Mon, 17 Oct 2011 08:54:04 +0200	[thread overview]
Message-ID: <70c40bc6304e031cdf8adca0c8667521@biessmann.de> (raw)
In-Reply-To: <20111014140434.GE4886@pengutronix.de>

Dear Michael,

On Fri, 14 Oct 2011 16:04:34 +0200, Michael Olbrich wrote:
> Hi,
>
> On Tue, Oct 11, 2011 at 12:16:09PM +0200, andreas@biessmann.de wrote:
>> On Mon, 10 Oct 2011 18:04:56 +0200, Michael Olbrich wrote:

<snip>

> I've been thinking about this for some time. I don't like 
> preprocessing a
> lot of files, because that makes developing ptxdist a pain. What I've
> considered, but not implemented (no time so far) is the following:
>
> create scripts/ptxdist_tools.sh.in that is preprocessed with autoconf 
> the
> stuff like this:
> [...]
> export PTXDIST_PYTHON="@PYTHON@"
> export PTXDIST_SED="@SED@"
> [...]
>
> I think it should be sourced right before scripts/ptxdist_vars.sh.
> Then use "${PTXDIST_PYTHON}", "${PTXDIST_SED}" everywhere. This way 
> we get
> the tools detected by configure without preprocessing a lot of files. 
> Do
> you think this can handle all the Problems you have?

Yes it will ...

> However, making sure everything is using the correct tools will not 
> be
> easy. Replacing the calls in ptxdist is easy, but there are many 
> packages
> that call these tools directly, so they must be patched.

But I also see your objections and therefore favour your second 
suggestion.

> So far I've not had the time to even start this, but I'd be happy to 
> apply
> such patches.
> I'll apply my patch for now. We can change 'sed' to '${PTXDIST_SED}' 
> again
> later.

That is ok for me, at least it will fix my problem with migration 
scripts.

> Hmmm, I just had another idea: How about fixing the environment in 
> ptxdist:
>
> mkdir <TMP_BIN>/
> ln -s @PYTHON@ <TMP_BIN>/python
> ln -s @SED@ <TMP_BIN>/sed
> [...]
> export PATH=<TMP_BIN>:$PATH
> [...]
>
> just do this as early as possible in ptxdist and PATH will provide 
> the
> correct tools. Do you think that could work?

Yes I think so. It should be done while installing the 
scripts/rules/a.s.o and 'export PATH=<TMP_BIN>:$PATH' should be added to 
ptxdist_vars.sh.
So how about naming <TMP_BIN> $PTXDIST_BIN and placing it at 
${PTXDIST_TOPDIR}/bin? If that is ok I will provide patches to get 
ptxdist working on OS X these days.

>> There is one other point for me that would prefer the a) solution.
>> We (sh|c)ould use
>> more of the autotools foo to have a cleaner install directory (e.g.
>> why installing all
>> the files necessary to build the kconfig tools?).
>
> Because it's easier and doesn't hurt? :-) Send patches...

Will do.

best regards

Andreas Bießmann


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2011-10-17  6:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-30  7:33 [ptxdist] [PATCH] scripts/migrate: use env to find sed Andreas Bießmann
2011-10-04 13:26 ` Michael Olbrich
2011-10-05 16:54 ` [ptxdist] [PATCH v2] scripts/migrate: use autotools to insert working sed Andreas Bießmann
2011-10-10 16:04   ` [ptxdist] [PATCH] libptxdist: explicitly use sed to run migrate_* Michael Olbrich
2011-10-11 10:16     ` andreas
2011-10-14 14:04       ` Michael Olbrich
2011-10-14 15:03         ` Bernhard Walle
2011-10-17  7:06           ` Andreas Bießmann
2011-10-17 10:45             ` Bernhard Walle
2011-10-17 12:53               ` Michael Olbrich
2011-10-17  6:54         ` Andreas Bießmann [this message]
2011-10-17  7:10           ` Andreas Bießmann

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=70c40bc6304e031cdf8adca0c8667521@biessmann.de \
    --to=andreas@biessmann.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