1 |
August 13, 2018 6:58 PM, "james" <garftd@×××××××.net> wrote: |
2 |
|
3 |
> Here's what I got running your script:: |
4 |
> |
5 |
> /etc # /root/profile-explorer.sh |
6 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
7 |
> /usr/portage/profiles/base/packages |
8 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
9 |
> *>=sys-apps/baselayout-2 |
10 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
11 |
> *>=sys-apps/findutils-4.4 |
12 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
13 |
> *>=sys-devel/patch-2.7 |
14 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
15 |
> /usr/portage/profiles/default/linux/packages |
16 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
17 |
> /usr/portage/profiles/base/packages |
18 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
19 |
> *>=sys-apps/baselayout-2 |
20 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
21 |
> *>=sys-apps/findutils-4.4 |
22 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
23 |
> *>=sys-devel/patch-2.7 |
24 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
25 |
> /usr/portage/profiles/default/linux/packages |
26 |
> |
27 |
> Manually looking a the |
28 |
|
29 |
Seems weird, also no need to run it as root... |
30 |
Here's my output for comparison : |
31 |
|
32 |
``` |
33 |
% ./profile-explorer.sh |
34 |
[+] EROOT : / |
35 |
[+] PORTDIR : /var/db/repos/gentoo |
36 |
[+] CURPROFILE: default/linux/amd64/17.0 |
37 |
[+] EAPI : 5 |
38 |
|
39 |
[+] packages (@system) |
40 |
/var/db/repos/gentoo/profiles/base/packages |
41 |
/var/db/repos/gentoo/profiles/default/linux/packages |
42 |
``` |
43 |
|
44 |
And the `explored-packages` file should symply contain a copy of the different inherited packages |
45 |
files. |
46 |
|
47 |
> less /etc/portage/package.use/explored-packages: |
48 |
> /usr/portage/profiles/base/packages |
49 |
> |
50 |
> I see: |
51 |
> # Old ICU is unsupported. ICU 58 only remains for 13.0 based profiles. |
52 |
> <dev-libs/icu-59 |
53 |
> <dev-libs/icu-layoutex-59 |
54 |
> |
55 |
> But the system has:: |
56 |
> |
57 |
> [I] dev-libs/icu .... 60.2 |
58 |
> |
59 |
> equery uses icu |
60 |
> |
61 |
> gives me similar info: |
62 |
> |
63 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
64 |
> /usr/portage/profiles/base/packages |
65 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
66 |
> *>=sys-apps/baselayout-2 |
67 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
68 |
> *>=sys-apps/findutils-4.4 |
69 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
70 |
> *>=sys-devel/patch-2.7 |
71 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
72 |
> /usr/portage/profiles/default/linux/packages |
73 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
74 |
> /usr/portage/profiles/base/packages |
75 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
76 |
> *>=sys-apps/baselayout-2 |
77 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
78 |
> *>=sys-apps/findutils-4.4 |
79 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
80 |
> *>=sys-devel/patch-2.7 |
81 |
> --- Invalid atom in /etc/portage/package.use/explored-packages: |
82 |
> /usr/portage/profiles/default/linux/packages |
83 |
> [ Legend : U - final flag setting for installation] |
84 |
> [ : I - package is installed with flag ] |
85 |
> [ Colors : set, unset ] |
86 |
> * Found these USE flags for dev-libs/icu-60.2: |
87 |
> U I |
88 |
> + + abi_x86_32 : 32-bit (x86) libraries |
89 |
> - - debug : Enable extra debug codepaths, like asserts and extra |
90 |
> output. If |
91 |
> you want to get meaningful backtraces see |
92 |
> |
93 |
> https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces |
94 |
> - - doc : Add extra documentation (API, Javadoc, etc). It is |
95 |
> recommended to |
96 |
> enable per package instead of globally |
97 |
> + + examples : Install examples, usually source code |
98 |
> - - static-libs : Build static versions of dynamic libraries as well |
99 |
> |
100 |
> Which begs the Q1} can I get rid of the flag icu? What are |
101 |
> consequences, as a baseline system flag, of it's removal ? |
102 |
> |
103 |
> less /usr/portage/profiles/base/packages |
104 |
> show me more of what the @system set contains. Very interesting and |
105 |
> useful. I'm thinking of aggregation of those listed packages |
106 |
> and some basic (ascii) table form (equery,emerge, eix) parsed listing |
107 |
> of the default and current flag settings. A "verification" tool |
108 |
> if you like. Surely it would help if this info was (is?) more readily |
109 |
> available and organized for folks that need a systematic approach, like |
110 |
> heterogeneous HPC clusters. The tools exist for 'ad-hoc' and one off, |
111 |
> but more of an organized representation at least at the set level. |
112 |
> |
113 |
> I feel like there is an existing tool that can yield all of this |
114 |
> information, as it is on a current system. I've read where there are |
115 |
> efforts to clean up the packages and default flags used in @system, |
116 |
> so the bare minimum list per arch/profiles would ultimately be |
117 |
> a useful listing, particular for my HPC. In HPC less is always faster |
118 |
> and better, as it is in security and so many more aspects of CS. |
119 |
> |
120 |
> Obviosly, I have a few things to fix on this (fragile) system, but |
121 |
> that'll happen as I'm at the beginning stages of auto_installs of |
122 |
> minimized systems. What are your plans for you little script? |
123 |
> |
124 |
> Just to match equery uses <flag> and such? |
125 |
> |
126 |
> Here's a cutie: |
127 |
> /usr/portage/profiles/default/linux/amd64/package.use.mask |
128 |
> |
129 |
> # Mike Frysinger <vapier@g.o> (08 May 2016) |
130 |
> # This target supports VTV #547040. |
131 |
>> =sys-devel/gcc-4.9 -vtv |
132 |
> |
133 |
> # Mike Frysinger <vapier@g.o> (21 Oct 2014) |
134 |
> # This target supports ASAN/etc... #504200. |
135 |
> sys-devel/gcc -sanitize |
136 |
> |
137 |
> And where was it that the processor/arch flags are now listed? |
138 |
> |
139 |
> tia, |
140 |
> James |
141 |
> cat |
142 |
|
143 |
To check impact on negating icu on your system : `USE="-icu" emerge -puDU --with-bdeps=y world` |
144 |
|
145 |
And concerning processor/arch flags I’d suggest keep exploring profiles, take a look at |
146 |
make.defaults files. |
147 |
Here the different files you can find according to PMS |
148 |
https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-430005.2 |
149 |
|
150 |
-- |
151 |
Corentin “Nado” Pazdera |