Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MT#61568 debian: Switch to Rules-Requires-Root no
This field tells dpkg-buildpackage that no debian/rules target needs to run as root-like (usually via fakeroot), and can be built with no privileges (real or faked ones). This should make the build either faster as there will be no interposed libc calls via an LD_PRELOAD library like fakeroot does, and more robust as fakeroot needs to keep up with implementation details from the system libc; or more secure if the build was being done via real root. The full documentation can be found with «man deb-src-control» and at «/usr/share/doc/dpkg/spec/rootless-builds.txt». Some test cases in the test suite require execution under root-like, and if not will fallback to use `fakeroot`. Once we stop running the build as root-like (via fakeroot), the test then tries to execute fakeroot which cannot be found any longer as there is no explicit Build-Depends on it, so we need to add it explicitly. After the above, there is no longer any need to run the build as root-like. A rebuild before and after this change produces the same file list and permissions. Change-Id: I639a3c77dc0a74430813377124eedf197589121a
- Loading branch information