<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-openembedded.git/meta-oe/classes/gitpkgv.bbclass, branch hardknott</title>
<subtitle>Mirror of git.openembedded.org/meta-openembedded</subtitle>
<id>https://git.enea.com/cgit/linux/meta-openembedded.git/atom?h=hardknott</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-openembedded.git/atom?h=hardknott'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/'/>
<updated>2020-01-17T23:44:06+00:00</updated>
<entry>
<title>gitpkgv.bbclass: Add support for extending the supported tag formats</title>
<updated>2020-01-17T23:44:06+00:00</updated>
<author>
<name>Peter Kjellerstedt</name>
<email>pkj@axis.com</email>
</author>
<published>2020-01-17T20:34:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=b51af6b5b7a41b44d3539f44c10d21624c4cc4a7'/>
<id>urn:sha1:b51af6b5b7a41b44d3539f44c10d21624c4cc4a7</id>
<content type='text'>
Introduce GITPKGV_TAG_REGEXP (which defaults to "v(\d.*)") to support
dropping other unwanted parts of the found tags than just a leading
"v". Any matching groups in the regexp will be concatenated to yield
the final version.

Signed-off-by: Peter Kjellerstedt &lt;peter.kjellerstedt@axis.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitpkgv.bbclass: Support also lightweight tags</title>
<updated>2019-11-20T07:33:03+00:00</updated>
<author>
<name>niko.mauno@vaisala.com</name>
<email>niko.mauno@vaisala.com</email>
</author>
<published>2019-11-19T08:46:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=e2c5249680cc7638b9f9a07fdddc3dca7894ad86'/>
<id>urn:sha1:e2c5249680cc7638b9f9a07fdddc3dca7894ad86</id>
<content type='text'>
When checking for commit specific tags during GITPKGVTAG resolution, use
additional '--tags' and '--exact-match' options for 'git describe'
command.

This changes the behaviour so that in case an annotated tag does not
exist for the particular commit, then the latest lightweight
(non-annotated) tag is used instead, in case that commit has at least
one such tag.

Signed-off-by: Niko Mauno &lt;niko.mauno@vaisala.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitpkgv.bbclass: Use --git-dir option</title>
<updated>2019-11-20T07:33:03+00:00</updated>
<author>
<name>niko.mauno@vaisala.com</name>
<email>niko.mauno@vaisala.com</email>
</author>
<published>2019-11-19T08:46:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=6e3ba47f8cf3e89977fe8288ecdbb1c79896272b'/>
<id>urn:sha1:6e3ba47f8cf3e89977fe8288ecdbb1c79896272b</id>
<content type='text'>
Avoid redundant shell working directory change by resorting to
'--git-dir' option for git command instead.

Signed-off-by: Niko Mauno &lt;niko.mauno@vaisala.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitpkgv.bbclass: fix versioning with multiple repos</title>
<updated>2017-02-22T12:16:48+00:00</updated>
<author>
<name>S. Lockwood-Childs</name>
<email>sjl@vctlabs.com</email>
</author>
<published>2017-02-20T09:07:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=ace4a93016099d0f0e5151a6a88e82175f9fe77c'/>
<id>urn:sha1:ace4a93016099d0f0e5151a6a88e82175f9fe77c</id>
<content type='text'>
gitpkgv class is supposed to use SRCREV_FORMAT variable to define
how to smoosh together revision info from multiple repos that are
used in a single recipe. It is incorrectly repeating the rev hash
for the first repo instead of including the rev from each listed repo.

Example:

  SRC_URI = "git://some-server/purple.git;destsuffix=git/purple;name=purple"
  SRC_URI += "git://other-server/blue.git;destsuffix=git/blue;name=blue"
  SRCREV_purple = "${AUTOREV}"
  SRCREV_blue = "${AUTOREV}"
  SRCREV_FORMAT = "purple_blue"

Suppose gitpkgv calculates "67+ea121ea" for purple repo,
and "123+feef001" for blue repo. This should result in a
package version with them joined together like so:

"67+ea121ea_123+feef001"

It didn't. Instead the git hash part for the first repo got repeated:

"67+ea121ea_123+ea121ea"

Fix this by looking in the right place for the git revisions of 2nd
(and following) repos when assembling the full version string.

Signed-off-by: S. Lockwood-Childs &lt;sjl@vctlabs.com&gt;
Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>remove True option to getVar calls</title>
<updated>2016-12-02T08:16:17+00:00</updated>
<author>
<name>Joshua Lock</name>
<email>joshua.g.lock@intel.com</email>
</author>
<published>2016-11-25T15:28:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=efd3696e70a6603f1a45faa4a172433514f0a487'/>
<id>urn:sha1:efd3696e70a6603f1a45faa4a172433514f0a487</id>
<content type='text'>
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.

