Bug#517423: dh-make-perl: Should ignore $HOME/.modulebuildrc

2009-03-08 Thread Damyan Ivanov
-=| Paul LeoNerd Evans, Fri, Feb 27, 2009 at 04:43:38PM + |=-
 
 I have a $HOME/.modulebuildrc containing the following, which I find
 useful for directly installing modules in my $HOME:
 
  install install_base=~
 
 When running through dh-make-perl this file needs to be ignored, or else
 bad things happen:
 
  W: libio-async-perl: file-in-unusual-dir root/lib/perl5/IO/Async.pm
 
 I find that the following change fixes it:
 
 --- debian/rules  2009-02-27 16:40:25.0 +
 +++ debian/rules  2009-02-27 16:38:49.0 +
 @@ -40,7 +40,7 @@
   dh_testroot
   dh_clean -k
   # Add commands to install the package into $(TMP) here
 - $(PERL) Build install destdir=$(TMP) create_packlist=0
 + MODULEBUILDRC=/dev/null $(PERL) Build install destdir=$(TMP) 
 create_packlist=0
   touch $@

That won't work with short DH7 debian/rules dh-make-perl uses 
nowadays.

I guess putting MODULEBUILDRC=/dev/null in the environment before 
firing dpkg-buildpackage is a better idea (provided that 
dpkg-buildpackage doesn't sanitize the environment).


-- 
damJabberID: d...@jabber.minus273.org


signature.asc
Description: Digital signature


Bug#517423: dh-make-perl: Should ignore $HOME/.modulebuildrc

2009-03-08 Thread Ansgar Burchardt
Hi,

Damyan Ivanov d...@debian.org writes:

 That won't work with short DH7 debian/rules dh-make-perl uses 
 nowadays.

 I guess putting MODULEBUILDRC=/dev/null in the environment before 
 firing dpkg-buildpackage is a better idea (provided that 
 dpkg-buildpackage doesn't sanitize the environment).

What about patching dh_auto_{configure,build} to export MODULEBUILDRC?
Building Debian packages should not depend on the user's environment
after all.

The quilt makefile snippet handles the situation similar: it passes
--quiltrc /dev/null explicitly whenever quilt is called.

Regards,
Ansgar

-- 
PGP: 1024D/595FAD19  739E 2D09 0969 BEA9 9797  B055 DDB0 2FF7 595F AD19



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#517423: dh-make-perl: Should ignore $HOME/.modulebuildrc

2009-02-27 Thread Paul LeoNerd Evans
Package: dh-make-perl
Version: 0.47
Severity: normal

I have a $HOME/.modulebuildrc containing the following, which I find
useful for directly installing modules in my $HOME:

 install install_base=~

When running through dh-make-perl this file needs to be ignored, or else
bad things happen:

 W: libio-async-perl: file-in-unusual-dir root/lib/perl5/IO/Async.pm

I find that the following change fixes it:

--- debian/rules2009-02-27 16:40:25.0 +
+++ debian/rules2009-02-27 16:38:49.0 +
@@ -40,7 +40,7 @@
dh_testroot
dh_clean -k
# Add commands to install the package into $(TMP) here
-   $(PERL) Build install destdir=$(TMP) create_packlist=0
+   MODULEBUILDRC=/dev/null $(PERL) Build install destdir=$(TMP) 
create_packlist=0
touch $@
 
 binary-arch:


I'm not sure if that's the best/safest plan, but it does at least stop
Module::Build from reading my $HOME/.modulebuildrc during the install
phase. Perhaps there's a better way?

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

Kernel: Linux 2.6.25.nim
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.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.24Debian package development tools
ii  fakeroot  1.11   Gives a fake root environment
ii  libemail-date-format-perl 1.002-1Module to generate RFC-2822-valid 
ii  libmodule-depends-perl0.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-19  Larry Wall's Practical Extraction 
ii  perl-modules [libpod-parser-p 5.10.0-19  Core Perl modules

Versions of packages dh-make-perl recommends:
ii  apt-file 2.1.5   APT package searching utility -- c
ii  libmodule-build-perl 0.2808.01-2 Subclassable and make-independent 
ii  perl-modules [libmodule-buil 5.10.0-19   Core Perl modules

dh-make-perl suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org