All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Balister <philip@balister.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Style issue for recipes
Date: Thu, 04 Sep 2014 13:54:46 -0400	[thread overview]
Message-ID: <5408A766.5000605@balister.org> (raw)
In-Reply-To: <CALbNGRRVvT7Qv868RNWbo8_DjLwkbUjOH_cCNMjPNifFEcHu3g@mail.gmail.com>

On 09/04/2014 01:29 PM, Andreas Müller wrote:
> On Thu, Sep 4, 2014 at 6:34 PM, Burton, Ross <ross.burton@intel.com> wrote:
>> On 4 September 2014 15:12, Burton, Ross <ross.burton@intel.com> wrote:
>>> Quick question of style for the community to bikeshed on:  in the
>>> general case should recipes be split into foo_1.2.bb and foo.inc, or
>>> should they only split to bb/inc if there are multiple versions and
>>> generally there should just be foo_1.2.bb.
>>
>> Another argument against widespread inc files: they encourage the
>> impression that maintaining multiple versions is just a matter of
>> having a .inc file.  The moment you start having to put
>> version-specific statements into a .bb you've entered a world of pain
>> in keeping the .bb files in sync, moving options into the .inc as they
>> become used by all versions, and purging old version-specific
>> statements.
>>
>> Ross
>> --
> I agree with Ross: It often took me time to find out where
> functionality comes from. Inc-files do only make sense for multiple
> versions of recipes or if different recipes share same code (only
> example I can remember is meta-gnome gvfs/gvfs-gdu-volume-monitor
> circular-dependency hack).
> 
> My feeling is that the inc-files are still from classic oe times where
> we had multiple versions for many recipes and most can be merged into
> recipes without loosing something.

The qwt recipe uses an include file and two bb files for qt versus
qt-embedded builds. I do not know if this is wise, but it is a case not
mentioned here.

Philip




> 
> Andreas
> 


  reply	other threads:[~2014-09-04 17:54 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 14:12 Style issue for recipes Burton, Ross
2014-09-04 15:03 ` [oe] " Robert Yang
2014-09-04 15:03   ` Robert Yang
2014-09-04 15:29   ` Peter A. Bigot
2014-09-04 15:41   ` [oe] " akuster808
2014-09-04 15:41     ` [OE-core] " akuster808
2014-09-04 16:26     ` [oe] " Burton, Ross
2014-09-04 16:26       ` [OE-core] " Burton, Ross
2014-09-04 20:03       ` [oe] " akuster808
2014-09-04 20:03         ` [OE-core] " akuster808
2014-09-04 16:07 ` [oe] " Enrico Scholz
2014-09-04 16:29   ` Burton, Ross
2014-09-04 16:44     ` Peter A. Bigot
2014-09-04 17:00       ` Enrico Scholz
2014-09-04 17:38         ` Andreas Müller
2014-09-04 18:36           ` Enrico Scholz
2014-09-04 19:12             ` Burton, Ross
2014-09-29  0:51               ` Trevor Woerner
2014-09-04 16:34 ` Burton, Ross
2014-09-04 17:29   ` Andreas Müller
2014-09-04 17:54     ` Philip Balister [this message]
2014-09-04 19:10       ` Burton, Ross
2014-09-05 13:58     ` Mike Looijmans
2014-09-05 16:13       ` Burton, Ross
2014-09-05  9:11 ` [oe] " Paul Eggleton
2014-09-05  9:11   ` 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=5408A766.5000605@balister.org \
    --to=philip@balister.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.