Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128912 - [req] tomcat support for php
Summary: [req] tomcat support for php
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest enhancement
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-05 07:18 UTC by Massimo Fantin
Modified: 2006-04-18 15:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Fantin 2006-04-05 07:18:08 UTC
I need to compile php-4.4.2 with the configure option : --with-servlet="/opt/tomcat5" for using php under tomcat server 
( see http://wiki.apache.org/tomcat/UsingPhp)

i try to modify the ebuild without success 
i have add a line like 
my_conf="$(my_conf) --with-servlet="/opt/tomcat5"

can be made a new USE flag ?

Thanks
Comment 1 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-04-06 17:41:03 UTC
Depending on the version of tomcat, TOMCAT_HOME or CATALINA_HOME can be in different places. I would recommend looking at /etc/conf.d/tomcat* and using the HOME value set in there. Possibly sourcing or referencing that file from ebuild to determine TOMCAT_HOME at php compile time.
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2006-04-18 05:48:09 UTC
As this is only supported in PHP 4.X anyway, we won't support it in our PHP ebuilds, sorry, as we don't want to add another SAPI for now to maintain.
But support for the MY_CONF variable was added to dev-lang/php, so you can easily pass configure parameters yourself to the ebuild:
MY_CONF='--with-servlet="/opt/tomcat5"' emerge =dev-lang/php-4*
Should enable you to build that SAPI, it's naturally your concern then to have the various needed variables set correctly ($CATALINA_HOME etc.), and eventually you'll have to modify the ebuild anyway to copy the correct files to the correct places (the .jar for example ???). But MY_CONF should make it a lot easier to try out *unsupported* things if you must. ;)
Best regards, CHTEKK.
Comment 3 Luca Longinotti (RETIRED) gentoo-dev 2006-04-18 15:38:33 UTC
UPDATE: the name of the varible was changed from MY_CONF to EXTRA_ECONF to follow what other ebuilds already do.
Best regards, CHTEKK.