NetBSD Problem Report #55052
From www@netbsd.org Fri Mar 6 12:44:12 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4A41A1A9217
for <gnats-bugs@gnats.NetBSD.org>; Fri, 6 Mar 2020 12:44:12 +0000 (UTC)
Message-Id: <20200306124410.F3C3F1A9218@mollari.NetBSD.org>
Date: Fri, 6 Mar 2020 12:44:10 +0000 (UTC)
From: jkeenan@pobox.com
Reply-To: jkeenan@pobox.com
To: gnats-bugs@NetBSD.org
Subject: devel/p5-Data-Dump fails to install
X-Send-Pr-Version: www-1.0
>Number: 55052
>Category: pkg
>Synopsis: devel/p5-Data-Dump fails to install
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 06 12:45:00 +0000 2020
>Closed-Date: Sun May 10 22:33:32 +0000 2020
>Last-Modified: Sun May 10 22:33:32 +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:/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:
>Release-Note:
>Audit-Trail:
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/55052: devel/p5-Data-Dump fails to install
Date: Sat, 21 Mar 2020 13:26:20 -0400
There's no issue I see with the p5-Data-Dump package itself. It
installs and is available in my environment as expected. I suspect the
issue you're actually reporting lies with pkgin. Perhaps it's failing
somehow, and not reporting it. (I've never used pkgin, so I can't
comment any further here.)
You could confirm this either by installing p5-Data-Dump from source via
pkgsrc ("make install"), or by installing a pre-built binary package of
it using pkg_add instead of pkgin.
Regards,
Dave
From: James E Keenan <jkeenan@pobox.com>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Cc:
Subject: Re: pkg/55052: devel/p5-Data-Dump fails to install
Date: Sat, 21 Mar 2020 13:53:43 -0400
On 3/21/20 1:30 PM, David H. Gutteridge wrote:
> The following reply was made to PR pkg/55052; it has been noted by GNATS.
>
> From: "David H. Gutteridge" <david@gutteridge.ca>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/55052: devel/p5-Data-Dump fails to install
> Date: Sat, 21 Mar 2020 13:26:20 -0400
>
> There's no issue I see with the p5-Data-Dump package itself. It
> installs and is available in my environment as expected. I suspect the
> issue you're actually reporting lies with pkgin. Perhaps it's failing
> somehow, and not reporting it. (I've never used pkgin, so I can't
> comment any further here.)
>
> You could confirm this either by installing p5-Data-Dump from source via
> pkgsrc ("make install"), or by installing a pre-built binary package of
> it using pkg_add instead of pkgin.
>
> Regards,
>
> Dave
>
>
>
Note in my original post that in my Vagrantfile I successfully installed
6 other p5-* packages using 'sudo pkgin install'. If that is so, why
would a problem in 'pkgin' only manifest itself when trying to install
'devel/p5-Data-Dump'?
Thank you very much.
Jim Keenan
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/55052: devel/p5-Data-Dump fails to install
Date: Sun, 22 Mar 2020 00:34:27 -0400
On Sat, 21 Mar 2020 at 13:53:43 -0400, James E Keenan wrote:
>Note in my original post that in my Vagrantfile I successfully installed
>6 other p5-* packages using 'sudo pkgin install'. If that is so, why
>would a problem in 'pkgin' only manifest itself when trying to install
>'devel/p5-Data-Dump'?
I don't know, but you haven't provided any logging information that
shows what pkgin (or Vagrant) is actually doing while trying to install
the package in question, so it's not possible to discern what's going
on. The package installs correctly for me via pkg_add and pkgin (I just
installed pkgin and tested with it in the most comparable environment I
have).
Please try installing the package outside of Vagrant, and provide a
log of what happens. If pkgin doesn't work, please try pkg_add for
comparative purposes.
Below is a log of a successful installation of p5-Data-Dump on NetBSD
8.1_STABLE (which shares the same packages as 8.0), a test I just ran.
I don't know what version of pkgin you're using, so I chose 0.14.0,
built from the pkgsrc 2019Q4 branch.
# pkgin -v
pkgin 0.14.0 for NetBSD-8.1_STABLE x86_64 (using SQLite 3.17.0)
# pkgin update
reading local summary...
processing local summary...
processing remote summary (https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/8.1/All)...
pkg_summary.bz2 100% 3030KB 378.8KB/s 00:08
# pkgin -V install p5-Data-Dump
calculating dependencies...done.
1 package to refresh:
perl-5.30.1
1 package to install:
p5-Data-Dump-1.23nb4
1 to refresh, 0 to upgrade, 1 to install
11M to download, 59K to install
proceed ? [Y/n] y
perl-5.30.1.tgz 100% 11MB 3.7MB/s 00:03
p5-Data-Dump-1.23nb4.tgz 100% 18KB 17.8KB/s 00:00
refreshing perl-5.30.1...
pkg_add: Warning: package `perl-5.30.1' was built for a platform:
pkg_add: NetBSD/x86_64 8.0 (pkg) vs. NetBSD/x86_64 8.1_STABLE (this host)
installing p5-Data-Dump-1.23nb4...
pkg_add: Warning: package `p5-Data-Dump-1.23nb4' was built for a platform:
pkg_add: NetBSD/x86_64 8.0 (pkg) vs. NetBSD/x86_64 8.1_STABLE (this host)
reading local summary...
processing local summary...
marking p5-Data-Dump-1.23nb4 as non auto-removable
# ls -l /var/db/pkg/p5-Data-Dump-1.23nb4/
total 24
-r--r--r-- 1 root wheel 2277 Mar 22 00:02 +BUILD_INFO
-r--r--r-- 1 root wheel 168 Mar 22 00:02 +BUILD_VERSION
-r--r--r-- 1 root wheel 35 Mar 22 00:02 +COMMENT
-rw-r--r-- 1 root wheel 1197 Mar 22 00:02 +CONTENTS
-r-xr-xr-x 1 root wheel 3802 Mar 22 00:02 +DEINSTALL
-r--r--r-- 1 root wheel 591 Mar 22 00:02 +DESC
-r-xr-xr-x 1 root wheel 3769 Mar 22 00:02 +INSTALL
-r--r--r-- 1 root wheel 9 Mar 22 00:02 +SIZE_ALL
-r--r--r-- 1 root wheel 6 Mar 22 00:02 +SIZE_PKG
# perl -MData::Dump -E 'say q|hello world|;'
hello world
Regards,
Dave
State-Changed-From-To: open->feedback
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sun, 22 Mar 2020 04:42:44 +0000
State-Changed-Why:
Feedback requested, thanks!
State-Changed-From-To: feedback->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sun, 10 May 2020 22:33:32 +0000
State-Changed-Why:
Unable to reproduce, and feedback timeout. (This can always be reopened if the issue can be isolated to pkgsrc.)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.