1 |
On Wed, 14 Sep 2016 14:55:06 +0100 |
2 |
James Le Cuirot <chewi@g.o> wrote: |
3 |
|
4 |
> On Wed, 14 Sep 2016 14:53:18 +0100 |
5 |
> James Le Cuirot <chewi@g.o> wrote: |
6 |
> |
7 |
> > On Wed, 14 Sep 2016 15:50:28 +0200 |
8 |
> > Alexis Ballier <aballier@g.o> wrote: |
9 |
> > |
10 |
> [...] |
11 |
> [...] |
12 |
> > |
13 |
> > You can't. |
14 |
> |
15 |
> Sorry, let me correct that, you can't by date but you can by $PV if |
16 |
> they have created versioned git tags. Just swap the commit reference |
17 |
> for the tag name. |
18 |
> |
19 |
|
20 |
Also, you'll probably want one of |
21 |
|
22 |
SRC_URI="<WHATEVER>/archive/${SHA1}.tar.gz -> ${PN}-${SHA1}.tar.gz" |
23 |
SRC_URI="<WHATEVER>/archive/${TAG}.tar.gz -> ${PN}-${TAG}.tar.gz" |
24 |
|
25 |
Because otherwise your tars are just going to be distfiles/dcd4e6df145853de19af532b0f581a8f0ddfe5ae.tar.gz |
26 |
or distfiles/0.1.0.tar.gz ( and the latter is destined to collide ) |
27 |
|
28 |
and you'll then also need one of |
29 |
|
30 |
S="${WORKDIR}/${PN}-${SHA1}" |
31 |
S="${WORKDIR}/${PN}-${TAG}" |
32 |
|
33 |
But if $TAG contains a "v" prefix, the first will work, but the second will |
34 |
need the "v" stripped. |
35 |
|
36 |
Because github. |