Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Bug#689476: : No such file or directory at /usr/share/perl5/Pristine/Tar/Formats.pm line 65

50 views
Skip to first unread message

Mathieu Malaterre

unread,
Oct 3, 2012, 4:10:02 AM10/3/12
to
Package: dh-make-perl
Severity: normal

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:

$ dh-make-perl
Using META.yml
Found: RefDB-perlmod 1.2 (librefdb-perlmod-perl arch=all)
Parsing /var/cache/apt/apt-file/ftp.fr.debian.org_debian_dists_experimental_contrib_Contents-amd64.gz ...
Parsing /var/cache/apt/apt-file/ftp.fr.debian.org_debian_dists_experimental_main_Contents-amd64.gz ...
Parsing /var/cache/apt/apt-file/ftp.fr.debian.org_debian_dists_experimental_non-free_Contents-amd64.gz ...
Parsing /var/cache/apt/apt-file/ftp.fr.debian.org_debian_dists_sid_contrib_Contents-amd64.gz ...
Parsing /var/cache/apt/apt-file/ftp.fr.debian.org_debian_dists_sid_main_Contents-amd64.gz ...
Parsing /var/cache/apt/apt-file/ftp.fr.debian.org_debian_dists_sid_non-free_Contents-amd64.gz ...

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.

Would you like to configure as much as possible automatically? [yes]

<install_help>

Warning: You do not have write permission for Perl library directories.

To install modules, you need to configure a local Perl library directory or
escalate your privileges. CPAN can help you by bootstrapping the local::lib
module or by configuring itself to use 'sudo' (if available). You may also
resolve this problem manually if you need to customize your setup.

What approach do you want? (Choose 'local::lib', 'sudo' or 'manual')
[local::lib]

Autoconfigured everything but 'urllist'.

Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.

Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes]
Trying to fetch a mirror list from the Internet
Fetching with LWP:
http://www.perl.org/CPAN/MIRRORED.BY

Looking for CPAN mirrors near you (please be patient)
............................ done!

New urllist
http://mir2.ovh.net/ftp.cpan.org/
http://www.mirror.8086.net/sites/CPAN/
http://cpan.mirror.anlx.net/

Autoconfiguration complete.

Attempting to bootstrap local::lib...

Writing /home/mathieu/.cpan/CPAN/MyConfig.pm for bootstrap...
commit: wrote '/home/mathieu/.cpan/CPAN/MyConfig.pm'
Fetching with LWP:
http://mir2.ovh.net/ftp.cpan.org/authors/01mailrc.txt.gz
Going to read '/home/mathieu/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://mir2.ovh.net/ftp.cpan.org/modules/02packages.details.txt.gz
Going to read '/home/mathieu/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Wed, 03 Oct 2012 05:43:04 GMT
..............
New CPAN.pm version (v1.9800) available.
[Currently running version is v1.960001]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.


..............................................................DONE
Fetching with LWP:
http://mir2.ovh.net/ftp.cpan.org/modules/03modlist.data.gz
Going to read '/home/mathieu/.cpan/sources/modules/03modlist.data.gz'
............................................................................DONE
Going to write /home/mathieu/.cpan/Metadata
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


commit: wrote '/home/mathieu/.cpan/CPAN/MyConfig.pm'

You can re-run configuration any time with 'o conf init' in the CPAN shell
= perl >= 5.008001 is in core
= ExtUtils::MakeMaker >= 6.31 is in core since 5.8.9
= CPAN >= 1.82 is in core since 5.8.9
= Module::Build >= 0.36 is in core since 5.11.3
= ExtUtils::Install >= 1.43 is in core since 5.8.9

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


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

Kernel: Linux 3.2.0-0.bpo.2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


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

Damyan Ivanov

unread,
Oct 3, 2012, 4:30:02 AM10/3/12
to
retitle 689476 dh-make-perl fails to find upstream tarball (CPAN in local::lib mode?)
thanks

