Bug#510362: dh-make-perl: should not run 'make test' under fakeroot

Russ Allbery rra at debian.org
Thu Jan 1 01:49:20 UTC 2009


gregor herrmann <gregoa at debian.org> writes:
> On Wed, 31 Dec 2008 16:34:58 -0800, Russ Allbery wrote:

>> 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.

sentence without the first few words.  :)  Sorry about that.

> 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.

Ah, yes, dpkg-buildpackage doesn't have a "chdir first" option like make
does with -C.  That would do it.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>





More information about the pkg-perl-maintainers mailing list