From owner-freebsd-ports@FreeBSD.ORG Wed Nov 8 15:08:55 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28CE816A415 for ; Wed, 8 Nov 2006 15:08:55 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [204.127.192.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id D470D43D46 for ; Wed, 8 Nov 2006 15:08:54 +0000 (GMT) (envelope-from jdc@koitsu.dyndns.org) Received: from icarus.home.lan (c-67-174-220-97.hsd1.ca.comcast.net[67.174.220.97]) by comcast.net (rwcrmhc12) with ESMTP id <20061108150854m12000ga2ee>; Wed, 8 Nov 2006 15:08:54 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id CDD001FA01A; Wed, 8 Nov 2006 07:08:53 -0800 (PST) Date: Wed, 8 Nov 2006 07:08:53 -0800 From: Jeremy Chadwick To: Bill Moran Message-ID: <20061108150853.GA39844@icarus.home.lan> Mail-Followup-To: Bill Moran , ports@freebsd.org References: <20061108092446.32d21eb8.wmoran@collaborativefusion.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061108092446.32d21eb8.wmoran@collaborativefusion.com> X-PGP-Key: http://jdc.parodius.com/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: ports@freebsd.org Subject: Re: Could use some help fixing the pecl-crack port (broken since php 5.2?) 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: Wed, 08 Nov 2006 15:08:55 -0000 On Wed, Nov 08, 2006 at 09:24:46AM -0500, Bill Moran wrote: > Now, crack.so is in /usr/local/lib/php/20060613/crack.so, so it would > appear as if my pkg-plist needs updated. No worries ... > > except I'm a little unclear on the build magic behind PHP. I'm guessing > that 20060613 is some sort of API date? If so, is it Ok to be hard- > coding this in to the pkg-plist? It seems as if this is handled by > bsd.php.mk: > > .if ${PHP_VER} == 4 > PHP_EXT_DIR= 20020429 > .else > PHP_EXT_DIR= 20060613 > .endif > > Which means hardcoding the path into the pkg-plist will break the port for > PHP 4. Despite the fact that I don't think many folks are using PHP 4, > I'd rather not do this. Looking at ports/Mk/bsd.php.mk, label `add-plist-phpext`, it appears the PHP port framework already adds the appropriate .so to the packing list for you. You can verify this by removing it from your pkg-plist, doing a make install, then looking at /var/db/pkg/whatever/+CONTENTS -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |