#30937: intltool @0.40.6_1 Enhancement to support perl5 variants --------------------------+-------------------------------- Reporter: ccarey@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: haspatch Port: intltool | --------------------------+-------------------------------- Comment (by raimue@…): Replying to [comment:10 raimue@…]:
An alternative and maybe the better way to fix the issue would be to change `${prefix}/share/aclocal/intltool.m4` not to detect any `perl` binary, but use the path `${prefix}/bin/perl5.XY` that was used when building intltool. This would be a patch to the port intltool itself and would allow to use the variant approach originally suggested in this ticket.
I looked into this approach, but unfortunately this would not remove all changes from the port using intltool. The distributed software might already ship a copy of the macros from intltool.m4 as a local version in aclocal.m4. In this case, it is still required to specify the `INTLTOOL_PERL` variable in the Portfile or, as an alternative, regenerate the aclocal.m4 using something like `autogen.sh` or `autoreconf`. Forcing a regenerate of the autotools related files is more intrusive than simply specifying the required environment variable, so I have to acknowledge that my proposal would not be the better fix. -- Ticket URL: <https://trac.macports.org/ticket/30937#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS