On Wed, 31 Dec 2008 16:34:58 -0800, Russ Allbery wrote: > > We can of course think about other possibilities on how to build the > > package but in the end we always will need (fake)root privileges. > dh-make-perl echo what dpkg-buildpackage does, namely call debian/rules > build first and then fakeroot debian/rules binary, which will do the build > (and hence the test) as the regular user and only obtain fake root > privileges for the install and package build.
Ah, that's indeed a nice idea.
Committed to the version in svn.
> Or it could even just run
> dpkg-buildpackage instead of calling the target directly.
There's a comment in the source:
# uhmf! dpkg-genchanges doesn't cope with the deb being in another dir..
#system("dpkg-buildpackage -b -us -uc " . $self->cfg->dbflags) == 0
system("fakeroot make -C $maindir -f debian/rules clean");
system("fakeroot make -C $maindir -f debian/rules binary") == 0
|| die "Cannot create deb package\n";
which sounds like there seemed to be some problems with
dpkg-buildpackage.
Cheers,
gregor
--
.''`. Home: http://info.comodo.priv.at/{,blog/} / GPG Key ID: 0x00F3CFE4
: :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/
`. `' Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
`- NP: R.E.M.: Everybody Hurts
signature.asc
Description: Digital signature

