[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core] git do_unpack
From:       "Alexander Kanavin" <alex.kanavin () gmail ! com>
Date:       2020-06-30 17:31:29
Message-ID: CANNYZj-07gCydk6TYD36RQvALh6vj2exG2LA34CkPx2BBSyB0g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


SRCREV should be the actual commit hash that matches the tag, then
do_unpack will not do git ls-remote. Tags can, and do move around.

Alex

On Tue, 30 Jun 2020 at 19:24, John Klug <John.Klug@multitech.com> wrote:

> We typically use tags to match PV and name our recipes NAME_TAG.bb
>
> Recipe name:
>
> dhq-client_0.39.bb
>
> from bitbake -e dhq-client output:
>
> # pre-expansion value:
> #   "${PN}-${PV}"
> P="dhq-client-0.39"
>
> In recipe:
>
> SRCREV = "${PV}"
> SRC_URI = "git://
> git@gitlab.multitech.net/devicehq/mAPI-dhq-client.git;protocol=ssh;nobranch=1
> \            file://config.json.sample \            file://dhqclient.init
> \            file://dhqclient \            file://dhq-rootCA.pem \ "
>
> Sanity check:
>
> jklug@trustytahrdm1:~$ git clone git@gitlab.multitech.net:
> devicehq/mAPI-dhq-client
> Cloning into 'mAPI-dhq-client'...
> remote: Counting objects: 485, done.
> remote: Compressing objects: 100% (199/199), done.
> remote: Total 485 (delta 285), reused 450 (delta 265)
> Receiving objects: 100% (485/485), 84.73 KiB | 14.12 MiB/s, done.
> Resolving deltas: 100% (285/285), done.
> jklug@trustytahrdm1:~$ cd mAPI-dhq-client/
> jklug@trustytahrdm1:~/mAPI-dhq-client$ git log -1 --format=%ai 0.39 | head
> 2020-05-05 09:47:03 -0500
> jklug@trustytahrdm1:~/mAPI-dhq-client$ git checkout 0.39
> Note: checking out '0.39'.
>
> You are in 'detached HEAD' state. You can look around, make experimental
> changes and commit them, and you can discard any commits you make in this
> state without impacting any branches by performing another checkout.
>
> If you want to create a new branch to retain commits you create, you may
> do so (now or later) by using -b with the checkout command again. Example:
>
>   git checkout -b <new-branch-name>
>
> HEAD is now at d21aab3 Merge branch 'vp/fix_logs' into 'master'
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>SRCREV should be the actual commit hash that matches the tag, \
then do_unpack will not do git ls-remote. Tags can, and do move \
around.<br></div><div><br></div><div>Alex<br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 30 Jun 2020 at 19:24, \
John Klug &lt;<a href="mailto:John.Klug@multitech.com">John.Klug@multitech.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We typically use tags \
to match PV and name our recipes NAME_TAG.bb<br> <br>
Recipe name:<br>
<br>
<a href="http://dhq-client_0.39.bb" rel="noreferrer" \
target="_blank">dhq-client_0.39.bb</a> <br> <br>
from bitbake -e dhq-client output:<br>
<br>
# pre-expansion value:<br>
#     &quot;${PN}-${PV}&quot;<br>
P=&quot;dhq-client-0.39&quot;<br>
<br>
In recipe:<br>
<br>
SRCREV = &quot;${PV}&quot;<br>
SRC_URI = &quot;git://<a \
href="http://git@gitlab.multitech.net/devicehq/mAPI-dhq-client.git;protocol=ssh;nobranch=1" \
rel="noreferrer" target="_blank">git@gitlab.multitech.net/devicehq/mAPI-dhq-client.git;protocol=ssh;nobranch=1</a> \
\                  file://config.json.sample \                  file://dhqclient.init \
\                  file://dhqclient \                  file://dhq-rootCA.pem \ \
&quot;<br> <br>
Sanity check:<br>
<br>
jklug@trustytahrdm1:~$ git clone \
git@gitlab.multitech.net:devicehq/mAPI-dhq-client<br> Cloning into \
                &#39;mAPI-dhq-client&#39;...<br>
remote: Counting objects: 485, done.<br>
remote: Compressing objects: 100% (199/199), done.<br>
remote: Total 485 (delta 285), reused 450 (delta 265)<br>
Receiving objects: 100% (485/485), 84.73 KiB | 14.12 MiB/s, done.<br>
Resolving deltas: 100% (285/285), done.<br>
jklug@trustytahrdm1:~$ cd mAPI-dhq-client/<br>
jklug@trustytahrdm1:~/mAPI-dhq-client$ git log -1 --format=%ai 0.39 | head<br>
2020-05-05 09:47:03 -0500<br>
jklug@trustytahrdm1:~/mAPI-dhq-client$ git checkout 0.39<br>
Note: checking out &#39;0.39&#39;.<br>
<br>
You are in &#39;detached HEAD&#39; state. You can look around, make experimental<br>
changes and commit them, and you can discard any commits you make in this<br>
state without impacting any branches by performing another checkout.<br>
<br>
If you want to create a new branch to retain commits you create, you may<br>
do so (now or later) by using -b with the checkout command again. Example:<br>
<br>
   git checkout -b &lt;new-branch-name&gt;<br>
<br>
HEAD is now at d21aab3 Merge branch &#39;vp/fix_logs&#39; into &#39;master&#39;<br>
</blockquote></div>



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#140141): https://lists.openembedded.org/g/openembedded-core/message/140141
Mute This Topic: https://lists.openembedded.org/mt/75175212/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic