Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95125 - mod_perl-2.0.0 configuration script is badly broken
Summary: mod_perl-2.0.0 configuration script is badly broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-05 07:04 UTC by Jakub Moc (RETIRED)
Modified: 2006-01-09 19:32 UTC (History)
2 users (show)

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


Attachments
apache2-mod_perl-startup.pl patch (apache2-mod_perl-startup.pl.diff,780 bytes, patch)
2005-06-05 07:10 UTC, Jakub Moc (RETIRED)
Details | Diff
updated apache2-mod_perl-startup.pl (apache2-mod_perl-startup.pl,477 bytes, text/plain)
2005-07-17 20:38 UTC, Joshua Hoblitt
Details
75_mod_perl.conf (75_mod_perl.conf,237 bytes, text/plain)
2005-07-22 20:18 UTC, Nick Celebic
Details
mod_perl-2.0.1.ebuild (mod_perl-2.0.1.ebuild,4.01 KB, text/plain)
2005-07-22 20:19 UTC, Nick Celebic
Details
mod_perl-2.0.1.ebuild (mod_perl-2.0.1.ebuild,3.95 KB, text/plain)
2005-07-24 19:01 UTC, Nick Celebic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Moc (RETIRED) gentoo-dev 2005-06-05 07:04:29 UTC
apache-2 simply fails to start after upgrading from 1.9.11 to 2.0.0 with the
following errors:

Can't locate Apache2.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i686-linux 
/usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i686-linux 
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 
/usr/lib/perl5/vendor_perl . /usr/lib/apache2) at 
/etc/apache2/conf/modules.d/apache2-mod_perl-startup.pl line 1

Reproducible: Always
Steps to Reproduce:
1. unmask mod_perl 2.0.0
2. install
3. scratch your head

Actual Results:  
Apacha fails to start!

Expected Results:  
Working mod_perl would be really nice!

I will attach a patch for apache2-mod_perl-startup.pl that works for me.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-05 07:10:40 UTC
Created attachment 60651 [details, diff]
apache2-mod_perl-startup.pl patch

This patch WORKSFORME ;-) Tested with AWStats.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-05 07:15:32 UTC
Additional fixed needed to get it work:

1/ Symlink Apache2.pm and ApacheTest.pm somewhere to @INC, like
/usr/lib/perl5/vendor_perl/5.8.5/i686-linux so that Apache actually finds it.

2/ Symlink /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/ModPerl directory under
/usr/lib/perl5/vendor_perl/5.8.5/i686-linux/Apache2 directory

Also, looking at http://perl.apache.org/docs/2.0/rename.html I really doubt that
this ebuild it doing things in a sane way.

There may and probably is a much better way to do this, but the above at least
gets you started.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-01 12:35:06 UTC
Just to add, it also wants to overwrite perllocal.pod (i.e. fails with
FEATURES="collision-protect"); and the perllocal.pod it wants to install has a
broken path in it:

=head2 Fri Jul  1 20:40:24 2005: C<Module> L<mod_perl2|mod_perl2>
=over 4
=item *
C<installed into:
/var/tmp/portage/mod_perl-2.0.0/image//usr/lib/perl5/vendor_perl/5.8.6>
=item *
C<LINKTYPE: dynamic>
=item *
C<VERSION: 2.0.0>
=item *
C<EXE_FILES: bin/mp2bug>
=back
Comment 4 Gregg Casillo 2005-07-15 14:41:59 UTC
This has been broken for a long time. Without being pushy, I want to voice my
disappointment at this. Ran into this problem yet again today, and I was
surprised to find that fuggin' apache2-extramodules directory created by the
ebuild again. Please place a fix in portage.
Comment 5 Joshua Hoblitt 2005-07-17 19:50:18 UTC
comment #4 should be in bug #92308.  Lets just handle one issue per bug.
Comment 6 Joshua Hoblitt 2005-07-17 20:38:46 UTC
Created attachment 63669 [details]
updated apache2-mod_perl-startup.pl

'use Apache2;' also must be removed.
Comment 7 Joshua Hoblitt 2005-07-17 20:45:06 UTC
Also, mod_perl >= 2.0.0 needs to depend on >=apache-2.0.54-r10.  Previous
versions of the apache package use the file commonapache2.conf that still tries
to include Apache2::ModPerl::Registry module (which doesn't exist anymore).
Comment 8 Nick Celebic 2005-07-22 20:16:41 UTC
I updated the version and modified the existing 2.0.0 to 2.0.1.

75_mod_perl.conf and apache2-mod_perl-startup had to be modified.  I used the
latest startup file as attached here.  Attaching 75_mod_perl.conf and
mod_perl-2.0.1.ebuild.

Note: both extra files need to be in files/mod_perl-2.0.1/

Sorry if this is the wrong bug to attach this to, as this is my first patch job.
 Future work needs to be done to use apache-module eclass.
Comment 9 Nick Celebic 2005-07-22 20:18:10 UTC
Created attachment 64102 [details]
75_mod_perl.conf
Comment 10 Nick Celebic 2005-07-22 20:19:15 UTC
Created attachment 64103 [details]
mod_perl-2.0.1.ebuild
Comment 11 Nick Celebic 2005-07-24 19:01:13 UTC
Created attachment 64226 [details]
mod_perl-2.0.1.ebuild

This is a slight modification.	When mod_perl 2's namespace was changed, the
Apache2.pm file was no longer necessary.  This ebuild reflects that.  Thanks to
rendhalver on #gentoo-perl for the info.
Comment 12 Nick Celebic 2005-07-24 19:09:17 UTC
Edit:  Information on changes can be found at http://perl.apache.org/docs/2.0/
rename.html
Comment 13 Michael Cummings (RETIRED) gentoo-dev 2005-07-25 11:20:23 UTC
2.0.1 was just posted - unforuntately independant of this bug report (sorry,
sorting through the mod_perl bugs still). Please test and let me know if you
have any problems. It installs and loads over here great, but I'd like feedback :)

fyi: testing is disabled until i can track down why TMPDIR is being ignored in
some of the subtests.
Comment 14 Michael Cummings (RETIRED) gentoo-dev 2005-08-08 04:13:26 UTC
jakub? anyone?
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2005-08-08 04:24:28 UTC
(In reply to comment #14)
> jakub? anyone?

Michael, I've setup another box so I'll be able to test it in a day or two,
cannot do that on the production machine right now b/c it requires unstable
Apache with the new baselayout, which is a lot of migration-related work.
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2005-08-11 15:00:47 UTC
OK, here we go:

Tests fail with sandbox violation, so they should probably be disabled.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-www-apache_-_mod_perl-2.0.1-r2-2824.log"

unlink:    /1
unlink:    /1
unlink:    /1
unlink:    /1
--------------------------------------------------------------------------------

Other than that, all issues mentioned here seem to be fixed and apache starts
and works after adding -D PERL, so thumb up! Thanks. ;)
Comment 17 Michael Cummings (RETIRED) gentoo-dev 2005-08-12 03:34:01 UTC
Going ahead and marking fixed - working on the tests part, but the functionality
is there otherwise
Comment 18 michael stakem 2006-01-09 19:32:38 UTC
I hope I'm doing this right...

I have apache 2.0.54 and mod perl 2.0.1, I have a working webserver without adding -D PERL as an apache startup option in /etc/conf.d/apache, adding that option results in apache hanging, but no display of anything.