-=| Mathieu Malaterre, 03.10.2012 10:04:56 +0200 |=-
> Package: dh-make-perl
> Severity: normal

Which version is the package?

> 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:
>
> $ dh-make-perl
> Using META.yml

Is this the whole command line? In which directory was it run?

> What approach do you want? (Choose 'local::lib', 'sudo' or
> 'manual')
> [local::lib]

I've never had CPAN configured to use local::lib, so this may have
some side effects.

> Using rules: /usr/share/dh-make-perl/rules.dh7.tiny
> Module::AutoInstall needs debhelper (>= 7.2.13)
> --- Done
> Switched to a new branch 'master'
> Use of uninitialized value $tarball in system at /usr/share/perl5/DhMakePerl/Command/make.pm line 623.

Or, maybe no tarball was given so none is found and a bug needs to be
fixed.

signature.asc

Mathieu Malaterre

unread,
Oct 3, 2012, 4:40:02 AM10/3/12
to
found 689476 dh-make-perl/0.76-1
thanks

Hi !

Thanks for the quick answer.

On Wed, Oct 3, 2012 at 10:19 AM, Damyan Ivanov <d...@debian.org> wrote:
> -=| Mathieu Malaterre, 03.10.2012 10:04:56 +0200 |=-
>> Package: dh-make-perl
>> Severity: normal
>
> Which version is the package?

$ apt-cache policy dh-make-perl
dh-make-perl:
Installed: 0.76-1
Candidate: 0.76-1
Version table:
*** 0.76-1 0
500 http://ftp.fr.debian.org/debian/ sid/main amd64 Packages
100 /var/lib/dpkg/status


>> 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:
>>
>> $ dh-make-perl
>> Using META.yml
>
> Is this the whole command line? In which directory was it run?

Full steps:

$ wget http://sourceforge.net/projects/refdb/files/refdb-perlmod/RefDB-perlmod-1.2/RefDB-perlmod-1.2.tar.gz
$ tar xfz RefDB-perlmod-1.2.tar.gz
$ cd RefDB-perlmod-1.2/
$ dh-make-perl

>> What approach do you want? (Choose 'local::lib', 'sudo' or
>> 'manual')
>> [local::lib]
>
> I've never had CPAN configured to use local::lib, so this may have
> some side effects.

Sorry first perl package ever. I used the default option.

>> Using rules: /usr/share/dh-make-perl/rules.dh7.tiny
>> Module::AutoInstall needs debhelper (>= 7.2.13)
>> --- Done
>> Switched to a new branch 'master'
>> Use of uninitialized value $tarball in system at /usr/share/perl5/DhMakePerl/Command/make.pm line 623.
>
> Or, maybe no tarball was given so none is found and a bug needs to be
> fixed.

Maybe I missed something from the documentation...

Thanks anyway.

gregor herrmann

unread,
Oct 4, 2012, 5:20:05 PM10/4/12
to
On Thu, 04 Oct 2012 21:27:01 +0300, Niko Tyni wrote:

> > Note that local::lib is currently used as the default mode in some
> > circumstances, see #688842 (cc'd). I hope we can fix this before the
> > release (and have marked it as release critical), help is welcome.
> However, thinking a bit more about this: I expect the outcome of #688842
> is that /usr/local is used by default when it's writable by the current
> user (which usually meens root privileges), but local::lib still will
> be the default for unprivileged users.

Right, but I still consider CPAN.pm (on Debian) dowloading and
installing upstream local::lib -- separately from the packaging
system -- as a not really brilliant option.
(I don't want to imagine the amounts of bug reports due to local::lib
setting up directories and environment variables on its own.)

> That may mean that dh-make-perl needs changes anyway?

As far as I could see in the bug report, the problem in dh-make-perl
is only related to git repos and tarballs; that the output included
the cpan/local::lib setup was IMO purely accidental.


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
`- NP: The Beatles: Come Together
signature.asc
0 new messages