Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 6468

Summary: emerge less does not install /usr/bin/less
Product: Gentoo Linux Reporter: Ole Tange <bugs.gentoo.org>
Component: Current packagesAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: normal CC: bugs.gentoo.org, kevin
Priority: High    
Version: 1.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: normal emerge
bad emerge of less

Description Ole Tange 2002-08-14 11:29:45 UTC
My /var/tmp resides not on the same partition as /usr/bin (/usr is a symlink to 
a dir on another partition). This makes rename fail. So in the final install 
less is not moved to /usr/bin. 
 
An strace reveals this as the cause.
Comment 1 Nick Hadaway 2002-08-15 14:42:40 UTC
The ebuild for less if very simple.  The only install operation 
on /usr/bin/less is via this line...

dobin less lessecho lesskey

dobin is a function of the ebuild system so I am passing this bug on to 
drobbins.
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-08-16 23:33:34 UTC
Ole, sounds like you have a messed-up system. The reason you give for dobin
failing doesn't make any sense, and should work even if /usr is a symbolic link.
Comment 3 Ole Tange 2002-08-17 10:34:35 UTC
Created attachment 3162 [details]
normal emerge
Comment 4 Ole Tange 2002-08-17 10:35:03 UTC
Created attachment 3163 [details]
bad emerge of less
Comment 5 Ole Tange 2002-08-17 10:37:25 UTC
It seems the bug is reproduceable:

If /var/tmp is bind-mounted the emerge fails. If it is not bind-mounted it does
not. See the attached logfiles for an example of good and bad.
 
Comment 6 Daniel Robbins (RETIRED) gentoo-dev 2002-08-18 19:02:34 UTC
Bind mounted from where to where? I really need more detailed bug reports than this.
Comment 7 Daniel Robbins (RETIRED) gentoo-dev 2002-08-18 19:15:27 UTC
OK, I figured this out.  For some reason Linux doesn't let you rename between
the same filesystem if you are going from one mount to another bind-mount. Boo!
Will be fixed in 2.0.29.