Ebuild installer Paludis reports the creation of (empty) /usr/sbin directory Reproducible: Didn't try Steps to Reproduce: 1.paludis --install app-portage/gentoolkit 2. 3. Actual Results: (...) --- No need to do anything for preinst phase >>> Writing VDB entry to '/var/db/pkg/app-portage/-checking-gentoolkit-0.2.4.5'... >>> Writing VDB entry keys ... >>> Generating saved ebuild and environment... >>> Finished writing VDB entry >>> Checking whether we can merge to / ...............paludis@1248667571: [WARNING merger.empty_directory] In thread ID '4569': ... In program paludis --install --dl-upgrade as-needed --dl-new-slots as-needed --dl-reinstall if-use-changed app-portage/gentoolkit: ... When performing install action from command line: ... When executing install task: ... When installing 'app-portage/gentoolkit-0.2.4.5:0::gentoo' replacing { 'app-portage/gentoolkit-0.2.4.2-r1:0::installed' }: ... When merging 'app-portage/gentoolkit-0.2.4.5:0::gentoo' at '/var/tmp/paludis/app-portage-gentoolkit-0.2.4.5/image' to VDB repository 'installed': ... When checking merge from '/var/tmp/paludis/app-portage-gentoolkit-0.2.4.5/image' to '/': ... When checking merge from '/var/tmp/paludis/app-portage-gentoolkit-0.2.4.5/image' to '/': ... When checking merge from '/var/tmp/paludis/app-portage-gentoolkit-0.2.4.5/image/usr' to '/usr': ... When checking merge from '/var/tmp/paludis/app-portage-gentoolkit-0.2.4.5/image/usr/sbin' to '/usr/sbin': ... Installing empty directory '/usr/sbin' (...) Expected Results: No such warning I notice that /usr/sbin has a timestamp of today, but much earlier, which seems to correspond with the upgrade of sys-libs/glibc which i had: # ls -dl /usr/sbin/ drwxr-xr-x 2 root root 8192 2009-07-26 13:09 /usr/sbin/
(In reply to comment #0) > I notice that /usr/sbin has a timestamp of today, but much earlier, which seems > to correspond with the upgrade of sys-libs/glibc which i had: > > # ls -dl /usr/sbin/ > drwxr-xr-x 2 root root 8192 2009-07-26 13:09 /usr/sbin/ > Hmm come to think of it, i'm not sure about the glibc install time: ls -Fl /var/log/paludis/1248620915-install-sys-libs_glibc-2.9_p20081201-r2\:2.2\:\:gentoo.messages -rw-r--r-- 1 root root 4255 2009-07-26 12:45 /var/log/paludis/1248620915-install-sys-libs_glibc-2.9_p20081201-r2:2.2::gentoo.messages ...would that be the time at which the file was started, rather then the time at which it was closed?
Can this be reproduced with portage/emerge? Paludis is not officially supported.
Yes, it can be reproduced without paludis: $ qlist -d gentoolkit | grep sbin /usr/sbin/ $ qlist gentoolkit | grep sbin <no output> meaning directory /usr/sbin is part of the package even though the package does not have any files in /usr/sbin.
I can't reproduce with latest gentoolkit & portage: ssuominen@unique ~ $ qlist -CIv sys-apps/portage app-portage/gentoolkit app-portage/gentoolkit-0.3.0_rc7 app-portage/gentoolkit-dev-0.2.6.12 sys-apps/portage-2.2_rc33 ssuominen@unique ~ $ qlist gentoolkit | grep sbin ssuominen@unique ~ $ IMHO not worth the trouble to fiddle with this issue in old versions.
ssuominen@unique ~ $ qlist -d gentoolkit |grep sbin ssuominen@unique ~ $
I've fixed it in Subversion for the gentoolkit-0.2.4 branch. You won't see it until gentoolkit-0.3.0 or unless another release of the 0.2.4 branch is made. $ svn commit -m "Don't create /usr/sbin at install time, since we no longer put files there. (Bug #279254)" Sending gentoolkit-0.2.4/Makefile Transmitting file data . Committed revision 669.
Fixed in the gentoolkit-0.3.0 series