Subject: pkg/31460: www/p5-HTML-Mason does not create work directory
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 10/03/2005 21:24:00
>Number:         31460
>Category:       pkg
>Synopsis:       www/p5-HTML-Mason does not create work directory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 03 21:24:00 +0000 2005
>Originator:     Stefan Schumacher
>Release:        2.0.2 i386
NetBSD 2.0.2 NetBSD 2.0.2 (YOSHITSUNE) #5: Sun Oct  2 11:22:07 CEST 2005 i386
Mason (a Perl Framework to create websites with mod_perl for Apache) needs a work dir where it can store cache, obj and so on. 

This directory is not created when installing pkgsrc/www/p5-HTML-Mason, so Mason will not run from Apache.

Apache error log gives: (break added by me)
[client] Cannot create directory '/usr/pkg/mason/obj' 

(mkdir /usr/pkg/mason: Permission denied at /usr/pkg/lib/perl5/vendor_perl/5.8.0/HTML/Mason/ line 284\n) for user 'www', group 'www'. Perhaps you need to create or set permissions on your data_dir ('/usr/pkg/mason').

 \nStack:\n  [/usr/pkg/lib/perl5/vendor_perl/5.8.0/HTML/Mason/]\n  [/usr/pkg/lib/perl5/vendor_perl/5.8.0/HTML/Mason/]\n  [/usr/pkg/lib/perl5/vendor_perl/5.8.0/HTML/Mason/]\n  [/usr/pkg/lib/perl5/vendor_perl/5.8.0/Class/]\n  [/usr/pkg/lib/perl5/vendor_perl/5.8.0/Class/]\n  [/usr/pkg/lib/perl5/vendor_perl/5.8.0/HTML/Mason/]\n  [/usr/pkg/lib/perl5/vendor_perl/5.8.0/HTML/Mason/]\n  [(eval 33):6]\n  [-e:0]\n
Install Apache, pkgsrc/www/p5-HTML-Mason and try to access a Mason site delivered by Apache. The site will not be processed by mason and delivered by Apache, instead an error log entry will be created.
"mkdir /usr/pkg/mason/ && chown www.www  /usr/pkg/mason/" 
when installing Mason, 
or at least give an appropriate install-message. 

Mason can create required subdirectories beneath /usr/pkg/mason/ itself.