On Tue, Nov 09, 2010 at 03:54:25PM -0800, Ben Pfaff wrote: > On Tue, Nov 09, 2010 at 09:33:33PM +0000, Roger Leigh wrote: > > We've had this issue before. Ultimately: > > - we can mitigate the restriction by making the path shorter, but > > we can't make any guarantees even than since package names and > > version numbers don't have any fixed limit. You still have to > > factor in the relative path length under the build tree as well. > > - using a guaranteed short path under /tmp is the only way to ensure > > success. My home dir at work is over five levels deep from the > > root, so upstream really should deal with the limitation since > > users don't always have the choice of shortening the path. > > I've found an acceptable workaround. I will send a patch to > d...@openvswitch.org soon. In short, to connect or bind a socket with a > name that is too long, open a fd for the dirname of the socket then use > /proc/self/fd/<dirfd>/basename as the name. This seems to work fine. > It won't handle the case where the socket's basename is too long, but > that's also not the problem here.
Awesome, glad you've found a workaround! -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
signature.asc
Description: Digital signature