<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-openembedded.git/meta-oe/classes/gitpkgv.bbclass, branch master</title>
<subtitle>Mirror of git.openembedded.org/meta-openembedded</subtitle>
<id>https://git.enea.com/cgit/linux/meta-openembedded.git/atom?h=master</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-openembedded.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/'/>
<updated>2025-08-18T14:50:01+00:00</updated>
<entry>
<title>gitpkgv.bbclass: inspect repository in UNPACKDIR</title>
<updated>2025-08-18T14:50:01+00:00</updated>
<author>
<name>Gyorgy Sarvari</name>
<email>skandigraun@gmail.com</email>
</author>
<published>2025-08-18T05:18:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=157d2fede274721e0b620bc3c4636ac1badb082c'/>
<id>urn:sha1:157d2fede274721e0b620bc3c4636ac1badb082c</id>
<content type='text'>
When BB_GIT_SHALLOW = "1" is used, the unpacked gir repository doesn't
exist in the download folder, and the class isn't able to inspect the
details of the repository.

Instead inspect the repository it the UNPACKDIR.

Beside this, since BitBake fetcher performs an actual initial shallow
clone of the repository when this feature is enabled, it is not possible
to determine the exact number of commits. Add a warning about this.

Reported-by: WXbet &lt;WXbet@proton.me&gt;
Signed-off-by: Gyorgy Sarvari &lt;skandigraun@gmail.com&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitpkgv.bbclass: Fix broken git revison</title>
<updated>2025-03-22T16:58:08+00:00</updated>
<author>
<name>Hains van den Bosch</name>
<email>hainsvdbosch@ziggo.nl</email>
</author>
<published>2025-03-22T14:34:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=4e47dbbc6e472a7a6b98522bc55a894635373aee'/>
<id>urn:sha1:4e47dbbc6e472a7a6b98522bc55a894635373aee</id>
<content type='text'>
The revision dictionary was built with keys from names list in Bitbake(setup_revisions()).
See:
https://git.openembedded.org/bitbake/commit/?id=2515fbd10824005fa7f34e87706000c079920366

And used to build names list in gitpkgv.bbclass in the old situation, see:
https://git.openembedded.org/meta-openembedded/commit/?id=2920d4909236106e1a36d56b3b20762a308ba3d4

Use name variable to build names list instead of revision variable.
Use append() now name variable is a string.

Old ipk file name:
enigma2_3.13+git3_1_3_0_9_c_7_0_a_4_f_a_6_9_d_6_7_0_1_7_b_b_9_f_7_f_4_d_d_9_d_6_1_0_a_8_c_3_d_20+31309c70a4-r0_dm920.ipk

New ipk file name:
enigma2_3.13+git21834+31309c70+31309c70a4-r0_dm920.ipk

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitpkgver: Update to match bitbake fetcher changes</title>
<updated>2025-03-20T16:04:50+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2025-03-20T15:42:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=2920d4909236106e1a36d56b3b20762a308ba3d4'/>
<id>urn:sha1:2920d4909236106e1a36d56b3b20762a308ba3d4</id>
<content type='text'>
The bitbake fetcher dropped support for multiple revisions on a single
url. Update the gitpkgver code to match.

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitpkgv.bbclass: adjust the example in comment a bit</title>
<updated>2024-02-09T17:52:12+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>martin.jansa@gmail.com</email>
</author>
<published>2024-02-06T13:18:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=3482f8973ec493337dd0f0a7d459c1861f951b4f'/>
<id>urn:sha1:3482f8973ec493337dd0f0a7d459c1861f951b4f</id>
<content type='text'>
* the first example isn't very useful anymore since:
  SRCPV is deferred now from PV to PKGV since:
  https://git.openembedded.org/openembedded-core/commit/?h=nanbield&amp;id=a8e7b0f932b9ea69b3a218fca18041676c65aba0

* but keep it in the bbclass in case someone is still using it
  for whatever reason (the version with tag still makes some sense)

Signed-off-by: Martin Jansa &lt;martin.jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>gitpkgv: Fix python deprecation warning</title>
<updated>2023-05-03T23:26:17+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2023-05-03T15:29:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-openembedded.git/commit/?id=5d33d2c530c85b3dbbac135234855be10f58351b'/>
<id>urn:sha1:5d33d2c530c85b3dbbac135234855be10f58351b</id>
<content type='text'>
Fixes
DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13

pipes is an alias for shlex therefore switch to using shlex

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<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>
</feed>
