Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: Paul Eggleton <paul.eggleton@linux.intel.com>,
	Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH v2 1/1] buildtools-tarball: restore missing git tools
Date: Sat, 06 Dec 2014 14:37:13 +0000	[thread overview]
Message-ID: <1417876633.5102.23.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAP9ODKrLxhKNi+TS4T+e86zBJ1Rnu-Q443AoztfudrwpvGAUrg@mail.gmail.com>

On Sat, 2014-12-06 at 11:01 -0200, Otavio Salvador wrote:
> On Fri, Dec 5, 2014 at 11:39 PM, Paul Eggleton
> <paul.eggleton@linux.intel.com> wrote:
> > On Friday 05 December 2014 16:30:44 Otavio Salvador wrote:
> >> On Fri, Dec 5, 2014 at 4:09 PM, Paul Eggleton
> >>
> >> <paul.eggleton@linux.intel.com> wrote:
> >> > Since the split out of git-perltools, some git tools (such as "git am",
> >> > "git send-email" and "git-submodule") have no longer been part of the
> >> > buildtools. We need these, so add them back in.
> >> >
> >> > However, adding git-perltools to buildtools triggers perl itself being
> >> > brought into buildtools as well, and we don't want that; but we also
> >> > don't want to have to hack the git recipe or indeed anything else that
> >> > starts depending on perl. Thus, add a dummy package which gets installed
> >> > in its place, in a separate package architecture that is only enabled
> >> > for buildtools to ensure it doesn't start appearing in place of
> >> > nativesdk-perl anywhere else.
> >> >
> >> > Fixes [YOCTO #7033].
> >> >
> >> > Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> >>
> >> This dummy thing looks like a hack to me :-(
> >
> > Perhaps - I'm all ears for an alternative solution, but it absolutely has to
> > be fixed, and soon. Shipping an incomplete git (or incomplete perl) in
> > buildtools basically defeats a major part of having the thing in the first
> > place.
> 
> We should split out the tools we really want (so we skip the perl
> runtime dependency) or include perl. Use a dummy package for it is
> wrong in my opinion. You cannot guarantee host perl will work as
> expected for our git release.

There needs to be a mechanism where we draw the line on which
dependencies a given thing has. Perl is arguable both ways. In all cases
I'm aware of, the host perl is generally API stable and works fine with
buildtools.

If you don't buy the perl argument, think about bash. Should we ship
bash in case anything in the buildtools tarball? Should we alter all
script paths to point at our own "sh"?

At some point you have to depend on the host system, be it perl, sh or
other things. The exact line should be configurable, Paul is simply
adding a mechanism here that allows us to control that. He's needed a
default and I think perl is API stable enough that we should be ok here.

Cheers,

Richard







  parent reply	other threads:[~2014-12-06 14:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-05 18:09 [PATCH v2 0/1] Fix buildtools after git-perltools split Paul Eggleton
2014-12-05 18:09 ` [PATCH v2 1/1] buildtools-tarball: restore missing git tools Paul Eggleton
2014-12-05 18:30   ` Otavio Salvador
2014-12-06  1:39     ` Paul Eggleton
2014-12-06 13:01       ` Otavio Salvador
2014-12-06 13:40         ` Peter A. Bigot
2014-12-06 17:14           ` Paul Eggleton
2014-12-06 14:37         ` Richard Purdie [this message]
2014-12-06 16:10           ` Otavio Salvador
2014-12-06 16:50             ` Richard Purdie
2014-12-06 17:08         ` Paul Eggleton

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=1417876633.5102.23.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=otavio@ossystems.com.br \
    --cc=paul.eggleton@linux.intel.com \
    /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