-
Notifications
You must be signed in to change notification settings - Fork 83
Description
Hi!
Commit 0cbf0f0 removed Rules-Requires-Root: no from the default list of build-deps, since this is now the default in trixie. Great!
Still, I think that instead of just removing it, we could do better. The value of Rules-Requires-Root is controlled by the dpkg build API version used by the build, and when unspecified this defaults to v0. Before R-R-R with API v0 switched from binary-targets to no, it would already be set to no under API v1.
Since using API v1 is recommended, but having to remember to add it manually for each package is a bit of a chore, what about adding it to the default set of build-deps, just like debhelper-compat?
You can find more documentation about it in Policy § 5.6.31 and the dpkg-build-api.7 manpage.
Got this idea while writing this review comment: https://salsa.debian.org/go-team/packages/golang-github-gonvenience-idem/-/merge_requests/2#note_638520