How to build depreated ports

Shane Ambler FreeBSD at ShaneWare.Biz
Thu Jan 3 07:11:02 UTC 2019


On 3/1/19 7:56 am, Paul Schmehl wrote:
> --On January 2, 2019 at 3:08:04 PM -0600 Paul Schmehl
> <pschmehl_lists at tx.rr.com> wrote:
> 
>> I have a server that requires php56. I cannot update to php7, because a
>> critical app is not ready yet.
>>
>> How can I upgrade ports without upgrading all the php ports to 7?

In /etc/make.conf add
DEFAULT_VERSIONS+=php=5.6

Note that if you are using a public pkg repo, it will have pkgs that
were built against php7, so this is for building from ports or your own
pkg repo.

>> I tried DISABLE_SECURITY_CHECK=yes in /etc/make.conf (and several others)
>> but that didn't work.

If being DEPRECATED is causing problems, you could remove the line from
/usr/ports/lang/php56/Makefile

> Following up on my own post, I ran pkg info php56* and it returned no
> match.
> But, I run this and they're there.
> # pkg info | grep php
> mod_php56-5.6.38               PHP Scripting Language
> php56-5.6.39                   PHP Scripting Language

> It appears that pkg isn't aware of the installed ports, yet it is. I am
> confused.

pkg info does an exact match on the pkg name, without the version
Try pkg info -x php

-- 
FreeBSD - the place to B...Software Developing

Shane Ambler



More information about the freebsd-questions mailing list