1 |
On Thu, Mar 29, 2018 at 10:47 AM, Michał Górny <mgorny@g.o> wrote: |
2 |
|
3 |
> W dniu czw, 29.03.2018 o godzinie 09∶39 -0500, użytkownik William Hubbs |
4 |
> napisał: |
5 |
> > All, |
6 |
> > |
7 |
> > I just happened to notice the following warning from portage when |
8 |
> > bumping dhcpcd. |
9 |
> > |
10 |
> > > One or more empty directories installed to /var: |
11 |
> > > /var/lib/dhcpcd |
12 |
> > > If those directories need to be preserved, please make sure to create |
13 |
> > > or mark them for keeping using 'keepdir'. Future versions of Portage |
14 |
> > > will strip empty directories from installation image. |
15 |
> > |
16 |
> > If we are going to require emptty directories to be marked with |
17 |
> > keepdir, I think we should hard fail the emerge rather than quietly |
18 |
> > strip the empty directories. If we just strip the directories, this |
19 |
> > will, more than likely, lead to broken packages. In the case of dhcpcd, |
20 |
> > the upstream build system installs the /var/lib/dhcpcd directory, then |
21 |
> > dhcpcd writes to the directory. |
22 |
> > |
23 |
> |
24 |
> Are you saying that dozens of packages should suddenly start failing |
25 |
> for users so that developers would feel more obliged to fix them? |
26 |
> Provided that the packages are still maintained, and it won't be |
27 |
> 'hey, we just made it impossible to install this package, maybe someone |
28 |
> will fix it one day'. |
29 |
> |
30 |
> |
31 |
I have a more concrete question regarding what the feature is trying to do, |
32 |
and how it accomplishes it. |
33 |
|
34 |
The problem seems to be that there are empty directories in ${D} that get |
35 |
merged to the livefs but are not used. |
36 |
These directories are either made by the ebuild directly (e.g. a bug in |
37 |
Gentoo) or by upstream's build system (a bug upstream.) |
38 |
|
39 |
Is there any particular reason we need to remove them? |
40 |
|
41 |
We have elected (based on current portage) to warn people about empty |
42 |
directories. If the goal is to remove the empty directories; this seems |
43 |
reasonable; folks can then |
44 |
figure out if the bug is in Gentoo, or Upstream[0], and submit a fix. The |
45 |
struggle here comes where we want to do two sorts of activities. |
46 |
|
47 |
1) Stop new bugs (e.g. by stripping empty directories and causing packages |
48 |
to fail to work properly because the livefs is missing directories.) |
49 |
2) Fix existing bugs (e.g. by warning folks.) |
50 |
|
51 |
Ultimately this is what I feel like EAPI was made for; we could propose |
52 |
stripping in EAPI7, and warning in all other EAPIs. |
53 |
|
54 |
-A |
55 |
|
56 |
[0] There is another issue whereby upstreams might not care about this bug, |
57 |
or might introduce new bugs because they lack this QA mechanism. I tend to |
58 |
be pessemistic on these efforts for this reason; now Gentoo has to carry |
59 |
some Gentoo-only patches to fix this random "QA" problem, for what to me is |
60 |
a minor benefit. Some upstreams will never merge these patches. So I'm |
61 |
curious what the gain is? |
62 |
|
63 |
|
64 |
-- |
65 |
> Best regards, |
66 |
> Michał Górny |
67 |
> |
68 |
> |
69 |
> |