pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/55052: devel/p5-Data-Dump fails to install



>Number:         55052
>Category:       pkg
>Synopsis:       devel/p5-Data-Dump fails to install
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 06 12:45:00 +0000 2020
>Originator:     James E Keenan
>Release:        
>Organization:
>Environment:
NetBSD perl-reporter-08 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Yesterday I was unable to install package p5-Data-Dump on NetBSD.

The NetBSD-8.0 system on which the problem was observed is a virtual machine (Virtual Box) sitting on a FreeBSD-11.2 host managed by Vagrant.  The Vagrantfile used to provision the VM calls a shell script which installs various pkgsrc packages and Perl libraries from CPAN.  Whenever a pkgsrc package is available for a given CPAN distribution, I use the pkg.  So, going into this problem, the relevant section of the Vagrant file was this:

#####
     sudo pkgin install \
        p5-CGI \
        p5-JSON \
        p5-JSON-XS \
        p5-HTTP-Daemon \
        p5-HTTP-Message \
        p5-Test-NoWarnings

     sudo pkgin install \
        p5-Data-Dump

     sudo cpan \
        CGI::Utils \
        System::Info \
        Perl::Download::FTP::Distribution
#####

I have called 'vagrant up' or 'vagrant reload --provision' many times on this VM.  The output of 'vagrant reload --provision' would generally contain this output.

#####
    default: 19 packages to refresh:
    default:   p5-URI-1.76nb1 p5-HTML-Tagset-3.20nb11 p5-Try-Tiny-0.30nb2 p5-IO-HTML-1.001nb5
    default:   p5-HTML-Parser-3.72nb4 p5-Encode-Locale-1.05nb5 perl-5.30.1
    default:   p5-common-sense-3.74nb4 p5-Types-Serialiser-1.0nb7 p5-Canary-Stability-2013
    default:   p5-LWP-MediaTypes-6.04 p5-HTTP-Date-6.05 p5-Test-Simple-1.302168
    default:   p5-CGI-4.44nb1 p5-JSON-4.02nb1 p5-JSON-XS-4.02nb1 p5-HTTP-Daemon-6.06
    default:   p5-HTTP-Message-6.18nb2 p5-Test-NoWarnings-1.04nb9
    default: 
    default: 1 package to install:
    default:   p5-Data-Dump-1.23nb4
    default: 
    default: 19 to refresh, 0 to upgrade, 1 to install
    default: 12M to download, 17K to install
    default: 
    default: proceed ? [Y/n] 
#####

In other words, I never got any indication that pkg p5-Data-Dump had *failed* to install.  Nor would I have suspected that p5-Data-Dump would be defective, as I have (a) used the underlying CPAN module, Data::Dump, hundreds of times and (b) I have installed and used the corresponding packages on FreeBSD and OpenBSD many times.

Yesterday, however, I went to run a Perl program which relies on Data::Dump.  The program failed, indicating that Data::Dump could not be located in Perl's @INC, the list of directories which are searched for modules to be loaded.

#####
$ perl -MData::Dump -E 'say q|hello world|;'
Can't locate Data/Dump.pm in @INC (you may need to install the Data::Dump module) (@INC contains: /usr/pkg/lib/perl5/site_perl/5.30.0/x86_64-netbsd-thread-multi /usr/pkg/lib/perl5/site_perl/5.30.0 /usr/pkg/lib/perl5/vendor_perl/5.30.0/x86_64-netbsd-thread-multi /usr/pkg/lib/perl5/vendor_perl/5.30.0 /usr/pkg/lib/perl5/5.30.0/x86_64-netbsd-thread-multi /usr/pkg/lib/perl5/5.30.0).
BEGIN failed--compilation aborted.
#####

I then discovered that p5-Data-Dump had not been installed.

#####
$ pkg_info p5-Data-Dump
pkg_info: can't find package `p5-Data-Dump'
#####

I re-ran 'vagrant reload --provision' several times on the host, with no better results.  Eventually I modifed the Vagrant file to load Data-Dump via the 'cpan' command rather than from pkgsrc.

#####
     sudo cpan \
        CGI::Utils \
        Data::Dump \
        System::Info \
        Perl::Download::FTP::Distribution
#####

Re-running 'vagrant reload --provision', this time CPAN module Data::Dump was clearly installed.

#####
    default: Configuring G/GA/GAAS/Data-Dump-1.23.tar.gz with Makefile.PL
    default: Checking if your kit is complete...
    default: Looks good
    default: Generating a Unix-style Makefile
    default: Writing Makefile for Data::Dump
    default: Writing MYMETA.yml and MYMETA.json
    default:   GAAS/Data-Dump-1.23.tar.gz
    default:   /usr/pkg/bin/perl Makefile.PL -- OK
    default: Running make for G/GA/GAAS/Data-Dump-1.23.tar.gz
...
    default: Running make test for GAAS/Data-Dump-1.23.tar.gz
    default: PERL_DL_NONLAZY=1 "/usr/pkg/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    default: t/dd.t ............. ok
...
    default: t/vstring.t ........ ok
    default: All tests successful.
    default: Files=15, Tests=145,  1 wallclock secs ( 0.07 usr  0.03 sys +  0.34 cusr  0.14 csys =  0.58 CPU)
    default: Result: PASS
    default:   GAAS/Data-Dump-1.23.tar.gz
    default:   /usr/bin/make test -- OK
...
    default:   sudo /usr/bin/make install  -- OK
#####

And Perl can now locate Data::Dump.

#####
$ perl -MData::Dump -E 'say q|hello world|;'
hello world
#####

I therefore infer that there is a defect in pkgsrc package p5-Data-Dump.

>How-To-Repeat:

>Fix:


Home | Main Index | Thread Index | Old Index