Control: tags -1 + patch Johannes Schauer: > Control: reassign -1 src:schroot > > Quoting Ximin Luo (2018-07-14 20:08:28) >> Please add /dev/dri to the default sbuild mounts, this is needed to run >> GPU-based tests. For example the leela-zero package cannot run tests until I >> add the following line to /etc/schroot/sbuild/fstab: >> >> /dev/dri /dev/dri none rw,bind 0 0 >> >> After that then everything works fine. >> >> You can test by entering an schroot and running >> >> $ apt-get install clinfo mesa-opencl-icd >> $ clinfo -l >> >> replacing "mesa-opencl-icd" with another package that provides opencl-icd >> depending on what your graphics driver is. If everything is succesful then >> clinfo will output some "Device" lines, otherwise it will only output >> "Platform" lines (or nothing at all). The default sbuild setup fails, until >> I add the /dev/dri line that I mentioned above. > > this is not an "sbuild mount". What is mounted or not is a property of the > backend and in this case it's something the schroot backend has to take care > of. Thus, reassigning. >
Ah, indeed now I see the issue is with the default schroot mount templates: schroot-1.6.10$ grep -Ri dev/pts etc/profile-templates/sbuild/linux/fstab:/dev/pts /dev/pts none rw,bind 0 0 etc/profile-templates/desktop/linux/fstab:/dev/pts /dev/pts none rw,bind 0 0 etc/profile-templates/buildd/linux/fstab:/dev/pts /dev/pts none rw,bind 0 0 etc/profile-templates/default/linux/fstab:/dev/pts /dev/pts none rw,bind 0 0 We basically just need these lines to be duplicated then "pts" replaced with "dri". This works: sed -i -ne 'p;s/pts/dri/gp' etc/profile-templates/*/*/fstab X -- GPG: ed25519/56034877E1F87C35 GPG: rsa4096/1318EFAC5FBBDBCE https://github.com/infinity0/pubkeys.git