[MacPorts] #71394: texlive-bin-extra @70579 has too many dependencies of Perl Modules

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


#71394: texlive-bin-extra @70579 has too many dependencies of Perl Modules
-----------------------+-------------------------------
 Reporter:  ballapete  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.10.2
 Keywords:             |       Port:  texlive-bin-extra
-----------------------+-------------------------------
 On my regular and up-to-date Mac it depends on these Perl Modules:

 {{{
 p5.34-data-dumper, p5.34-file-homedir, p5.34-file-which, p5.34-getopt-
 long, p5.34-log-dispatch, p5.34-log-log4perl, p5.34-mime-charset, p5.34
 -text-parsewords, p5.34-unicode-linebreak, p5.34-yaml-tiny, p5.34-libwww-
 perl, p5.34-lwp-protocol-https, p5.34-file-copy-recursive, p5.34-html-
 formatter, p5.34-www-mechanize, p5.34-ipc-system-simple, p5.34-tk
 }}}

 while on my elder test Mac they could be reduced to this set:

 {{{
                    p5.34-file-homedir, p5.34-file-which,
 p5.34-log-dispatch, p5.34-log-log4perl, p5.34-mime-charset,
 p5.34-unicode-linebreak, p5.34-yaml-tiny, p5.34-libwww-perl, p5.34-lwp-
 protocol-https, p5.34-file-copy-recursive, p5.34-html-formatter, p5.34
 -www-mechanize, p5.34-ipc-system-simple, p5.34-tk
 }}}

 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/71394>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list