Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#65438 closed defect (fixed)

texlive-bin-extra use hard coded perl version

Reported by: nortcele Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mojca (Mojca Miklavec)
Port: texlive-bin-extra

Description

texlive-bin-extra use hard coded perl 5.30 version for perl modules. When installing texlive-bin-extra a hundred of p5.30 modules are added while the curent main version is 5.34.

Could the port be adapted to use instead Perl5.major so that no more p5.30 supplementary modules are added?

Attachments (1)

patch-texlive-bin-extra-p5.major.diff (1.1 KB) - added by nortcele 2 years ago.

Download all attachments as: .zip

Change History (8)

Changed 2 years ago by nortcele

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

A port that uses perl modules must declare a dependency on a specific version of perl (and that version of perl's modules) (or offer variants to let the user choose among several perl versions). Presumably the port depends on p5.30 perl and modules because it was not compatible with p5.28, which were until a few days ago the default. Now that the default is p5.34, it would make sense to use that version, if the port is compatible with it.

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

I don't see anything in the Portfile that instructs the build system to use the specific version of perl that we want it to, which seems like it would be necessary for this to work at all.

If and when the dependencies are changed, the revision would need to be increased.

comment:3 Changed 2 years ago by nortcele

I'm not a perl specialist and my patch was just a (bad) attempt at changing the perl version.

comment:4 Changed 2 years ago by jmroot (Joshua Root)

comment:5 Changed 2 years ago by drkp (Dan Ports)

I... actually do not understand why this port was changed to use perl 5.30. This was evidently committed in [55bb4a785a07751419f6720df1d7757ecca5a7cb/macports-ports] under a maintainer timeout (I don't recall seeing the PR), and doesn't change what version the port is actually using.

I am checking which of the (many) perl scripts in this port have module dependencies in order to fix it.

Last edited 2 years ago by jmroot (Joshua Root) (previous) (diff)

comment:6 Changed 2 years ago by drkp (Dan Ports)

Cc: drkp removed
Status: assignedaccepted

comment:7 Changed 2 years ago by drkp (Dan Ports)

Resolution: fixed
Status: acceptedclosed

In efd11f440038be5b3223f4f4c02bf2c486745818/macports-ports (master):

texlive-bin-extra: fix perl dependencies

  • Patch perl scripts to use correct MacPorts perl version
  • Update list of perl module dependencies
  • Switch to perl 5.34

Closes: #65438
Closes: #61097
See: https://github.com/macports/macports-ports/pull/15265

Note: See TracTickets for help on using tickets.