[MacPorts] #64079: privoxy @3.0.32 uses indeterminate perl5.major for dependencies
MacPorts
noreply at macports.org
Mon Dec 20 12:58:12 UTC 2021
#64079: privoxy @3.0.32 uses indeterminate perl5.major for dependencies
---------------------------+-----------------------
Reporter: brunoomartin | Owner: essandess
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: privoxy |
---------------------------+-----------------------
Changes (by jmroot):
* status: closed => reopened
* resolution: fixed =>
Comment:
Replying to [comment:3 essandess]:
> This doesn’t appear to be this issue. I looked at the way other
Portfiles handle this, and a significant number do not set
{{{perl5.major}}}: https://github.com/search?q=perl5.major+repo%3Amacports
%2Fmacports-ports+filename%3APortfile&type=Code&ref=advsearch&l=&l=
>
> As far as I can tell, the {{{privoxy}}} Portfile is also doing this
correctly.
>
> I do not know how to resolve this dependency issue.
If other ports are doing the same thing, they are also incorrect. The
version of perl used by privoxy changes depending on how perl5 is
installed:
{{{
% port deps privoxy
Full Name: privoxy @3.0.33_1+https_inspection
Fetch Dependencies: gnupg2
Build Dependencies: autoconf, automake, libtool, sf-pwgen
Library Dependencies: brotli, pcre, zlib, apple-pki-bundle, curl-ca-
bundle,
openssl, openssl
Runtime Dependencies: perl5.30, p5.30-getopt-long, p5.30-time-local
% sudo port install perl5 +perl5_28
---> Computing dependencies for perl5
---> Deactivating perl5 @5.28.3_0+perl5_30
---> Cleaning perl5
---> Activating perl5 @5.28.3_0+perl5_28
---> Cleaning perl5
% port deps privoxy
Full Name: privoxy @3.0.33_1+https_inspection
Fetch Dependencies: gnupg2
Build Dependencies: autoconf, automake, libtool, sf-pwgen
Library Dependencies: brotli, pcre, zlib, apple-pki-bundle, curl-ca-
bundle,
openssl, openssl
Runtime Dependencies: perl5.28, p5.28-getopt-long, p5.28-time-local
}}}
This is simply incompatible with binary distribution. It will be built to
use a certain perl version on the build machine, and that perl version may
not even be present on the user's machine because the dependencies
evaluate differently there.
The port needs to choose a specific perl version in a deterministic way.
You can offer variants if it is desirable to be able to use different perl
versions.
--
Ticket URL: <https://trac.macports.org/ticket/64079#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list