Re: test failed missing POD::Parser despite a dependency of required POD::Constants

[email protected] (Jonas Smedegaard)
Newsgroups perl.cpan.testers.discuss
Message-ID <[email protected]>
Quoting David Cantrell (2021-08-29 20:43:52)
> On 29/08/2021 17:34, Slaven Rezic wrote:
> > 17. 08. 2021. u 13:59, Jonas Smedegaard piše:
> >> I am trying to understand the real cause of the test failure here: 
> >> http://www.cpantesters.org/cpan/report/9420f4a4-feca-11eb-bc66-57723b537541
> >>
> >> Error message talks about missing POD::Parser, and yes that module 
> >> is needed, but should be pulled in since it is a 
> >> runtime-requirement of POD::Constants which the cpantest states is 
> >> installed.
> >>
> >> What am I missing?

> > could be something similar like 
> > https://rt.cpan.org/Ticket/Display.html?id=132139

Thanks, Slaven - and sorry for totally missing your previous bugreport 
addressing this very issue :-/


> Indeed. bin/licensecheck has `#!/usr/bin/env perl` so it's using 
> whichever perl is first in the path, not whichever perl your code is 
> being tested with.
> 
> Best practice is to instead have `#!perl` as a placeholder shebang line. 
> Then when you `make` (using EU::MM) the path to the correct perl will be 
> filled in for you, in a copy of the script at blib/script/licensecheck, 
> which is what will in turn be installed. Run the version in blib/script 
> in your tests and you should be good.

Thanks, David - I was unaware that path-less shebang was treated 
specially.  Using that looks like the most elegant approach.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmEsm4kACgkQLHwxRsGg
ASFcQw/8D7SGrfxpJDXXp3EqL1V/RkmIC+P345VKpY8dxNO5pQDATTwKNsl/u907
qikIZg0FJfmmTtoEbqm7Y3cyQSsDeb91jlC65r1ep3gEasT35oS5cD7WwXdc/J7R
09BBTY5GoSzdmmFfUSFrweUcmzm3GH7E0p4gA1d+/VCFRjEadYgcYnuNk8Fim2RI
ldZO9k/vQAAXYQA4CyCpAxz4CY4hA9SLpboxGvYh1ger8Y8u6+k3XWLLh36TEW8a
NA0dkk2wgQ5jp1C+hUpybKxSmCC2eC4i+6S8HY/sjHE/WyJYeam+OcgqM9dwkqPq
P+6CsAHXuGJi5JVsQdo1L+ZhUgmgYmVnCcL2DDRalBMF4f10mDQducP7lUvPOlBa
w/mPB8O1UNAYEFJgGnKQZBKi6TiaHfFXZFaDyQ2z+T0BuBb+id6baLQg3sgN5GLf
bvAnCCTjuYoxANLh8SyQqA0lyLMJ8Pq6IWIeOJW0NBVuiaS0/5/4kvHC6Vcs04ud
8MvOuKxussj/367xCh+IpaXVtqEYWThx11YW7q21BoHwOGmYugHPJ0wOvTvwp9NR
8g5g+1Ij1U280yRST9DFTBUam+o7KMKy+mHZH4bJjxLt5L1DvgZH3qfJCamQbrvB
tczj3rZliTy4MJdduJj9J3Zbbp+Mct/q5qPtHxDdemWic3OpwIo=
=KfQ9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.