It is easy to check that systemd provides several empty packages. # tar tf /var/portage/packages/amd64/All/systemd-189-r3.tbz2 | grep binfmt ./etc/binfmt.d/ ./usr/share/man/man5/binfmt.d.5.bz2 ./usr/share/man/man8/systemd-binfmt.service.8.bz2 ./usr/share/man/man8/systemd-binfmt.8.bz2 ./usr/lib/systemd/system/systemd-binfmt.service ./usr/lib/systemd/system/sysinit.target.wants/systemd-binfmt.service ./usr/lib/systemd/system/sysinit.target.wants/proc-sys-fs-binfmt_misc.automount ./usr/lib/systemd/system/proc-sys-fs-binfmt_misc.mount ./usr/lib/systemd/system/proc-sys-fs-binfmt_misc.automount ./usr/lib/systemd/systemd-binfmt ./usr/lib/binfmt.d/ Shouldn't they (at least those in /etc) be filled with .keep files? Reproducible: Always
I am sorry I've pasted the wrong example. Here is the right one. # tar tf /var/portage/packages/amd64/All/systemd-189-r3.tbz2 | xargs -i find '{}' -maxdepth 0 -type d -empty ./etc/modules-load.d/ ./etc/systemd/system/sysinit.target.wants/ ./etc/systemd/system/local-fs.target.wants/ ./etc/systemd/ntp-units.d/ ./etc/tmpfiles.d/ ./etc/binfmt.d/ ./usr/lib/modules-load.d/ ./usr/lib/systemd/system-shutdown/ ./usr/lib/systemd/system-sleep/ ./usr/lib/systemd/system/graphical.target.wants/ ./usr/lib/systemd/user-generators/ ./usr/lib/systemd/ntp-units.d/ ./usr/lib/binfmt.d/ ./var/lib/systemd/
Hmm, yes, you are probably right. But it feels stupid to keepdir all the empty directories created by the build system.
(In reply to comment #1) > I am sorry I've pasted the wrong example. Here is the right one. > > # tar tf /var/portage/packages/amd64/All/systemd-189-r3.tbz2 | xargs -i > find '{}' -maxdepth 0 -type d -empty > ./etc/modules-load.d/ +. > ./etc/systemd/system/sysinit.target.wants/ > ./etc/systemd/system/local-fs.target.wants/ Do we actually want that? I think systemd will create them if necessary anyway. > ./etc/systemd/ntp-units.d/ > ./etc/tmpfiles.d/ > ./etc/binfmt.d/ +. > ./usr/lib/modules-load.d/ > ./usr/lib/systemd/system-shutdown/ > ./usr/lib/systemd/system-sleep/ > ./usr/lib/systemd/system/graphical.target.wants/ > ./usr/lib/systemd/user-generators/ > ./usr/lib/systemd/ntp-units.d/ > ./usr/lib/binfmt.d/ Hmm.. assuming that /usr should be propagated using the package manager, it seems that these directories aren't necessary. > ./var/lib/systemd/ +?
I vaguely remember seeing this when I was working on building udev separately. If you canyou might want to look at this with automake-1.12.x installed; I believe this is an automake bug that is fixed in that version of automake.
With the 1.12 series of automake, I don't believe those empty directories get installed.
Added keepdirs in -194 and -9999.
M.Gorny, these empty -uneeded- directories are very helpfull to get a grip about systemd when beginning with that new init system!
(In reply to comment #7) > M.Gorny, these empty -uneeded- directories are very helpfull to get a grip > about systemd when beginning with that new init system! Which ones? It should keep those in /etc.