Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2014 03:28:09 -0400
From:      Jim Trigg <jtrigg@spamcop.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: Update php from 5.4 to 5.5 ?
Message-ID:  <20140619032809.uwp4pzs2gc4k0k4c-wgevtt@webmail.spamcop.net>
In-Reply-To: <20140618220319.GI86779@over-yonder.net>
References:  <20140618110920.GI2586@home.opsec.eu> <20140618183324.GL2586@home.opsec.eu> <alpine.BSF.2.00.1406182147100.74551@fire.magemana.nl> <20140618220319.GI86779@over-yonder.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting "Matthew D. Fuller" <fullermd@over-yonder.net>:

> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140619032809.uwp4pzs2gc4k0k4c-wgevtt>