* [gentoo-user] prevent package from creating dir?
@ 2014-10-20 12:40 Douglas J Hunley
2014-10-20 12:48 ` Michael Orlitzky
2014-10-20 22:01 ` Mike Gilbert
0 siblings, 2 replies; 4+ messages in thread
From: Douglas J Hunley @ 2014-10-20 12:40 UTC (permalink / raw
To: gentoo-user
I've noticed that newer releases of systemd unconditionally create
/var/log/journal if it doesn't exist. I'm getting tired of nuking this
directory after every upgrade of systemd. I know how to configure
Portage to not overwrite config files, but is there an option to _not_
create a directory if it exists? Yes, I could edit the "Storage" line
journald.conf but thinking bigger picture (for when some other package
starts doing this) I'm curious if Portage can be told not to do this.
Thanks.
--
Douglas J Hunley (doug.hunley@gmail.com)
Twitter: @hunleyd Web:
about.me/douglas_hunley
G+: http://google.com/+DouglasHunley
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] prevent package from creating dir?
2014-10-20 12:40 [gentoo-user] prevent package from creating dir? Douglas J Hunley
@ 2014-10-20 12:48 ` Michael Orlitzky
2014-10-20 14:37 ` Douglas J Hunley
2014-10-20 22:01 ` Mike Gilbert
1 sibling, 1 reply; 4+ messages in thread
From: Michael Orlitzky @ 2014-10-20 12:48 UTC (permalink / raw
To: gentoo-user
On 10/20/2014 08:40 AM, Douglas J Hunley wrote:
> I've noticed that newer releases of systemd unconditionally create
> /var/log/journal if it doesn't exist. I'm getting tired of nuking this
> directory after every upgrade of systemd. I know how to configure
> Portage to not overwrite config files, but is there an option to _not_
> create a directory if it exists? Yes, I could edit the "Storage" line
> journald.conf but thinking bigger picture (for when some other package
> starts doing this) I'm curious if Portage can be told not to do this.
> Thanks.
>
man make.conf:
INSTALL_MASK = [space delimited list of file names]
Use this variable if you want to selectively prevent certain
files from being copied into your file system tree. This does
not work on symlinks, but only on actual files. Useful if you
wish to filter out files like HACKING.gz and TODO.gz. The
INSTALL_MASK is processed just before a package is merged. Also
supported is a PKG_INSTALL_MASK variable that behaves exactly
like INSTALL_MASK except that it is processed just before cre‐
ation of a binary package.
Honestly I don't know if it works on empty directories, but give it a shot.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] prevent package from creating dir?
2014-10-20 12:48 ` Michael Orlitzky
@ 2014-10-20 14:37 ` Douglas J Hunley
0 siblings, 0 replies; 4+ messages in thread
From: Douglas J Hunley @ 2014-10-20 14:37 UTC (permalink / raw
To: gentoo-user
On Mon, Oct 20, 2014 at 8:48 AM, Michael Orlitzky <mjo@gentoo.org> wrote:
> Honestly I don't know if it works on empty directories, but give it a shot.
I wasn't sure if that covered directories either, so I figured someone
else has probably already tried it. I'll give it a little bit to see
if anyone else replies and then I'll go test it :)
--
Douglas J Hunley (doug.hunley@gmail.com)
Twitter: @hunleyd Web:
about.me/douglas_hunley
G+: http://google.com/+DouglasHunley
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] prevent package from creating dir?
2014-10-20 12:40 [gentoo-user] prevent package from creating dir? Douglas J Hunley
2014-10-20 12:48 ` Michael Orlitzky
@ 2014-10-20 22:01 ` Mike Gilbert
1 sibling, 0 replies; 4+ messages in thread
From: Mike Gilbert @ 2014-10-20 22:01 UTC (permalink / raw
To: gentoo-user
On Mon, Oct 20, 2014 at 8:40 AM, Douglas J Hunley <doug.hunley@gmail.com> wrote:
> I've noticed that newer releases of systemd unconditionally create
> /var/log/journal if it doesn't exist. I'm getting tired of nuking this
> directory after every upgrade of systemd.
This specific example is a bug; we should not be installing an empty
directory. It either needs to be pruned or converted to a keepdir.
I opted for the former.
+ 20 Oct 2014; Mike Gilbert <floppym@gentoo.org> systemd-216-r1.ebuild,
+ systemd-9999.ebuild:
+ Remove empty /var/log/journal directory.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-10-20 22:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 12:40 [gentoo-user] prevent package from creating dir? Douglas J Hunley
2014-10-20 12:48 ` Michael Orlitzky
2014-10-20 14:37 ` Douglas J Hunley
2014-10-20 22:01 ` Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox