[Bug 205367] Multiple ports: PERL should be used instead of PERL5

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 17 07:41:27 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205367

--- Comment #9 from Mikhail Teterin <mi at FreeBSD.org> ---
(In reply to Chris Hutchinson from comment #8)
> Could an exp-run reveal this (the issue you describe)?

Most likely, no -- or else, it would've been revealed already. Exp-run performs
a clean rebuild of everything. The problem with PERL5 being set incorrectly
arises on a live system. Here is how:

1. Build and install perl -- by using a lang/perl5.XX port and set
PERL5_DEFAULT to the 5.xx. In my case, the xx is 22, but it does not matter.
2. Wait for the port you chose to be upgraded -- in my case, it went from 5.22
to 5.22.1
3. Update your ports-tree.
4. Check the value of PERL5 -- by cd-ing into any perl5-using port and
performing `make -V PERL5`

The output of the above will point at the version of lang/perl5.xx, that WOULD
BE INSTALLED, if you built the port today. Instead, it should point at the
version, that IS INSTALLED on your system already.

Now, maybe, the current behavior is, indeed, intended -- and only the comment
needs fixing. But I can not imagine, why it is useful and so suspect, the
implementation needs to be fixed instead: use pkg(8) to determine, whether A
version of the desired lang/perl5.xx is already installed and, if there is one,
use it.

Hope, this helps...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list