All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: bitbake-dev@lists.berlios.de
Subject: Re: [PATCH] Allow % as wildcard in the end of PREFERRED_VERSION_pkg
Date: Tue, 15 Sep 2009 13:56:01 +0200	[thread overview]
Message-ID: <20090915115601.GA26039@jama> (raw)
In-Reply-To: <1253010711.12689.160.camel@mill.internal.reciva.com>

On Tue, Sep 15, 2009 at 11:31:51AM +0100, Phil Blundell wrote:
> On Tue, 2009-09-15 at 11:16 +0200, Martin Jansa wrote:
> > I wrote a bit more about my problem here:
> > http://article.gmane.org/gmane.comp.handhelds.openembedded/25986
> > 
> > Simply:
> > If I want to prefer bbfile with
> > PV=1.0+gitr${SRCPV}
> > then PV will change with every commit
> > so what PV should be in PREFERRED_VERSION_pkg?
> > 
> > With this patch I can put there "1.0+git%" which will match just this
> > one bbfile.
> 
> I would have thought you would be better off setting a positive
> DEFAULT_PREFERENCE for your own DISTRO inside the bb file in question.
> That doesn't require any bitbake changes and doesn't introduce any
> semantically-murky extensions.
> 
> Your scheme of setting "1.0+git%" may work fine if there is just a
> single git-based bb file in the repository but it would obviously break
> down if a second one were ever to appear.  That seems like an unhealthy
> state of affairs.
> 
> p.

Ok, but then you can say, that the same problem is when there is two or
more packages with PV = "1.0".

You can have as many git-based bb files as long as they have different
PV prefix like 1.0+git% and then 1.1+git% or 2.0+git.

Why would you have more bbffiles with the same PN and all git-based with
PV = "1.0+gitr${SRCPV}" ?

Setting PREFERRED_VERSION_pkg at least close enough to match
"1.0+gitr${SRCPV}" seems better for me than not setting preferred at
all and rely on DEFAULT_PREFERENCE.

BTW: in shr there is one distribution "shr" with -testing and -unstable
variants, main difference is which files with srcrevs and preferred
versions are included during build, how to set DEFAULT_PREFERENCE in
bbfile for this case (-testing wants some relased version, -unstable
using AUTOREV on _git version)?

Regards

-- 
uin:136542059                jid:Martin.Jansa@gmail.com
Jansa Martin                 sip:jamasip@voip.wengo.fr 
JaMa                         



  reply	other threads:[~2009-09-15 11:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-13 22:43 [PATCH] Allow % as wildcard in the end of PREFERRED_VERSION_pkg Martin Jansa
2009-09-13 23:08 ` Martin Jansa
2009-09-14 16:39   ` Otavio Salvador
2009-09-14 21:31     ` Martin Jansa
2009-09-15  8:11 ` Phil Blundell
2009-09-15  9:16   ` Martin Jansa
2009-09-15 10:31     ` Phil Blundell
2009-09-15 11:56       ` Martin Jansa [this message]
2009-09-15 13:38         ` Phil Blundell
2009-09-15 13:23   ` Richard Purdie
2010-01-21 10:34 ` [Bitbake-dev] " Richard Purdie

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=20090915115601.GA26039@jama \
    --to=martin.jansa@gmail.com \
    --cc=bitbake-dev@lists.berlios.de \
    --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.