1 |
On Mon, 04 Jun 2012 16:20:02 +0200 |
2 |
hasufell <hasufell@g.o> wrote: |
3 |
|
4 |
> -----BEGIN PGP SIGNED MESSAGE----- |
5 |
> Hash: SHA1 |
6 |
> |
7 |
> On 06/04/2012 11:59 AM, Michał Górny wrote: |
8 |
> > One could set S to work on a subtree of the tarball rather than the |
9 |
> > whole tarball. Considering that, it's probably better to use |
10 |
> > ${WORKDIR}/${P} rather than ${S}. |
11 |
> > |
12 |
> > Fixes: https://bugs.gentoo.org/show_bug.cgi?id=419479 --- |
13 |
> > gx86/eclass/vcs-snapshot.eclass | 5 +++-- 1 file changed, 3 |
14 |
> > insertions(+), 2 deletions(-) |
15 |
> > |
16 |
> > diff --git a/gx86/eclass/vcs-snapshot.eclass |
17 |
> > b/gx86/eclass/vcs-snapshot.eclass index 6748360..23cd696 100644 --- |
18 |
> > a/gx86/eclass/vcs-snapshot.eclass +++ |
19 |
> > b/gx86/eclass/vcs-snapshot.eclass @@ -9,7 +9,8 @@ # @DESCRIPTION: # |
20 |
> > This eclass provides a convenience src_unpack() which does support |
21 |
> > # working with snapshots generated by various VCS-es. It unpacks |
22 |
> > those -# to ${S} rather than the original directory containing |
23 |
> > commit id. +# to ${WORKDIR}/${P} rather than the original directory |
24 |
> > containing +# commit id. # # Note that this eclass handles only |
25 |
> > unpacking. You need to specify # SRC_URI yourself, and call any |
26 |
> > autoreconfiguration as necessary. @@ -41,5 +42,5 @@ |
27 |
> > vcs-snapshot_src_unpack() { |
28 |
> > |
29 |
> > # github, bitbucket: username-projectname-hash # gitweb: |
30 |
> > projectname-tagname-hash - mv *-*-[0-9a-f]*[0-9a-f]/ "${S}" |
31 |
> > || die |
32 |
> > + mv *-*-[0-9a-f]*[0-9a-f]/ "${WORKDIR}"/${P} || die } |
33 |
> |
34 |
> Currently that eclass does not support multiple snapshot |
35 |
> sources/tarballs. |
36 |
|
37 |
Use case? |
38 |
|
39 |
-- |
40 |
Best regards, |
41 |
Michał Górny |