Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Dec 2011 15:28:36 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Perl Upgrade And Mailscanner Woes
Message-ID:  <4EF1FB24.10005@infracaninophile.co.uk>
In-Reply-To: <4EF1F44A.5000303@tundraware.com>
References:  <4EF1F44A.5000303@tundraware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig967614766BCEB6C704286768
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 21/12/2011 14:59, Tim Daneliuk wrote:
> Almost every time there is a perl upgrade, it manages to break
> Mailscanner even after running perl-after-upgrade.  The solution
> ends up being a reinstall of Mailscanner, but this is a real pain,
> because you have to delete and reinstall every dependent perl
> package used by Mailscanner.

Something is going wrong with your upgrade process.  If you're doing a
minor version upgrade of perl (eg. from 5.x.y to 5.x.y+1), then almost
all perl modules (including XS) only need to be moved into the new
${LOCALBASE}/lib/perl5/site-perl/5.x.y+1 directory tree, which is
basically what perl-after-upgrade does.

A few packages which embed a perl interpreter would need recompiling,
but you could count those on the fingers of one hand.

Are you sure you are using perl-after-upgrade correctly?  You do
understand that just running:

   # perl-after-upgrade

doesn't actually modify anything on disk: instead it shows you what
needs to be done.  To actually effect the change you need to run:

   # perl-after-upgrade -f

Then rebuild and reinstall any packages it says need rebuilding.
If it has worked properly then almost all of the contents of
${LOCALBASE}/lib/perl5/site-perl/5.x.y will be gone, and that whole
directory tree should be able to be deleted without consequence.

Of course if your update is from perl 5.x.y to 5.x+1.z then you really
do need to recompile and reinstall all perl modules and anything else
that depends on perl.  perl-after-upgrade is not effective in this case.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enig967614766BCEB6C704286768
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7x+ysACgkQ8Mjk52CukIz1KwCfQXjzqJZqUzwej14OguxDJIw9
9LkAoIcdY398NDDiCK7Rm1iL/gWiZ5Rf
=915+
-----END PGP SIGNATURE-----

--------------enig967614766BCEB6C704286768--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EF1FB24.10005>