Subject: p5-MIME-tools-5.411.1 pkg vs. Perl 5.8.1
To: None <tech-pkg@NetBSD.ORG>
From: Greg Earle <earle@isolar.DynDNS.ORG>
List: tech-pkg
Date: 12/12/2003 11:18:09
(This probably isn't a SPARC-specific issue, but since it's the only
 NetBSD list I'm on ... well, along with port-sparc64)

I've just upgraded my SPARCserver 20 to NetBSD 1.6.1, and all of the
packages I've built (or rebuilt) from the current (as of a few days ago)
pkgsrc have built just fine (I used the bootstrap-pkgsrc stuff to make
sure I could use the current pkgsrc).  Except one:

===> Extracting for p5-MIME-tools-5.411.1
===> Required installed package p5-IO-stringy-[0-9]*: p5-IO-stringy-2.108 found
===> Required installed package p5-MIME-Base64-[0-9]*: p5-MIME-Base64-2.21 foun
===> Required installed package p5-MailTools-[0-9]*: p5-MailTools-1.59 found
===> Required installed package perl>=5.0: perl-5.8.1 found
===> Patching for p5-MIME-tools-5.411.1
===> Overriding tools for p5-MIME-tools-5.411.1
===> Buildlinking for p5-MIME-tools-5.411.1
===> Configuring for p5-MIME-tools-5.411.1
Checking if your kit is complete...
Looks good
Writing Makefile for MIME-tools
===> Building for p5-MIME-tools-5.411.1
Modification of a read-only value attempted at /usr/pkg/lib/perl5/5.8.1/warning line 293.
Compilation failed in require at /usr/pkg/lib/perl5/5.8.1/warnings/ 
line 24.
Compilation failed in require at /usr/pkg/lib/perl5/5.8.1/ line 7.
BEGIN failed--compilation aborted at /usr/pkg/lib/perl5/5.8.1/ line 7.
Compilation failed in require at /usr/pkg/lib/perl5/5.8.1/ExtUtils/ 
line 4.
BEGIN failed--compilation aborted at /usr/pkg/lib/perl5/5.8.1/ExtUtils/Install.
pm line 4.
Compilation failed in require.
BEGIN failed--compilation aborted.
*** Error code 255

make: stopped in /usr/pkgsrc/mail/p5-MIME-tools/work/MIME-tools-5.411
*** Error code 1

(I was trying to build in /usr/pkgsrc/mail/mimedefang)

Line 293 of "" reads:

$All = "" ; vec($All, $Offsets{'all'}, 2) = 3 ;

Is MIME tools 5.411 tickling a bug in Perl 5.8.1, or is this just a matter
of MIME tools 5.411 not having been ported to such a relatively recent
version of Perl?  Any workarounds?  (Maybe I'll just use "spamass-milter"
instead, but MIMEdefang was looking pretty useful.)

	- Greg