[ovs-dev] Bug#602891: [buildd-tools-devel] Bug#602891: Bug#602891: openvswitch: FTBFS on all arches

Ben Pfaff blp at nicira.com
Tue Nov 9 23:54:25 UTC 2010

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
dev at 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.

Thanks for the analysis!

More information about the dev mailing list