All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: yocto@yoctoproject.org
Subject: Re: : git tag and PV variable
Date: Wed, 24 Feb 2016 18:02:08 +0200	[thread overview]
Message-ID: <56CDD400.8090805@linux.intel.com> (raw)
In-Reply-To: <CAMKF1srvkpRBAQHfuPPTLdFtZEaRHNDeL39kWP-RqEWqJFcHbg@mail.gmail.com>

On 02/24/2016 05:35 PM, Khem Raj wrote:
>
>     I have this command in my qmake pro files:____
>
>     VERSION = $$system(git describe --abbrev=0 --tags)____
>
>     __ __
>
>     I would like to have the package manager follow the tag versioning.____
>
>     __ __
>
>     Which means I would like to have something like:____
>
>     PV = "git describe --abbrev=0 --tags"____
>
>     SRC_URI = "${STUDIEL_GIT}/core.git;protocol=file;tag=${PV}"____
>
>     __ __
>
>     It does not work for sure. What is the correct way to do this ?
>
>
> ​SRC_URI is required by fetcher and there is nothing to git describe
> before it is fetched.​
> so thats your problem.

It's possible however to write an external script that updates the PV 
version in the recipe, but it needs to be run outside of bitbake.

Alex



  reply	other threads:[~2016-02-24 16:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-24 15:29 : git tag and PV variable GUEYTAT Julien
2016-02-24 15:35 ` Khem Raj
2016-02-24 16:02   ` Alexander Kanavin [this message]
2016-02-24 16:39     ` Martin Jansa
2016-02-24 18:09     ` Maciej Borzecki
2016-02-25 13:19       ` GUEYTAT Julien

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=56CDD400.8090805@linux.intel.com \
    --to=alexander.kanavin@linux.intel.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.