From owner-freebsd-ports@FreeBSD.ORG Fri Jun 22 16:05:44 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A5F5E106566C; Fri, 22 Jun 2012 16:05:44 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 0E1258FC0A; Fri, 22 Jun 2012 16:05:43 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so1841297wgb.31 for ; Fri, 22 Jun 2012 09:05:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=DwoTk09ofQu7I3T+W3ZMMMYfArR64LG9ms7gjTTht1c=; b=no681V6p8avqNv3L75GB4yKvfPV02K8PbGNqTrsXMgPvr5eSYjv42FLU4KZ/W1TsRr 8NRMgPL0AoP/XBvReZtn7FBdQhPu+zGvHucWOtLWnHvY5JyOuudegMEj6/40EoZ9Tfsy 4EhYWNGW5o7hdJbwRUeqvGAmzOYm3/SYpfKZkRYgXrB7Dt3CSCPgOwtxXHFbwbfKpWTx w1J1i57H0iD0x23ENoWZIdzKao2R+Z1y1sZlgMV+igR5Ny9AjCspj43Gk2sNy91xy7tR 2Bnx6Wo1EQkNik+pu6LWH8ZTlNu11bCJfcWIJoDJFFgT9Sjhg1qbWGhfXio7Re1cwMO0 C15Q== MIME-Version: 1.0 Received: by 10.216.145.13 with SMTP id o13mr1375909wej.95.1340381142971; Fri, 22 Jun 2012 09:05:42 -0700 (PDT) Received: by 10.223.155.4 with HTTP; Fri, 22 Jun 2012 09:05:42 -0700 (PDT) In-Reply-To: <4FE48696.2020601@FreeBSD.org> References: <4FE48696.2020601@FreeBSD.org> Date: Fri, 22 Jun 2012 09:05:42 -0700 Message-ID: From: Kevin Oberman To: Michael Scheidell Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org Subject: Re: painful process.. php53/etc X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2012 16:05:44 -0000 On Fri, Jun 22, 2012 at 7:52 AM, Michael Scheidell wrote: > I needed to update php5(x)-gd (which needs png15). > problem is, the server has php5 (php5.3) installed, so in order to upgrad= e > php5 (5.3) to php53 (5.3), I looked in /usr/ports/UPDATING > (I didn't find my answer there, not sure why, I will look again, and add > some notes.) > I think the OFFICIAL version of what is supposed to happen is: > > portmaster --list-origins > /tmp/pkgs > portmaster -r lang/php53 lang/php5 > (ok, I am not really sure) > > I did this: > > cd /var/db/pkgs > renamed everything php5- to php53- > then > sed -i '' -e 's/php5/php53/g' /var/db/pkgs/* > > then on to tinderbox to build php5-gd > > woops, it sets dependency for php5 (5.4) > so, in tinderbox need to set DEFAULT_PHP_VER=3D53 > > then pecl-pdflib (which needs png15) need updating, and it sets php5 (5.4= ) > as its dependency! > and joomla25, all need to be recompiled with DEFAULT_PHP_VER. > > anyway we can just leave php5x like perl versions (many of them, on > default), like mysql-client*, python, etc? > > just putting on very small update in has taken 4 hours. > (ps, web site never went down this way, it was running all through the > update process, sometimes important in todays world) > > back to official updating in /usr/ports/UPDATING: =C2=A0where did I miss = the > updating instructions if you want to KEEP php53? Michael, you are working at this WAY to hard. portmaster(8) already knows how to do what you are trying to do, N.B. I have no clue on PHP in specific, having avoided it like the plague for years, but in general, the proper way to replace one port with another is: portmaster -o www/php5 www/php53 This will cause portmaster to do the right things, including fix-up all dependent ports to point at the newly installed port. At least, I see no reason to re-build all of the ports that depend on PHP. I don't think that this produced any changed in APIs or ABIs. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com