FreeBSD port devel/p5-Getopt-Long, unneeded as Getopt::Long is bundled with perl?
Matthew Seaman
matthew at FreeBSD.org
Mon Mar 28 14:33:06 UTC 2016
On 28/03/2016 14:00, Lars Thegler wrote:
> On 27 March 2016 at 23:57, Dmitry Marakasov <amdmi3 at amdmi3.ru> wrote:
>> and the devel/p5-Getopt-Long seems to be unneeded. So, don't we
>> need to remove ${PORTSDIR}/devel/p5-Getopt-Long dependency lines
>
> Just be careful with these dual-life modules. The versions of modules
> bundled with the distributions are almost always older than the
> versions on CPAN, and thus the versions in ports. So, a bugfix in e.g.
> Getopt::Long will only be distributed to FreeBSD users if there is an
> explicit dependency listed in the Makefile.
Apparently not in this case. The version of Getopt::Long bundled with
the oldest version of perl currently in the tree is:
% corelist -v 5.18.4 Getopt::Long
Getopt::Long 2.39
That with the newest release version of perl in the tree is:
% corelist -v 5.22.1 Getopt::Long
Getopt::Long 2.45
and it's 2.48 in perl5-devel:
https://github.com/Perl/perl5/blob/blead/cpan/Getopt-Long/lib/Getopt/Long.pm#L20
The most recent version of Getopt::Long required by any port where a
version is specified is 2.39:
% cd /usr/ports && grep -r --exclude './.svn/*' 'p5-Getopt-Long>=2' .
./devel/p5-Minilla/Makefile:
p5-Getopt-Long>=2.36:${PORTSDIR}/devel/p5-Getopt-Long \
./devel/p5-App-Cmd/Makefile:BUILD_DEPENDS+=
p5-Getopt-Long>=2.39:${PORTSDIR}/devel/p5-Getopt-Long
./devel/p5-App-Cmd/Makefile:RUN_DEPENDS+=
p5-Getopt-Long>=2.39:${PORTSDIR}/devel/p5-Getopt-Long
./converters/p5-LaTeXML/Makefile:
p5-Getopt-Long>=2.37:${PORTSDIR}/devel/p5-Getopt-Long \
Whilst the currently available version of the separate port is:
% make -C /usr/ports/devel/p5-Getopt-Long -V PKGNAME
p5-Getopt-Long-2.46
So there's no apparent need for any other port to depend on a separate
p5-Getopt-Long, but that port is at least slightly ahead of the bundled
version with any of the available perl ports, except for perl5-devel.
The p5-Getopt-Long port could be upgraded to 2.48 though.
Cheers,
Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-perl/attachments/20160328/e718b2c5/attachment.sig>
More information about the freebsd-perl
mailing list