Bug#39105: dpkg-buildpackage requires to be root
On Mon, Jun 07, 1999 at 06:05:53PM +0200 , Laurent Martelli wrote:
> Package: dpkg-dev
> Version: 18.104.22.168
> Severity: normal
> You need to be root in order to run "dpkg-buildpackage -b
> -uc". Building a package should be doable by anybody.
The build process needs :) to be root because of the file premissions in the
final .deb file - they should be root.root.
But there exists a package fakeroot which wraps some syscalls so that
f.e. chown root.root will seem to work. I BWT i think that dpkg-buildpackage
can be called by !root, but the rule binary in debian/rules will fail
on a check for root.
Try dpkg-buildpackage -rfakeroot <your options>
Debian GNU/Linux - maintainer & administrator