Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15961 - squirrelmail-1.2.11.ebuild missing diff and apache2 incomp
Summary: squirrelmail-1.2.11.ebuild missing diff and apache2 incomp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
: 18538 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-18 17:47 UTC by Joakim
Modified: 2003-04-29 15:55 UTC (History)
2 users (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 Joakim 2003-02-18 17:47:16 UTC
The latest squirrelmail ebuild tries to patch 'squirrelmail-1.2.11-gentoo.diff but the file is missing in the 
portage tree. 
 
Also this and earlier squirrelmail ebuilds are incompatible with apache2 as it uses a hardcoded path ' 
/etc/apache/conf/apache.conf' in the line 'HTTPD_ROOT="`grep '^DocumentRoot' 
/etc/apache/conf/apache.conf | cut -d\  -f2`"' 
 
The Gentoo ev team have choosen to consequently use the term 'apache2' in directories and files 
belonging to apache version 2.x as a consequese this ought to be reflected in all new ebuilds relating 
to or involving apache. Ebuilders should be made aware of this. Yes, I know apache2 still are marked 
"~arch" which is kinda strange as it been running stable for quite some time. The fact that some 
packages still havn't catched up with it as php4 is not really an excuse to consider it unstable (IMHO).
Comment 1 Nick Hadaway 2003-02-19 07:33:10 UTC
I removed references to the diff as it is no longer needed.

Re: apache1 vs. apache2
My feeble brain has been unable to come up with a "solid" solution for this build to be compatible with both apaches or how to determine which one to utilize as they both can be installed simultaneously.  As a solution comes to me I will post on this bug.
Comment 2 Target 2003-02-22 01:02:28 UTC
Maybe:
1. Make use of USE variables "apache" and "apache2" to determine which config files to check for.
2. Check for the existance of one or both config files depending on the USE variables.
3. Grep any you find for DocumentRoot.
4. If two config files exist and they both contain different DocumentRoot entries, install in both. Else install in the one unique DocumentRoot you find.

...or a variation thereof.

If you go with USE variables, in order to be consistent with gentoo defaults, I'd reccomend checking for only apache (and not apache2) in the event that neither USE variable is defined.
Comment 3 Target 2003-02-22 01:22:51 UTC
I'd also like to direct your attention to this:
http://forums.gentoo.org/viewtopic.php?t=36953

Not sure if I should file a new bug.
Comment 4 Joakim 2003-02-22 06:41:21 UTC
I agree about using USE varable for apache but as far as I know there is only an 
'apache2' varable and no 'apache' - and I think it makes sense. If you don't have any 
version of apache you won't install squirrelmail and it's overload to use 2 varables to 
check which version. So I would go for 
 
IUSE="apache2" 
 
and of check for the variable and branch accordingly. 
 
Then I must say I'm abiy doubtful about the Gentoo implementation of apache and 
httpd in general. I don't see any sense in the option of running both apache 1.3 & 2.x 
except for testing purposes and then you normally would be able to set this up by your 
self. Also, what if you choose to run an other webserver then apache? I think it would 
be a better idea to structure it like PROVIDE="virtual/httpd", slit up apache1 and 
apache2 in the portage tree and realize that SLOTS are not a solution for everything. 
Comment 5 Nick Hadaway 2003-02-22 17:48:27 UTC
I personal like the way apache stuffs is setup on Gentoo currently.  I can have both versions installaed at the same time so I can test and then revert back to the old version if and when needed.  I have made 2 attempts at moving completely to apache2 but have run into little minor hiccups each time.  It's good to have the first apache to fall back on.  I will update the squirrelmail ebuild soon.  I'll post here when changes have been made utilizing the apache2 USE variable.
Comment 6 Guy 2003-03-15 06:15:40 UTC
FWIW, portage is now apparently set up to use apache2 by default. I tried to emerge squirrelmail on a system which did not have either apache nor php already loaded. These are my results:

checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...

Sorry, I was not able to successfully run APXS.  Possible reasons:

1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
The output of /usr/sbin/apxs follows
./configure: line 3215: /usr/sbin/apxs: No such file or directory
configure: error: Aborting

!!! ERROR: dev-php/mod_php-4.3.1-r1 failed.
!!! Function src_compile, Line 219, Exitcode 1
!!! bad ./configure

mumzie root # emerge -p squirrelmail

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N   ] dev-php/mod_php-4.3.1-r1
[ebuild  N   ] net-mail/squirrelmail-1.2.11

mumzie root # emerge -p libperl

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] sys-devel/libperl-5.8.0

mumzie root # emerge -p apxs

These are the packages that I would merge, in order:

Calculating dependencies
emerge: there are no masked or unmasked ebuilds to satisfy "apxs".

!!! Error calculating dependancies. Please correct.
mumzie root # emerge -s apxs
Searching...
[ Results for search key : apxs ]
[ Applications found : 0 ]


mumzie root # emerge -S apxs
Searching...
[ Results for search key : apxs ]
[ Applications found : 0 ]


mumzie root # find / -iname apxs
mumzie root # emerge -p apache

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] net-www/apache-2.0.44

mumzie root #
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-04-03 15:52:50 UTC
*** Bug 18538 has been marked as a duplicate of this bug. ***
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-04-29 15:55:29 UTC
fixed with 1.4.0-r1