On Wed, 03 Oct 2012 10:04:56 +0200, Mathieu Malaterre wrote: > I am trying to prepare the debian package for: > http://sourceforge.net/projects/refdb/files/refdb-perlmod/RefDB-perlmod-1.2/RefDB-perlmod-1.2.tar.gz > When running the command it fails with:
Some quick observations: > $ dh-make-perl > Using META.yml > Found: RefDB-perlmod 1.2 (librefdb-perlmod-perl arch=all) This means you have already downloaded and unpacked the tarball and are running dh-make-perl in the unpacked directory, right? > CPAN.pm requires configuration, but most of it can be done automatically. > If you answer 'no' below, you will enter an interactive dialog for each > configuration option instead. Ok, here CPAN.pm gets configured for the first time. What bothers me is: > What approach do you want? (Choose 'local::lib', 'sudo' or 'manual') > [local::lib] > Attempting to bootstrap local::lib... > Running make for A/AP/APEIRON/local-lib-1.008004.tar.gz > Fetching with LWP: > http://mir2.ovh.net/ftp.cpan.org/authors/id/A/AP/APEIRON/local-lib-1.008004.tar.gz > Fetching with LWP: > http://mir2.ovh.net/ftp.cpan.org/authors/id/A/AP/APEIRON/CHECKSUMS > Checksum for > /home/mathieu/.cpan/sources/authors/id/A/AP/APEIRON/local-lib-1.008004.tar.gz > ok > > CPAN.pm: Going to build A/AP/APEIRON/local-lib-1.008004.tar.gz > > Attempting to create directory /home/mathieu/perl5 > > > *** Module::AutoInstall version 1.03 > *** Checking for Perl dependencies... > *** Since we're running under CPAN, I'll just let it take care > of the dependency's installation later. > [Core Features] > - ExtUtils::MakeMaker ...loaded. (6.57_05 >= 6.31) > - ExtUtils::Install ...loaded. (1.56 >= 1.43) > - Module::Build ...loaded. (0.38 >= 0.36) > - CPAN ...loaded. (1.960001 >= 1.82) > *** Module::AutoInstall configuration finished. > Checking if your kit is complete... > Looks good > Writing Makefile for local::lib > Writing MYMETA.yml > cp lib/POD2/PT_BR/local/lib.pod blib/lib/POD2/PT_BR/local/lib.pod > cp lib/lib/core/only.pm blib/lib/lib/core/only.pm > cp lib/local/lib.pm blib/lib/local/lib.pm > cp lib/POD2/DE/local/lib.pod blib/lib/POD2/DE/local/lib.pod > Manifying blib/man3/POD2::PT_BR::local::lib.3pm > Manifying blib/man3/lib::core::only.3pm > Manifying blib/man3/local::lib.3pm > Manifying blib/man3/POD2::DE::local::lib.3pm > APEIRON/local-lib-1.008004.tar.gz > /usr/bin/make -- OK > Running make test > PERL_DL_NONLAZY=1 /usr/bin/perl > -I/home/mathieu/perl5/lib/perl5/x86_64-linux-gnu-thread-multi > -I/home/mathieu/perl5/lib/perl5 "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/classmethod.t > t/coderefs_in_inc.t t/de-dup.t t/install.t t/lib-core-only.t t/pipeline.t > t/stackable.t > t/classmethod.t ...... Name "File::Spec::rel2abs" used only once: possible > typo at t/classmethod.t line 20. > t/classmethod.t ...... 1/? Attempting to create directory t/var/splat > t/classmethod.t ...... ok > t/coderefs_in_inc.t .. ok > t/de-dup.t ........... ok > t/install.t .......... skipped: Install Capture::Tiny to test installation > t/lib-core-only.t .... ok > t/pipeline.t ......... ok > t/stackable.t ........ ok > All tests successful. > Files=7, Tests=29, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.22 cusr 0.02 > csys = 0.29 CPU) > Result: PASS > APEIRON/local-lib-1.008004.tar.gz > /usr/bin/make test -- OK > Running make install > Manifying blib/man3/POD2::PT_BR::local::lib.3pm > Manifying blib/man3/lib::core::only.3pm > Installing /home/mathieu/perl5/lib/perl5/local/lib.pm > Installing /home/mathieu/perl5/lib/perl5/POD2/PT_BR/local/lib.pod > Installing /home/mathieu/perl5/lib/perl5/POD2/DE/local/lib.pod > Installing /home/mathieu/perl5/lib/perl5/lib/core/only.pm > Installing /home/mathieu/perl5/man/man3/POD2::PT_BR::local::lib.3pm > Installing /home/mathieu/perl5/man/man3/lib::core::only.3pm > Installing /home/mathieu/perl5/man/man3/local::lib.3pm > Installing /home/mathieu/perl5/man/man3/POD2::DE::local::lib.3pm > Appending installation info to > /home/mathieu/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod > APEIRON/local-lib-1.008004.tar.gz > /usr/bin/make install -- OK > Tried to deactivate inactive local::lib '/home/mathieu/perl5' > > local::lib is installed. You must now add the following environment variables > to your shell configuration files (or registry, if you are on Windows) and > then restart your command line shell and CPAN before installing modules: > > Use of uninitialized value $deactivating in numeric eq (==) at > /home/mathieu/perl5/lib/perl5/local/lib.pm line 354. > Use of uninitialized value $deactivating in numeric eq (==) at > /home/mathieu/perl5/lib/perl5/local/lib.pm line 356. > Use of uninitialized value $interpolate in numeric eq (==) at > /home/mathieu/perl5/lib/perl5/local/lib.pm line 366. > export PERL_LOCAL_LIB_ROOT="/home/mathieu/perl5"; > export PERL_MB_OPT="--install_base /home/mathieu/perl5"; > export PERL_MM_OPT="INSTALL_BASE=/home/mathieu/perl5"; > export > PERL5LIB="/home/mathieu/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:/home/mathieu/perl5/lib/perl5"; > export PATH="/home/mathieu/perl5/bin:$PATH"; > > Would you like me to append that to /home/mathieu/.zshrc now? [yes] no So CPAN.pm installs local:lib from CPAN. This sounds similar to #688842 (cc'd), and I don't think this is what we want by default? >From here on we're back to dh-make-perl: > Needs the following debian packages: perl (>= 5.11.3) > = ExtUtils::MakeMaker is in core since 5.0.0 > > Needs the following debian packages during building: perl (>= 5.0.0) > Using maintainer: Mathieu Malaterre <ma...@debian.org> > Found docs: > Using rules: /usr/share/dh-make-perl/rules.dh7.tiny > Module::AutoInstall needs debhelper (>= 7.2.13) > --- Done > Switched to a new branch 'master' ... which tries to set up a git repo for the package ... (Why? I don't see a command line option; have you configured it in your dh-make-perl configuration? Which is perfectly fine, I'm just curious :)) > Use of uninitialized value $tarball in system at > /usr/share/perl5/DhMakePerl/Command/make.pm line 623. > tar: Old option `f' requires an argument. > Try `tar --help' or `tar --usage' for more information. > : No such file or directory at /usr/share/perl5/Pristine/Tar/Formats.pm line > 65. > pristine-tar: failed to generate delta > Reading package lists... Done > Building dependency tree > Reading state information... Done I _think_ --vcs git only works when dh-make-perl is called with a tarball; because it needs the tarball for the upstream and pristine-tar branches. This is somehow "known", not sure if there already is a bug report or even a fix in git. > -- System Information: > Debian Release: 6.0.5 > APT prefers stable-updates > APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), > (100, 'unstable') > Architecture: amd64 (x86_64) And which version of dh-make-perl? Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- BOFH excuse #4: static from nylon underwear -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org