In message <https://marc.info/?l=openbsd-misc&m=168195765101827&w=1>
I described an amd64 system which, after a 7.1-->7.2-->7.3 set of
upgrades, now has the perl Term::ReadPassword library inconsistent with
the system perl.


Jeremy Mates <jeremy.ma...@gmail.com> asked
> Does the code error in the same way after the Term::ReadPassword package
> is removed, thus indicating that maybe a `cpan` run installed the module
> outside the OpenBSD package system?

Good idea, but no.  If the package is removed I get the expected failure
that perl can't find the package:
  # pkg_delete -vv !$
  pkg_delete -vv p5-Term-ReadPassword
  Running /usr/sbin/makewhatis -u /usr/local/man -- 
/usr/local/man/man3p/Term::ReadPassword.3p
  p5-Term-ReadPassword-0.11p2: ok
  Read shared items: ok
  Clean shared items: ok
  /dev/sd1g on /usr/local: -18737 bytes
  # /tmp/foo
  Can't locate Term/ReadPassword.pm in @INC (you may need to install the 
Term::ReadPassword module) (@INC contains: 
/usr/local/libdata/perl5/site_perl/amd64-openbsd 
/usr/local/libdata/perl5/site_perl /usr/libdata/perl5/amd64-openbsd 
/usr/libdata/perl5) at /tmp/foo line 4.
  BEGIN failed--compilation aborted at /tmp/foo line 4.
  #


Andrew Hewus Fresh <and...@afresh1.com> wrote:
> This usually happens when an XS module is installed outside of the
> package ecosystem, often with a CPAN client.
> 
> I would guess this error is Term::ReadLine::Gnu
> https://metacpan.org/pod/Term::ReadLine::Gnu

I've never used the CPAN client (I always install CPAN perl modules
"manually" via 'perl Makefile.PL'; 'make'; 'make test'; 'doas make install',
and follow dependency chains manually).  And I've never installed
Term::Readline::Gnu.  But I do see that I installed the p5-Devel-NYTProf
package, and maybe that dragged in some conflicting library?  But
deleting that package doesn't change the error I'm getting.

Hmm, since I have another -- fully working 7.3/amd64 system with what
should be the identical set of perl modules and packages, maybe comparing
recursive directory listings and/or file contents of the perl @INC
directories between the working and broken systems would be informative.
I'll try that.....

Thanks to both of you for your suggestions!
ciao,
--
-- "Jonathan Thornburg [remove -color to reply]" <dr.j.thornb...@gmail-pink.com>
   on the west coast of Canada, eh?
   "Now back when I worked in banking, if someone went to Barclays,
    pretended to be me, borrowed UKP10,000 and legged it, that was
    `impersonation', and it was the bank's money that had been stolen,
    not my identity.  How did things change?" -- Ross Anderson

Reply via email to