]> git.tue.mpg.de Git - lopsub.git/commit
debian: Enable `Rules-Requires-Root: no`. debian
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 9 Dec 2024 18:29:01 +0000 (19:29 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 12 Dec 2024 20:03:23 +0000 (21:03 +0100)
commit8c31cdf4e9866ab39a5a7da637269cbded023af7
treef89263606a6329460a810d814abf6c2b2e81221c
parent52cbfcd021b75ffb9680400170890b2cc08a76a5
debian: Enable `Rules-Requires-Root: no`.

During a test rebuild for building packages with `Rules-Requires-Root:
no` as the default in `dpkg`, liblopsub failed to rebuild.

The problem is the rule of the `binary` target in `debian/rules` which
runs `install(1)` with -o root -g root to set the owner and group ID of
the files and directories being installed. With `Rules-Requires-Root:
no`, this fails due to insufficient permissions. This commit removes
the problematic options in favor of running `dh_fixperms(1)` just
before `dh_makeshlibs(1)`.

With these changes in place, the build no longer requires any form of
root during the `binary` target. Consequently, we may enable rootless
builds in `debian/control`.

Reported-by: Niels Thykier <niels@thykier.net>
Suggested-by: Niels Thykier <niels@thykier.net>
Reviewed--by: Niels Thykier <niels@thykier.net>
debian/changelog
debian/control
debian/rules