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

Mark Hedges hedges at scriptdolphin.org
Wed Dec 31 22:16:10 UTC 2008


Package: dh-make-perl
Version: 0.47
Severity: normal


`make test` should not be run as a root user.  It fails for
packages that require Apache::Test to spawn an apache server.
dh-make-perl should first run `make test` and then do fakeroot
to build the package.

Try making a temp directory as a non-privileged user and run
`dh-make-perl --cpan Apache2::AuthCookie`
(with libapache2-mod-perl2) installed.

  [warning] root mode: changing the files ownership to 'nobody' (65534:65534)
  [warning] testing whether 'nobody' is able to -rwx /tmp/lame/Apache-AuthCookie-3.12/t
  "/usr/bin/perl" -Mlib=/usr/lib/perl5 -MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(65534, 65534, q[/tmp/lame/Apache-AuthCookie-3.12/t]) }';


  [warning] result: 
  [  error] You are running the test suite under user 'root'.

But I'm not running as root.  If I go into the directory and 
do `make test` it works just fine, it starts up Apache::Test,
spawns a server and runs the tests successfully.

As a normal user it appears to be impossible to set the permissions 
open as recommended because t/logs keeps getting created.

I was successful in building this as user `nobody` after
I exported HOME=/tmp so that cpan worked correctly.

Mark


-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-maggie-6 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dh-make-perl depends on:
ii  debhelper                     7.0.15     helper programs for debian/rules
ii  dpkg-dev                      1.14.23    Debian package development tools
ii  fakeroot                      1.11       Gives a fake root environment
ii  libemail-date-format-perl     1.002-1    Module to generate RFC-2822-valid 
ii  libmodule-depends-perl        0.14-1     identify the dependencies of a dis
ii  libwww-mechanize-perl         1.34-2     Automate interaction with websites
ii  libyaml-perl                  0.66-1     YAML Ain't Markup Language (tm)
ii  make                          3.81-5     The GNU version of the "make" util
ii  perl                          5.10.0-18  Larry Wall's Practical Extraction 
ii  perl-modules [libpod-parser-p 5.10.0-18  Core Perl modules

Versions of packages dh-make-perl recommends:
ii  apt-file                      2.1.5      APT package searching utility -- c
ii  perl-modules [libmodule-build 5.10.0-18  Core Perl modules

dh-make-perl suggests no packages.

-- no debconf information





More information about the pkg-perl-maintainers mailing list