Bug#510362: dh-make-perl: should not run 'make test' under fakeroot
gregor herrmann
gregoa at debian.org
Thu Jan 1 01:36:44 UTC 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20090101/053778a9/attachment.pgp
More information about the pkg-perl-maintainers
mailing list