Skip Menu |

This queue is for tickets about the Apache-AuthCookie CPAN distribution.

Report information
The Basics
Id: 64926
Status: resolved
Priority: 0/
Queue: Apache-AuthCookie

People
Owner: Nobody in particular
Requestors: B.Candler [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 3.15
Fixed in: (no value)



Subject: Fails to install through CPAN under Ubuntu with mod_perl2
I am running Ubuntu 10.04.1 LTS - a clean server installation with standard perl 5.10.1 plus the following additional packages installed: apache2 2.2.14 apache2-threaded-dev 2.2.14 libapache2-mod-perl2 2.0.4 libapache2-mod-perl2-dev 2.0.4 libyaml-perl 0.71 build-essential An attempt to install Apache2::AuthCookie via CPAN fails (transcript below). As far as I can tell, it falls over because Apache2::AuthCookie depends on Apache::Constants and Apache::Util, and both of those are provided by mod_perl (v1). So off it goes and tries to install mod-perl- 1.31, which it can't do because there's no apache1 in the system. In fact Ubuntu seems to have dropped all apache 1.x packages. Now, I believe Apache2::AuthCookie should work with mod_perl 2, because there is a README.modperl2: "**** NOTICE: Version 3.07 is incompatible with previous releases. *** As of release 3.07, you must be running mod_perl 2.0.0 RC5 or later. Please note that in mod_perl 2.0.0 RC5 many packages were reneamed. See the mod_perl documentation for updating your code for 2.0.0 RC5." As far as I can tell, Apache::Util and Apache::Constants are only used by Apache::AuthCookie, not Apache2::AuthCookie. Furthermore, if I install Apache2::AuthCookie the old manual way it works fine. So I really want a way to tell CPAN to install *only* the Apache2::xxx code and not Apache:xxx. I know very little about CPAN internals, so I can't suggest anything other than splitting Apache2-AuthCookie into a separate package. Regards, Brian. P.S. The end goal here is a clean install of Netdot (netdot.uoregon.edu), which has Apache2::AuthCookie and Apache2::SiteControl as dependencies. ------------------------------- $ cpan Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help. cpan[1]> install Apache2::AuthCookie ... Writing Makefile for Apache::AuthCookie Show quoted text
---- Unsatisfied dependencies detected during ---- ---- MSCHOUT/Apache-AuthCookie-3.15.tar.gz ---- Module::Signature [build_requires] Apache::Constants [requires] Apache::Util [requires] mod_perl [requires] Apache [build_requires] Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] ... Running make for G/GO/GOZER/mod_perl-1.31.tar.gz Prepending /home/sysadm/.cpan/build/Module-Signature-0.66- ti8sqI/blib/arch /home/sysadm/.cpan/build/Module-Signature-0.66- ti8sqI/blib/lib to PERL5LIB for 'get' Checksum for /home/sysadm/.cpan/sources/authors/id/G/GO/GOZER/mod_perl- 1.31.tar.gz ok mod_perl-1.31/ mod_perl-1.31/.gdbinit mod_perl-1.31/Apache/ mod_perl-1.31/Apache/Apache.pm mod_perl-1.31/Apache/Makefile.PL mod_perl-1.31/Apache/typemap ... Enter `q' to stop search Please tell me where I can find your apache src [../apache_x.x/src] Can't stat `../apache_x.x/src' Please tell me where I can find your apache src [../apache_x.x/src] /etc sh: ./Configure: not found can't open /Makefile No such file or directory at Makefile.PL line 685, <STDIN> line 2. Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] GOZER/mod_perl-1.31.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK ... Running make install make test had returned bad status, won't install without force Failed during this command: FLORA/Module-Signature-0.66.tar.gz : install NO GOZER/mod_perl-1.31.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512 MSCHOUT/Apache-AuthCookie-3.15.tar.gz : make_test NO 4 dependencies missing (Apache::Constants,Apache::Util,mod_perl,Apache)
Subject: Re: [rt.cpan.org #64926] Fails to install through CPAN under Ubuntu with mod_perl2
Date: Wed, 19 Jan 2011 11:25:19 -0600
To: bug-Apache-AuthCookie [...] rt.cpan.org, B.Candler [...] pobox.com
From: Michael Schout <mschout [...] gkg.net>
Yes. The problem is that these dependencies are listed in the META.yml, which CPAN.pm now uses. I'll fix that for the next release. However, you can install it in the meantime by just doing it without the CPAN client. Unpack the tarball and do: perl Makefile.pl -apxs /usr/bin/apxs2 make test make install All tests pass on my ubuntu 10.10 machine this way. Regards, Michael Schout
From: B.Candler [...] pobox.com
Thanks for the reply. Yes, it works if I install using perl Makefile.PL. Netdot has a script which uses CPAN to pull in all its requirements automatically. At the moment Apache2::AuthCookie fails, as does Apache2::SiteControl (because it requires Apache2::AuthCookie), so this requires manual intervention to fix.
Fixed in 3.16, just uploaded to CPAN