From owner-freebsd-ports@freebsd.org Sun Nov 29 12:25:19 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B2AAA3C926 for ; Sun, 29 Nov 2015 12:25:19 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DF4AC1607 for ; Sun, 29 Nov 2015 12:25:18 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 1CD7928484; Sun, 29 Nov 2015 13:25:15 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id D634328483; Sun, 29 Nov 2015 13:25:13 +0100 (CET) Message-ID: <565AEEA9.1030409@quip.cz> Date: Sun, 29 Nov 2015 13:25:13 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: "Matthew D. Fuller" CC: Carmel NY , FreeBSD Ports Subject: Re: update PHP References: <5659F096.7030200@quip.cz> <20151129024504.GW30248@over-yonder.net> In-Reply-To: <20151129024504.GW30248@over-yonder.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Nov 2015 12:25:19 -0000 Matthew D. Fuller wrote on 11/29/2015 03:45: > On Sat, Nov 28, 2015 at 07:21:10PM +0100 I heard the voice of > Miroslav Lachman, and lo! it spake thus: >> Carmel NY wrote on 11/27/2015 12:39: >>> Would I l then need to rebuild everything that depends on PHP or could I just >>> add the "-r" flag to portupgrade? >> >> You can get list of all origins of ports depending on main php port by >> this command >> >> pkg query %o `pkg info -r php5 | tail -n +2` > > I've had good luck with PHP upgrades by just changing the origins, > then rebuilding the php ports themselves. PECL stuff will also need a > rebuild. > > Of course, you could just do a little sed'ery, but I tossed together a > quickie .pl to do it with a little more seatbelts. e.g., with a > little editing to pretend I'm going from 5.6 to 5.5: > > % pkg query '%o' | grep php56 | /tmp/phpup.pl > pkg set -yo lang/php56:lang/php55 > pkg set -yo archivers/php56-bz2:archivers/php55-bz2 > pkg set -yo textproc/php56-ctype:textproc/php55-ctype > pkg set -yo ftp/php56-curl:ftp/php55-curl [...] Last time i tried to change origin by 'pkg set' for MySQL upgrade I ended up with both versions installed. Maybe this bug in pkg is fixed now. I didn't tried it again. Miroslav Lachman