Gentoo Archives: gentoo-user

From: Martin Vaeth <martin@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Problem understanding "eix"
Date: Tue, 21 Apr 2020 18:02:51
Message-Id: slrnr9ud9m.5ddb.martin@clover.invalid
In Reply to: [gentoo-user] Re: Problem understanding "eix" by Dr Rainer Woitok
1 Dr Rainer Woitok <rainer.woitok@×××××.com> wrote:
2 > Martin,
3 >
4 > On Monday, 2020-04-20 18:21:00 -0000, you wrote:
5 >
6 >> ...
7 >> > app-crypt/tpm2-tss 2.3.3 0 1
8 >> ...
9 >> The second value depends on your ARCH;
10 >> Since {isunstable} fails, I suppose that your ARCH is not amd64.
11 >
12 > $ eix --dump | grep DEFAULT_ARCH
13 > DEFAULT_ARCH="amd64"
14 > $
15 >
16 > So no, that's a wrong assumption.
17
18 DEFAULT_ARCH is normally not used, because it should be set in
19 the profile. Does
20 eix --print ARCH
21 also show amd64?
22
23 > farther down just tersly notes "This is analogous to availableversions
24 > with the difference that only installed versions are printed".
25 >
26 > So it boils down to the question what precisely "analogous" means
27
28 It means that it refers to the installed versions (which have a
29 different set of data than the available versions).
30
31 > $ cat acct-group/input-0/KEYWORDS app-crypt/tpm2-tss-2.3.3/KEYWORDS |
32 > xargs -n1 | grep '^~?amd64$'
33 > amd64
34 > ~amd64
35 > $
36 >
37 > So the information is clearly there.
38
39 Yes, but it has no meaning (except in *.tbz2 files).
40 Therefore eix ignores it. There are no plans to change this.
41
42 > export FMT="<category>/<name>\t<version>\t{isstable}1{else}0{} "
43 > FMT=$FMT"{isunstable}1{else}0{}\n"
44 > eix --format '<availableversions:FMT>' \
45 > --category-name --regex 'app-crypt/tpm2-tss$|acct-group/input'
46
47 [reformatted slighly to avoid length restriction]
48
49 > app-crypt/tpm2-tss 2.2.3-r2 1 1
50 > app-crypt/tpm2-tss 2.3.3 1 1
51
52 This is strange: Both versions are only ~amd64, and in your previous
53 posting the output for {isstable} was indeed 0. So there appears to be
54 a contradiction with your previous posting.
55 Also the output of {isunstable} is the opposite of your previous posting.
56 I re-checked, and the keywords have not changed in the gentoo
57 repository. Do you use a different repository or do you have modified
58 something?
59
60 > The manual mentions in another place that the "test for
61 > markedversions always fails in the context of <installedversions:...>",
62 > but aparently there are also other properties than just "markedversion"
63 > that always fail in this context.
64
65 Yes.
66
67 > But why does "<availableversions:...>" only return a correct result for
68 > installed virtual package "acct-group/input-0" but incorrect results
69 > (stable and unstable at the same time) for both, the not installed pack-
70 > age "app-crypt/tpm2-tss-2.2.3-r2" and the installed package "app-crypt/
71 > tpm2-tss-2.3.3"?
72
73 I don't know why the script now breaks for you:
74 For me the above script works: On amd64, I get the output
75
76 acct-group/input 0 1 0
77 app-crypt/tpm2-tss 2.2.3-r2 0 1
78 app-crypt/tpm2-tss 2.3.3 0 1
79
80 and on x86, I get the output
81
82 acct-group/input 0 1 0
83 app-crypt/tpm2-tss 2.2.3-r2 0 0
84 app-crypt/tpm2-tss 2.3.3 0 0