Hi, Quoting Julian Gilbey (2021-02-10 22:51:39) > I wonder if anyone has an idea about this thorny problem. I'm trying > to create a package and thought I'd got something wrong, but have > found the same behaviour happens with the "amp" package (version > 0.6.1-1) and the "spherepack" package (version 3.3~a1-4), which > suggests to me that the problem lies outside of the package itself. > But I have very little idea how to track this bug down. > > [...] > > They are so different, yet supposedly using essentially identical > build environments. (They are also both using sid repositories.) > > If you have any idea why I might be seeing this behaviour, and what I > might be able to do about it, that would be fantastic!
I would actually not be surprised if we find reproducibility problems between packages built on pbuilder versus packages build with sbuild. For example sbuild sets HOME=/sbuild-nonexistent which will make packages FTBFS that try to put anything in $HOME. This is not the problem here, though. If I wrap the call to dh in debian/rules in strace -p I get: [pid 609] statfs("/dev/shm/", {f_type=TMPFS_MAGIC, f_bsize=4096, f_blocks=2097152, f_bfree=861837, f_bavail=861837, f_files=1495318, f_ffree=1426033, f_fsid={val=[0, 0]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_NOSUID|ST_NODEV|ST_RELATIME}) = 0 [pid 609] futex(0x7f82bf2a7410, FUTEX_WAKE_PRIVATE, 2147483647) = 0 [pid 609] getpid() = 609 [pid 609] lstat("/dev/shm/o5kYxf", 0x7ffcfec00740) = -1 ENOENT (No such file or directory) [pid 609] openat(AT_FDCWD, "/dev/shm/o5kYxf", O_RDWR|O_CREAT|O_EXCL, 0600) = -1 EACCES (Permission denied) [pid 609] close(3) = 0 [pid 609] close(4) = 0 [pid 609] write(2, "error: [Errno 13] Permission den"..., 36error: [Errno 13] Permission denied A workaround for this problem is indeed to add --chroot-setup-commands="chmod 777 /dev/shm" to your sbuild invocation. A cursory glance into the pbuilder codebase reveals that pbuilder will mount a tmpfs into /dev/shm: https://sources.debian.org/src/pbuilder/0.231/pbuilder-modules/?hl=417#L417 For sbuild, whether this is done, this depends on your chroot backend. The package builds fine on the buildds though, so I guess they have a schroot setup that sets /dev/shm up correctly? Thanks! cheers, josch
signature.asc
Description: signature