lang/php4, www/mod_php4{Makefile,scripts/configure.php}
Roman Neuhauser
neuhauser at bellavista.cz
Mon Apr 14 04:20:31 PDT 2003
# thierry at pompo.net / 2003-04-12 09:03:03 +0200:
> Le Sam 12 avr 03 ? 3:49:00 +0200, Roman Neuhauser <neuhauser at bellavista.cz>
> écrivait :
> > dirk@ seems to have disappeared, so I thought I'd think aloud here.
> >
> > It's quite obvious that the decision to retire lang/php4 was
> > shortsighted. But that's not the only problem with PHP(-related) ports
> > IMO. Another sore is that PEAR depends on mod_php4, leading to
> > absurdities like this one:
> >
> > Port: pear-Console_Getopt-1.0
> > Path: /usr/ports/devel/pear-Console_Getopt
> > Info: PEAR command-line option parser
> > Maint: ports at FreeBSD.org
> > Index: devel www
> > B-deps: apache-1.3.27_4 expat-1.95.6_1 mod_php4-4.3.1 mysql-client-3.23.55 pear-install-4.3.0
> > R-deps: apache-1.3.27_4 expat-1.95.6_1 mod_php4-4.3.1 mysql-client-3.23.55 pear-install-4.3.0
>
> Dirk had tried to separate PHP & PEAR, but it was not easy, and many
> people were waiting for 4.3.1.
>
> See
> <http://www.freebsd.org/cgi/getmsg.cgi?fetch=2294811+0+/usr/local/www/db/text/2003/freebsd-ports/20030112.freebsd-ports>
> for the complete story.
he tried to separate PEAR from what? he retired lang/php4 to
separate PEAR from mod_php4?
anyway, you can't really separate PEAR from PHP: pear(1) is run in
php(1) (CLI or CGI).
so, given that you'll need a php(1) anyway, let's describe a use
case (lines starting with "->" are done on behalf of the user by
the ports system):
cd /usr/ports/sysutils/pear-Log && make install
# pear- ports depend on pear(1) for registration
-> cd /usr/ports/devel/pear-whatever
-> fetch php-4.3.1.tar.gz
# pear(1) is a PHP script, thus it depends on lang/php4
# oh, we have php-4.3.1.tar.gz in distfiles, fine!
-> CONFIGURE_ARGS= --enable-cli --without-pear ...
-> INSTALL_TARGET= install-modules install-sapi
# fine, let's get back to intalling pear
-> NO_BUILD= yes
-> CONFIGURE_ARGS= --disable-all --with-pear ...
-> INSTALL_TARGET= install-pear
I haven't actually tried this yet, so there might be some gotchas,
but having had a glance in 4.3.1's Makefile I don't see anything
obvious.
--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html
More information about the freebsd-ports
mailing list