Re: Configure line of PHP 5.1 port
Ryan Schmidt <[email protected]> Wed, 30 Aug 2006 00:38:24 +0200
| Newsgroups | gmane.os.opendarwin.darwinports |
|---|---|
| Message-ID | <[email protected]> |
On Aug 29, 2006, at 18:56, Antoine Pouch wrote: > I'm a user of MacOSX DarwinPorts, and used your port to install PHP > 5 on > my Mac. I'm also a linux guru and used to install from source (or > using > gentoo's emerge), but with my mac I wanted to try DarwinPorts. So > here I > am. But there is one problem with the PHP port, it does not allow for > much configuration of the configure line. I'd like to add > '--enable-pdo=shared --with-pdo-sqlite=shared' for example, but there > are no variants for that. Do you have an easy way of doing it ? I'd > like > not to "hack" it though, so it would be easy to reproduce on the next > upgrade. > Should I use the configure.args file ? Or maybe you could expand the > variants ? I can help in that regard, I compiled PHP from source a > hundred times for different needs, and have good knowledge of their > configuration options. Hello Antoine. I am copying the MacPorts mailing list on this reply, since I do not feel well-equipped to answer all your questions and maybe someone there will be better able. Although I am the maintainer of the php5 port, I understand the portfile format only very minimally. I only took over the port because I needed it, and because nobody else was maintaining it. The request to add --enable-pdo=shared is the following bug record: http://bugzilla.opendarwin.org/show_bug.cgi?id=6604 I haven't done anything with it because I do not understand why one would want it. What would be the arguments for or against using shared PDO? James Thompson II suggests that shared is better because then you could upgrade it with pecl, but we removed pear and perl from the php5 port some time ago because they were problematic. So is there another reason to prefer shared PDO? Is there a reason to prefer what we have now? I am not familiar with the configure.args file or with attempting to modify a port's configure arguments other than by modifying the portfile itself. Perhaps someone else on the list can address how that can be done.