From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 15 12:10:21 2005 Return-Path: X-Original-To: freebsd-ports-bugs@FreeBSD.org Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65E4C16A421 for ; Thu, 15 Sep 2005 12:10:21 +0000 (GMT) (envelope-from antonio@php.net) Received: from smtp01.centralserver.com.br (smtp01.centralserver.com.br [200.183.200.159]) by mx1.FreeBSD.org (Postfix) with SMTP id 60F2843D48 for ; Thu, 15 Sep 2005 12:10:18 +0000 (GMT) (envelope-from antonio@php.net) Received: (qmail 29618 invoked from network); 15 Sep 2005 09:10:16 -0300 Received: from unknown (HELO smtp01.centralserver.com.br) (127.0.0.1) by 0 with SMTP; 15 Sep 2005 09:10:16 -0300 Received: (qmail 29605 invoked from network); 15 Sep 2005 09:10:16 -0300 Received: by simscan 1.1.0 ppid: 29506, pid: 29595, t: 0.2048s scanners: attach: 1.1.0 clamav: 0.83/m:30/d:760 Received: from unknown (HELO ?127.0.0.1?) (antonio@alphus.com.br@200.138.113.28) by 0 with SMTP; 15 Sep 2005 09:10:16 -0300 Message-ID: <432964A3.9010207@php.net> Date: Thu, 15 Sep 2005 09:10:11 -0300 From: Antonio Carlos Venancio Junior User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roman Neuhauser References: <200509141920.j8EJKAos071104@freefall.freebsd.org> <432892A8.20705@php.net> <20050914212901.GI19945@isis.sigpipe.cz> <4328A112.1040007@php.net> <20050914224412.GJ19945@isis.sigpipe.cz> In-Reply-To: <20050914224412.GJ19945@isis.sigpipe.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports-bugs@FreeBSD.org, Pav Lucistnik , bug-followup@FreeBSD.org, Thierry Thomas Subject: Re: ports/86098: [PATCH] devel/pear-PEAR/Makefile.common: allow use by foreign packages X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: antonio@php.net List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 12:10:21 -0000 Roman, Roman Neuhauser wrote: > # antonio@php.net / 2005-09-14 19:15:46 -0300: > >>Roman Neuhauser wrote: >> >>># antonio@php.net / 2005-09-14 18:14:16 -0300: >>> >>> >>>> SimpleTest isn't a PEAR package and I don't think it's a good idea >>>> have "alien" packages using Makefile.common. >>> >>> Why? >> >> Because it's not part of the PEAR PHP Framework. > > > Is there a *technical* reason? No. It's a semantical reason. > >>The author should follow the formal proposal process >>(http://pear.php.net/manual/en/newmaint.proposal.php) to have his >>package added to the framework. > > > No, there's just no reason. That's like saying that people shouldn't > create packages for use with pkg_add unless the ports are in FreeBSD > proper. pear.php.net supports alien packages, see the bottom of > http://pear.php.net/packages.php > > >> Try to have a look at devel/beautifyphp. > > > Anything particular to look for? > > >>>>Besides that, this port should not install files inside >>>>/usr/local/share/pear ... >>> >>> >>> Ok, where does pear(1) normally put e. g. Horde when you install it >>> using their package.xml files? >> >> The Horde port installs its required PEAR packages via RUN_DEPENDS. > > > Ignore ports for a while. Go to http://pear.php.net/channels/, > follow the link to http://pear.horde.org/, and install Horde_VFS > using the procedure described there, which is: > > pear install http://pear.horde.org/Horde_VFS-0.0.1.tgz > > Where will it be installed (on FreeBSD, with PHP / pear(1) from ports)? > > >>When you install that packages using pear(1) directly it would place >>them inside the php_dir (defaults to /usr/lib/php). > > > Well, it's /usr/local/lib/php/pear on this box (php4-pear-4.3.11_1), > which means ports-installed pear puts packages in a directory that's > not in include_path, and that smells like a bug, but... Yes and that's not a bug. There's a message telling you to add that dir to your PHP include path when you install PEAR via ports [1]. If you follow the docs/INSTALL [2] (3.3 Additional PEAR Modules) file you will see that required PEAR packages are installed using a remote package. That's exactly what the Horde port does. When you are using a port you have to install the files following the FreeBSD directory standards [3]. That's why PEAR is installed inside ${PREFIX}/share/pear. Keep in mind that you will have to chosse between pear-* ports structure or the PEAR CLI. [1] http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php4/pkg-message.pear?rev=1.1&content-type=text/x-cvsweb-markup [2] http://www.horde.org/horde/docs/?f=INSTALL.html#quick-install [3] http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ -- Cya Antonio echo antonio php net | sed 's/ /@/;s/ /./g' FreeBSD/OpenBSD | PHP/MySQL | PGP Key ID 0x5BBEB073 "Can't buy what I want because its FREE!" - Pearl Jam