1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA256 |
3 |
|
4 |
On 28/02/14 11:17 AM, Thomas D. wrote: |
5 |
> Hi, |
6 |
> |
7 |
> Ian Stakenvicius wrote: |
8 |
>> That said, what we could do (if this isn't done already) is have |
9 |
>> portage automatically elog or ewarn what files are excluded |
10 |
>> from the system on merge time due to the INSTALL_MASK. At least |
11 |
>> that way, users would be able to see in the log what files were |
12 |
>> removed, so when something they need -is- removed they'll be able |
13 |
>> to see that right away. (note, i've never used INSTALL_MASK, so |
14 |
>> I've no idea what portage reports) |
15 |
> |
16 |
> That's already happening. |
17 |
> |
18 |
> For example an INSTALL_MASK |
19 |
> |
20 |
> INSTALL_MASK="/etc/systemd/" INSTALL_MASK="${INSTALL_MASK} |
21 |
> /lib/systemd/" INSTALL_MASK="${INSTALL_MASK} /lib64/systemd/" |
22 |
> INSTALL_MASK="${INSTALL_MASK} /usr/lib/systemd/" |
23 |
> INSTALL_MASK="${INSTALL_MASK} /usr/lib64/systemd/" |
24 |
> |
25 |
> is given. When you emerge a package you will see messages like |
26 |
> |
27 |
> [...] |
28 |
> |
29 |
>>>> Installing (1 of 1) sys-fs/udev-210 |
30 |
> * Removing /etc/systemd/ * Removing /lib/systemd/ * Removing |
31 |
> /lib64/systemd/ * Removing /usr/lib/systemd/ * Removing |
32 |
> /usr/lib64/systemd/ * checking 51 files for package collisions |
33 |
>>>> Merging sys-fs/udev-210 to / |
34 |
> |
35 |
> [...] |
36 |
> |
37 |
> If you keep logs, elogv for example will also show this |
38 |
> information: |
39 |
> |
40 |
> │ [...] │ │ │ |
41 |
> │INFO: other │ │Removing /etc/systemd/ │ |
42 |
> │Removing /lib/systemd/ │ │Removing /lib64/systemd/ │ |
43 |
> │Removing /usr/lib/systemd/ │ │Removing /usr/lib64/systemd/ │ |
44 |
> |
45 |
> The downside is that this message will always appear when you have |
46 |
> set an INSTALL_MASK. Even for packages which don't install anything |
47 |
> into the masked paths. So people maybe tend to ignore this |
48 |
> information because it is always shown :) |
49 |
> |
50 |
> If this message would only be shown if the merged package is |
51 |
> *really* affected by the INSTALL_MASK, this would be an |
52 |
> improvement. |
53 |
|
54 |
That just seems to be showing what paths are in the INSTALL_MASK and |
55 |
are removed. What I mean, rather, is that effectively the output of: |
56 |
|
57 |
for mypath in ${INSTALL_MASK}; do find ${D}${mypath} -type f ; done |
58 |
|
59 |
...would be reported an an elog/ewarn, ie, the actual directory tree |
60 |
that is going to be removed. This would also have the benefit of not |
61 |
reporting anything if no files are being installed/merged under any of |
62 |
the INSTALL_MASK locations.. |
63 |
|
64 |
|
65 |
|
66 |
-----BEGIN PGP SIGNATURE----- |
67 |
Version: GnuPG v2.0.22 (GNU/Linux) |
68 |
|
69 |
iF4EAREIAAYFAlMQuRoACgkQ2ugaI38ACPDJnQD/e3+Sueyf+3gJSkL6GKVQJ6fA |
70 |
cQo1Ogxo7Sk2ivzvA7UA/3zYVLSaaEXOsAAcEx6skXqgqIgESO9wSeXUjJvuYn5G |
71 |
=m5Y2 |
72 |
-----END PGP SIGNATURE----- |