Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279254 - app-portage/gentoolkit-0.2.4.2-r1 creates empty /usr/sbin warning
Summary: app-portage/gentoolkit-0.2.4.2-r1 creates empty /usr/sbin warning
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2009-07-27 04:56 UTC by Jerome Potts
Modified: 2010-01-07 17:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Potts 2009-07-27 04:56:53 UTC
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/
Comment 1 Jerome Potts 2009-07-27 05:04:22 UTC
(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?
Comment 2 James Earl Spahlinger 2009-07-27 05:14:24 UTC
Can this be reproduced with portage/emerge? Paludis is not officially supported.
Comment 3 Wormo (RETIRED) gentoo-dev 2009-07-27 05:34:45 UTC
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.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-07-27 06:10:33 UTC
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.

Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-07-27 06:12:49 UTC
ssuominen@unique ~ $ qlist -d gentoolkit |grep sbin
ssuominen@unique ~ $ 
Comment 6 Paul Varner (RETIRED) gentoo-dev 2009-07-27 14:29:24 UTC
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.
Comment 7 Paul Varner (RETIRED) gentoo-dev 2010-01-07 17:31:28 UTC
Fixed in the gentoolkit-0.3.0 series