1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
On 06/07/2012 11:49 PM, Michał Górny wrote: |
5 |
> Hello, |
6 |
> |
7 |
> As it was pointed out, vcs-snapshot is unable to handle multiple |
8 |
> tarballs nicely. As fixing this would involve changing eclass API |
9 |
> (and they are packages which are known to break thanks to it), I'm |
10 |
> posting a new eclass for review. Of course, if the community |
11 |
> insists, I could just update the old eclass and fix the ebuilds |
12 |
> broken that way. |
13 |
> |
14 |
> The idea with the new eclass is to extract all supported archives |
15 |
> (which means .tar* at the point) into ${WORKDIR} subdirectories |
16 |
> matching their names. In other words, if you've got: |
17 |
> |
18 |
> SRC_URI="http://foo/getbar -> ${P}.tar.bz2 http://foo/getbaz -> |
19 |
> ${P}-data.tar.bz2" |
20 |
> |
21 |
> You'd get the contents in ${WORKDIR}/${P} and ${WORKDIR}/${P}-data |
22 |
> respectively. |
23 |
> |
24 |
> A few things to note: |
25 |
> |
26 |
> 1) the implemention just dumbly uses 'tar --strip-components'. If |
27 |
> it hits a tarball without a single top-level directory, scary |
28 |
> things will happen; |
29 |
> |
30 |
> 2) only tarballs are handled, other archives are just passed |
31 |
> through to unpack; |
32 |
> |
33 |
> 3) at some point the eclass could be extended to handle more |
34 |
> formats. So if you've got other archives in your SRC_URI, please |
35 |
> make sure they are named consistently with the parent dir, so that |
36 |
> they would not relocate when support for that particular format is |
37 |
> added. |
38 |
> |
39 |
> By the way, the credit for the overall idea goes to hasufell. |
40 |
> |
41 |
|
42 |
What is with zipballs from github for example? They are not supported |
43 |
by this method afais. |
44 |
-----BEGIN PGP SIGNATURE----- |
45 |
Version: GnuPG v2.0.19 (GNU/Linux) |
46 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ |
47 |
|
48 |
iQEcBAEBAgAGBQJP0f9oAAoJEFpvPKfnPDWzprAH/ikedjEAZ6Hg95zd+F7XNxLN |
49 |
XqfpAaE9N5bQ9AXfE+a1IHQRh6doSY6aw10he053SQhHEVJnB6ey0rMvkICRZ+w1 |
50 |
ZvygNSZCP2XJg4weZinIiNSJbQ7HCHFE2DuEkz78rdQ7cFwV5Y0AEGJiFDyMw4no |
51 |
RPJoNHNyFUk578W14ioog9oDOookpRN6nttvwq/Bqoh8+tCbmxTlowJndfCrw4iS |
52 |
T/q5UUKWsEEBVd2zz2TE0+eku9kdfBnez/9e2XLMUYfsTBE17/xluaqiRcLQC666 |
53 |
FFe0+MGI8sz7t1h+PjflNXIh8jochI7p4thgHqsWP5Wky04/Av8eD7br5uQ3YLE= |
54 |
=A5LA |
55 |
-----END PGP SIGNATURE----- |