Source: uid-wrapper
Version: 1.0.2-1

It failed to build on arm64:

http://buildd.debian.org/status/package.php?p=uid-wrapper&suite=sid

The error was:

/«PKGBUILDDIR»/tests/testsuite.c: In function 'test_uwrap_syscall':
/«PKGBUILDDIR»/tests/testsuite.c:201:15: error: 'SYS_access'
undeclared (first use in this function)
  rc = syscall(SYS_access, ".", R_OK);
               ^

On arm64 there is no SYS_access. Instead there is SYS_faccessat, which
is more general. I would suggest replacing

        rc = syscall(SYS_access, ".", R_OK);
        assert_int_equal(rc, 0);

with:

#ifdef SYS_access
        rc = syscall(SYS_access, ".", R_OK);
        assert_int_equal(rc, 0);
#endif

#if defined(SYS_faccessat) && defined(AT_FDCWD)
        rc = syscall(SYS_faccessat, AT_FDCWD, ".", R_OK, 0);
        assert_int_equal(rc, 0);
#endif

If you want that second test to be really used you must also add

#include <fcntl.h>

to the top of the file so that AT_FDCWD gets defined.


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to