Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2003 13:20:27 +0200
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: lang/php4, www/mod_php4{Makefile,scripts/configure.php}
Message-ID:  <20030414112027.GJ36951@freepuppy.bellavista.cz>
In-Reply-To: <20030412070303.GA56245@graf.pompo.net>
References:  <20030412014900.GH36951@freepuppy.bellavista.cz> <20030412070303.GA56245@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
# thierry@pompo.net / 2003-04-12 09:03:03 +0200:
> Le Sam 12 avr 03 ?  3:49:00 +0200, Roman Neuhauser <neuhauser@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030414112027.GJ36951>