All of lore.kernel.org
 help / color / mirror / Atom feed
From: keith.derrick <keith.derrick@lge.com>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Alternative to _git.bb convention for unstable versions?
Date: Fri, 13 Sep 2019 14:56:41 +0000	[thread overview]
Message-ID: <1568386601901.43131@lge.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

I am currently creating a new layer (which will eventually be made generally available). I need to provide both a versioned recipe, and an "unstable"  one.


Currently I have somepackage_1.0.bb and somepackage_git.bb which are working fine.


However, using the "_git" approach (with DEFAULT_PREFERENCE = "-1") requires the use of PREFERRED_VERSION in either local.conf or a distro.conf. I've tried putting it in the image files, and that doesn't work.


If you are not creating your own DISTRO, and instead just adding the layer to a straight poky/meta build, you seem to be pretty much stuck with adding 3 PREFERRED_VERSION statements (target, -native, and nativesdk- variants) to local.conf. I'd rather not require that of users of the layer.


I'm considering instead using either "somepackage-unstable.bb" or "somepackage-devel.bb" instead of "sompackage_git.bb". This allows a simple selection of either  RDEPENDS = "somepackage" or RDEPENDS = "somepackage-devel" to add the desired one to an image.


However, neither "-devel" or "-unstable" have the right feel for the suffix. If, for example, you are picking up an older commit (between versions  say) it might well be completely stable.


Does the community have a naming convention for this type of recipe? Failing that, is there somewhere else in the met-data the PREFERRED_VERSION statement can go other than a configuration file?


Thanks

Keith Derrick


[-- Attachment #2: Type: text/html, Size: 2238 bytes --]

             reply	other threads:[~2019-09-13 15:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-13 14:56 keith.derrick [this message]
2019-09-13 15:35 ` Alternative to _git.bb convention for unstable versions? Martin Jansa
2019-09-13 15:58   ` keith.derrick
2019-09-16  7:48     ` Erik Hoogeveen

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=1568386601901.43131@lge.com \
    --to=keith.derrick@lge.com \
    --cc=yocto@yoctoproject.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.