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

Bug#5003: perl installs in /usr/local



-----BEGIN PGP SIGNED MESSAGE-----

Dominik Kubla, in an immanent manifestation of deity, wrote:
>The package includes directories to be placed in /usr/local. This breaks
>setups where /usr/local is a read-only and/or shared volume.

I've included the following code in perl's postinst:
test -w /usr/local/lib -a !-e /usr/local/lib/site_perl && mkdir -p /usr/local/lib/site_perl/=arch=-linux

and the following code in perl's prerm:
(test -w /usr/local/lib && rmdir -p /usr/local/lib/site_perl/=arch=-linux 2>/dev/null || exit 0)
# this will only remove site_perl if it's completely empty of site stuff

This should work.  It all seemed to work on the euid...
After I upload the package tonight, tell me if it works.

Darren
- -- 
<torin@daft.com> <http://www.daft.com/~torin> <torin@debian.org> <torin@io.com>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-800-921-4996
@ Do you have your clothes on? I probably don't. Take yours off. Feel better. @
@ Sysadmin, webweaver, postmaster for hire.  C/Perl/CGI programmer and tutor. @

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBMnSSao4wrq++1Ls5AQET7gP+KmXFIq2vuLSxBaJn6jWrkJ0iDv8yorl8
aI+LW4f+PSBoNjPYWlnVXjtdDSKalcP+OMr/OUpPAPO3d30lMwm7V24VpZ+4AgZP
rEhlL6WsyOjihPTYKs6lYb7E+0A3Mp9+AQNxFufhjZQuk2sscEFbO5P+yVJ79coq
6owwa3L2fYE=
=ZbTu
-----END PGP SIGNATURE-----

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: