From owner-freebsd-ports@FreeBSD.ORG Thu Jun 19 07:28:16 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EE446E9 for ; Thu, 19 Jun 2014 07:28:16 +0000 (UTC) Received: from c62.cesmail.net (c62.cesmail.net [216.154.195.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "c60.cesmail.net", Issuer "UTN-USERFirst-Network Applications" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5BFB7207F for ; Thu, 19 Jun 2014 07:28:15 +0000 (UTC) Received: from unknown (HELO delta2) ([192.168.1.50]) by c62.cesmail.net with ESMTP; 19 Jun 2014 03:28:09 -0400 Received: from c-98-218-173-235.hsd1.va.comcast.net (c-98-218-173-235.hsd1.va.comcast.net [98.218.173.235]) by webmail.spamcop.net (Horde MIME library) with HTTP; Thu, 19 Jun 2014 03:28:09 -0400 Message-ID: <20140619032809.uwp4pzs2gc4k0k4c-wgevtt@webmail.spamcop.net> Date: Thu, 19 Jun 2014 03:28:09 -0400 From: Jim Trigg To: freebsd-ports@freebsd.org Subject: Re: Update php from 5.4 to 5.5 ? References: <20140618110920.GI2586@home.opsec.eu> <20140618183324.GL2586@home.opsec.eu> <20140618220319.GI86779@over-yonder.net> In-Reply-To: <20140618220319.GI86779@over-yonder.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 07:28:17 -0000 Quoting "Matthew D. Fuller" : > On Wed, Jun 18, 2014 at 10:05:46PM +0200 I heard the voice of > Melvyn Sopacua, and lo! it spake thus: >> >> You can do the following: >> pkg query -e '%o ~ */php5-*' '%o'| while read origin; do \ >> new_origin=3D`echo ${origin} | sed -e 's/php5-/php55-/'` >> echo portmaster -o ${new_origin} ${origin}; done > update.sh > > You could just use 'pkg set -o' on these instead to shuffle the origin > in the pkgdb, then just a regular round of > portmaster/portupgrade/whatever will look at versions in the new > place. That's equivalent to how I've done such migrations in the past > with pkgog (creepy sed'ery through /var/db/pkg). That sounds clever, but I've been trying to come up with a syntax that =20 actually works. What I think will work (once my current portmaster =20 -aRf finishes -- don't ask) is: pkg query -e '%o ~ */php5-*' '%o'|while read origin; do \ new_origin=3D`echo ${origin} | sed -e 's/php5-/php55-/'` echo y | pkg -o ${origin}:${new_origin}; done But I'm not completely sure. Jim Trigg