[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2593: perl tries to install in /usr/local



>>>>> "D" == Dominik Kubla <kubla@goofy.zdv.uni-mainz.de> writes:

D> Package: perl Version: 5.002-7

D> When installing the perl package it tries to install a directory
D> /usr/local/lib/site_perl.  This implies, that /usr/local is mounted
D> read-write, which might not be the case in an AFS or NFS
D> environment.

D> Proposed fix: Document where the site_perl files should go, but
D> don't try to create the directory or do it only when /usr/local is
D> not a link and is mounted read-write.

My (admittedly limited) experience with perl suggests that not having
a site specific install directory created when perl is installed might
be a big pain.  When you build any add on perl modules, perl will want
to want to put them in the site directory by default (it's listed in
Config.pm when perl is compiled).  It seems it would be a little
awkward to have the directory listed in Config.pm, but not create it.

OTOH, I think we're not supposed to touch /usr/local.  So an
alternative might be to ask the user in the postinst (for the first
install, not upgrades) whether or not to create the directory if the
directory doesn't exist.

I'm not really happy with my suggestion either, but I can't think of
anything better...

--
Rob



Reply to: