[MacPorts] #71393: intltool @0.51.0 has too many dependencies of Perl Modules

MacPorts noreply at macports.org
Mon Nov 25 22:42:35 UTC 2024


#71393: intltool @0.51.0 has too many dependencies of Perl Modules
-----------------------+----------------------
 Reporter:  ballapete  |      Owner:  (none)
     Type:  update     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.10.4
 Keywords:             |       Port:  intltool
-----------------------+----------------------
 On my regular and up-to-date Mac it has these deps:

 {{{
 p5.34-getopt-long, p5.34-pathtools, p5.34-scalar-list-utils, p5.34-xml-
 parser
 }}}

 On an older test machine with macOS High Sierra they are already reduced
 to:

 {{{
 p5.34-xml-parser
 }}}

 (Both also report `expat`, but this is no Perl Module.) The reason I could
 reduce the set is that `Perl 5.34` has a few these module in its core.
 This is also true for quite a few modules supported by MacPorts…

 A little (Bourne Again) shell script like this can report which modules
 are duplicates of those in the core:

 {{{
 Perl="perl5.34"         # echo "$1" | tr "[:upper:]" "[:lower:]"
 Version=$( echo $Perl | cut -c 5-)
 echo "Version ist $Version"
 PerlCoreModules=$(port contents $Perl | egrep '\.pm$')   # | tr '\012' '
 ')
 #PerlCoreModules="/opt/local/lib/perl5/5.34/HTTP/Tiny.pmz
 /opt/local/lib/perl5/5.34/Perl/OSType.pm
 /opt/local/lib/perl5/5.34/HTTP/Tiny.pm
 /opt/local/lib/perl5/5.34/Time/tm.pm
 /opt/local/lib/perl5/5.34/Getopt/Long.pm
 /opt/local/lib/perl5/5.34/Getopt/Std.pm"
 printf "Wir haben %d Perl-Module mit dem Core von %s installiert.\n"
 $(echo $PerlCoreModule | wc -w) $Perl

 (
 for PM in $PerlCoreModules; do
     vPM="`echo $PM | sed -e s,${Version},vendor_perl/${Version},`"
 #    echo "vPM ist $vPM"
     if [ -e $vPM ]; then port provides $vPM; fi
 done
 ) | sort -k 5
 }}}

 I found one exception: `p5-test-simple`. In Perl's core only a few
 components from this "package" are incorporated.

 Another exception is `p5-moosex-getopt`. Testing it requires  Getopt::Long
 >= 2.55, although it builds with Perl's core.

-- 
Ticket URL: <https://trac.macports.org/ticket/71393>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list