Search made with the following regex: getVar ?\(( ?[^,()]*), True\)

Signed-off-by: Joshua Lock &lt;joshua.g.lock@intel.com&gt;
</content>
</entry>
<entry>
<title>gitpkgv: Fix $GITPKV for a single named git source</title>
<updated>2016-09-05T11:30:50+00:00</updated>
<author>
<name>Clemens Lang</name>
<email>clemens.lang@bmw-carit.de</email>
</author>
<published>2016-08-24T12:22:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=aedcb852ed7ec127dbb4c7cd7655d11f72e0b712'/>
<id>urn:sha1:aedcb852ed7ec127dbb4c7cd7655d11f72e0b712</id>
<content type='text'>
Recipes that fetch from a single git source, assign a name to this
source and do not set SRCREV_FORMAT to this name will always get
a GITPKGV value of "default", which causes version-going-backwards QA
errors.

Fix this by automatically determining a suitable SRCREV_FORMAT from the
SRC_URI if none is set explicitly. This code does not run for multiple
git sources, because bitbake's fetcher enforces setting SRCREV_FORMAT
when multiple version-controlled sources are used.

Signed-off-by: Clemens Lang &lt;clemens.lang@bmw-carit.de&gt;
Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitkpkgv: Ensure files are closed</title>
<updated>2016-06-08T12:55:26+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2016-06-02T09:34:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=55cb2ec6db42e43c601f77bf4f03fb3a43725b24'/>
<id>urn:sha1:55cb2ec6db42e43c601f77bf4f03fb3a43725b24</id>
<content type='text'>
This avoids warnings with python 3.

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitpkgv.bbclass: Add support for gitsm:// url type</title>
<updated>2015-12-18T11:39:50+00:00</updated>
<author>
<name>Daniel Adolfsson</name>
<email>daniel.adolfsson@bluetest.se</email>
</author>
<published>2015-12-02T10:48:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=22004e5281a913818a94bcd160ad3135a9ecd314'/>
<id>urn:sha1:22004e5281a913818a94bcd160ad3135a9ecd314</id>
<content type='text'>
When using "gitsm://", for projects using submodules, instead of "git://", gitpkgv does not work.

The limitation is synthetic, this patch simply adds gitsm as an allowed url type.

Signed-off-by: Daniel Adolfsson &lt;daniel.adolfsson@bluetest.se&gt;
Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitpkgv.bbclass: cache GITPKGV result</title>
<updated>2013-01-18T09:49:44+00:00</updated>
<author>
<name>Enrico Scholz</name>
<email>enrico.scholz@sigma-chemnitz.de</email>
</author>
<published>2012-11-16T18:11:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=1b5e1c9551406d3e5d98e0468ee140c26851ab09'/>
<id>urn:sha1:1b5e1c9551406d3e5d98e0468ee140c26851ab09</id>
<content type='text'>
gitpkgv runs the 'git rev-list | wc -l' several times when processing a
package using GITPKGV.  This takes ages for packages like the linux
kernel which has a) a large repository and b) lots of subpackages.

This patch caches the result of 'git rev-list' and uses it on the next
run.

Signed-off-by: Enrico Scholz &lt;enrico.scholz@sigma-chemnitz.de&gt;
Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>Replace bb.data.* with d.*</title>
<updated>2012-10-28T14:32:06+00:00</updated>
<author>
<name>Paul Eggleton</name>
<email>paul.eggleton@linux.intel.com</email>
</author>
<published>2012-10-28T13:49:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=3a30c562385cb3d9cd1b3043f6fe677a22024018'/>
<id>urn:sha1:3a30c562385cb3d9cd1b3043f6fe677a22024018</id>
<content type='text'>
Used sed expression given here:

http://lists.linuxtogo.org/pipermail/openembedded-core/2011-November/012373.html

Plus an additional expression for .expand. Full expression is:

sed \
-e 's:bb.data.\(setVar([^,]*,[^,]*\), \([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,]*,[^,]*,[^,]*\), \([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,]*\), \([^, ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,]*,[^,]*\), \([^, ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,]*,[^,]*\), \([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,]*\), \([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(expand([^,]*\), \([^ )]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`

Some minor correction in systemd.bbclass was needed for some expressions
that didn't quite match the regex in the desired way; additionally a few
instances were manually changed.

Signed-off-by: Paul Eggleton &lt;paul.eggleton@linux.intel.com&gt;
</content>
</entry>
</feed>
