1 |
On Wed, 1 Feb 2012 15:55:46 -0500 |
2 |
Mike Frysinger <vapier@g.o> wrote: |
3 |
|
4 |
> On Wednesday 01 February 2012 15:51:52 Michał Górny wrote: |
5 |
> > On Wed, 1 Feb 2012 15:44:14 -0500 Mike Frysinger wrote: |
6 |
> > > > > # @USAGE: [archives that we will unpack] |
7 |
> > > > > # @RETURN: Dependencies needed to unpack all the archives |
8 |
> > > > > # @DESCRIPTION: |
9 |
> > > > > # Walk all the specified files (defaults to $SRC_URI) and |
10 |
> > > > > figure out the # dependencies that are needed to unpack |
11 |
> > > > > things. # |
12 |
> > > > > # Note: USE flags are not yet handled. |
13 |
> > > > > unpacker_src_uri_depends() { |
14 |
> > > > > |
15 |
> > > > > local uri deps d |
16 |
> > > > > |
17 |
> > > > > [[ $# -eq 0 ]] && set -- ${SRC_URI} |
18 |
> > > > > |
19 |
> > > > > for uri in "$@" ; do |
20 |
> > > > > |
21 |
> > > > > case ${uri} in |
22 |
> > > > > *.rar|*.RAR) |
23 |
> > > > > |
24 |
> > > > > d="app-arch/unrar" ;; |
25 |
> > > > > |
26 |
> > > > > *.7z) |
27 |
> > > > > |
28 |
> > > > > d="app-arch/p7zip" ;; |
29 |
> > > > |
30 |
> > > > Where are those file formats handled? You don't seem to |
31 |
> > > > fallback to 'unpack' anywhere too. |
32 |
> > > |
33 |
> > > eh ? this func doesn't do unpacking, just ${SRC_URI}<->${DEPEND} |
34 |
> > > matching. |
35 |
> > |
36 |
> > Sooo.. it's intended to generate an useless DEPEND |
37 |
> |
38 |
> the ebuild does: |
39 |
> DEPEND+=" $(unpacker_src_uri_depends)" |
40 |
> |
41 |
> > or you have to reset src_unpack() to default to make the archives |
42 |
> > actually extractable. |
43 |
> |
44 |
> this func has nothing to do with extraction. look at the rest of the |
45 |
> code to see how the default src_unpack is handled via standard |
46 |
> EXPORT_FUNC means. -mike |
47 |
|
48 |
Yes, and can that exported default src_unpack() extract either .rar |
49 |
or .7z? |
50 |
|
51 |
-- |
52 |
Best regards, |
53 |
Michał Górny |