Gentoo Archives: gentoo-portage-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH v2] install-qa-check: Do not install empty directories
Date: Wed, 10 Jan 2018 21:15:26
Message-Id: 50b7c819-4111-50b9-bb9e-294e0b3531ba@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH v2] install-qa-check: Do not install empty directories by Zac Medico
1 On 01/10/2018 03:55 PM, Zac Medico wrote:
2 >>
3 >> This is going to break a lot of packages whose build systems create e.g.
4 >> /var/lib/foo and do nothing with it immediately. The ebuild should be
5 >> calling keepdir on those paths, but how would anyone know that?
6 >
7 > If we consider that portage already removes these directories if they
8 > are still empty when the package is re-merged or upgraded, then maybe
9 > the risk is low enough?
10 >
11
12 Does it? (Are we talking about the same thing?)
13
14 For example, the nagios-core build system creates a bunch of empty
15 directories under /var/nagios:
16
17 $ find /var/nagios
18 /var/nagios
19 /var/nagios/rw
20 /var/nagios/home
21 /var/nagios/spool
22 /var/nagios/spool/checkresults
23 /var/nagios/archives
24
25 Re-emerging the same version of nagios-core doesn't kill them off.

Replies