Debian reprotest

Before using this article, it is expected you have a working Debian sbuild setup. If you do not have one, see the link below for my tutorial on how to install and setup sbuild.

Install reprotest

sudo apt install reprotest

Configure and avoid many sudo prompts

reprotest --print-sudoers --variations=user_group.available+=guest-builder,domain_host.use_sudo=1 | sudo EDITOR=tee visudo -f /etc/sudoers.d/local-reprotest

echo "/etc/sudoers.d/local-reprotest /etc/sudoers.d/local-reprotest none bind 0 0" | sudo tee -a /srv/chroot/unstable-amd64-sbuild/etc/fstab

Running reprotest

Note: Please always run reprotest from the same directory as the <package_name>_<package_version>-<debian_revision>.dsc file.

sudo reprotest --vary=-build_path,domain_host.use_sudo=1 --auto-build <package_name>_<package_version>-<debian_revision>.dsc -- schroot unstable-amd64-sbuild

If the package is using a git work flow, you can run reprotest from the packages root directory by replacing the .dsc with a ..

sudo reprotest --vary=-build_path,domain_host.use_sudo=1 --auto-build . -- schroot unstable-amd64-sbuild

References


Donations

If you choose to do so, you can donate to me by clicking on the image below. Any donations are greatly appreciated and go towards hosting and hardware so I can continue contribution across a wide range of Free and Open Source projects.

Buy me a coffee