Hi Daniel,

Am Mittwoch 16 Februar 2011 16:59:07 schrieb Daniel Kahn Gillmor:
> Hi Moritz--
>
> On 02/16/2011 10:42 AM, Moritz Muehlenhoff wrote:
> > Our buildsystem uses largish file names, which exposed a bug in the test
> > suite:
> >
> > tests/basic tries to create a socket:
> >
> > socat EXEC:"/usr/sbin/sshd -f ${SSHD_CONFIG} -i -D -e"
> > "UNIX-LISTEN:${SOCKET}" 2> "$TEMPDIR"/sshd.log &
> >
> > Since the maximum socket name length is 108 chars, it fails when build in
> > large directory. You can reproduce by building in
> > ~/11111111111111111111111111111111111111111111111111111111111111111111111
> >11111111111111111111111111111111111111111
>
> Thanks for the report!  We're aware of this limitation: #573902 is
> marked "affects monkeysphere".
>
>    http://bugs.debian.org/573902

Ah, I didn't see this before.

> I'm not sure how to resolve the problem reliably, though, since the
> socket name length limitation appears to come from
> /usr/include/sys/un.h and i don't know if that's fixable or not.

Yep, that's a limitation unlikely to change anytime soon.

> Do you have any suggestions, Moritz?  I suppose we could make the test
> suite fail earlier, or try to force the creation of the socket someplace
> else in the filesystem (e.g. test if socat fails with the given error,
> and if so try again with (mktemp -d /tmp/mstest.XXXXXXXXX).  But we have
> no guarantees that this is even possible (so it might still fail), and
> it means a more convoluted cleanup process for the test suite.

I would propose to either skip the "basic" test suite if the length of pwd is 
below a threshold or to run the testsuite in 
(mktemp -d /tmp/mstest.XXXXXXXXX) rightaway.

Cheers,
Moritz
-- 
Moritz Mühlenhoff                         muehlenh...@univention.de
Open Source Software Engineer and Consultant
Univention GmbH  Linux for Your Business     fon: +49 421 22 232- 0
Mary-Somerville-Str.1  28359 Bremen          fax: +49 421 22 232-99
http://www.univention.de



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to