Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2019 17:35:43 +1030
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        Paul Schmehl <pschmehl_lists@tx.rr.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: How to build depreated ports
Message-ID:  <fd029349-65f5-2f04-d6a4-f173e34849bd@ShaneWare.Biz>
In-Reply-To: <2D64FD6FE8B0BE361436CE70@Pauls-MacBook-Pro.local>
References:  <0DCC6656F71191428B864CA3@Pauls-MacBook-Pro.local> <2D64FD6FE8B0BE361436CE70@Pauls-MacBook-Pro.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/1/19 7:56 am, Paul Schmehl wrote:
> --On January 2, 2019 at 3:08:04 PM -0600 Paul Schmehl
> <pschmehl_lists@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fd029349-65f5-2f04-d6a4-f173e34849bd>