Hi Ivo! Ivo De Decker <iv...@debian.org> writes:
> On Tue, Nov 25, 2014 at 10:38:44PM +0100, Lucas Nussbaum wrote: >> Note that the build now fails on i386 too. >> >> Trying to reproduce it locally, I run into yet another problem: >> >> 1) Failure: >> repo::iterator::fs_preserves_error >> [/tmp/libgit2-0.21.1/tests/repo/iterator.c:952] >> Expected function call to fail: git_iterator_advance(&e, i) > > This problem is only occurs when running is root (the test chmods a file to > 000 and checks if accessing it fails). It would probably be a good idea to add > another test to check if the test is running as root, and fail in that case > (because the tests assume they aren't). Interesting I didn't know that the user running the tests was the problem. Is that a problem with the buildd deployments? Or is it not a requirement that they all run as the same user? I guess what I'm really asking is if I add a test who will fix it when it fails? > The failure that happens on the i386 buildd is this one: > > 1) Failure: > clone::nonetwork::local_absolute_path > [/«PKGBUILDDIR»/tests/clone/nonetwork.c:91] > Function call failed: (git_clone(&g_repo, local_src, "./foo", &g_options)) > error -1 - git_path_direach callback returned -1 > > > I can reproduce this in my test environment on i386 and amd64. It only happens > when the builddir and /tmp are on different filesystems. It seems the local > clone tries to create a hard link, which fails across filesystems (the fact > that this happens without fallback is an error in itself, so the test actually > discovered a problem here). When setting the TMPDIR to a directory on the same > filesystem, the test doesn't hit this issue, and the build works fine. > > It's unclear to me why this only happens on i386, but I suspect that the setup > of the buildd chroots isn't the same everywhere. Yeah it struck me as odd. This same problem effects kfreebsd too so the change of the tmp dir will fix those builds as well. I'll have go at the running the clone nonetwork test with TMPDIR set to a mounted file system and report a bug upstream. > In any case, adding this patch fixes it in my environment. I can do an NMU if > necessary. Thanks heaps for the patch, I only yesterday did exactly the same thing. It's included in the yet to be uploaded 0.21.3-1 that will also address the recent CVE. 0. http://anonscm.debian.org/cgit/users/arrsim-guest/libgit2.git/commit/?id=bd3a1fc82c5af703fe061fb22022eb48fb89be50 -- Cheers, Russell -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org