Grab patch from pkgsrc PR43974 to make majordomo work with perl 5.12.
(split doesn't return @_ anymore) Reported by Witek Handzlik on ports@ While here, remove dhartmei@ from MAINTAINER. ok sthen@ dcoppa@
This commit is contained in:
parent
6c67d07d32
commit
a9eecce2c2
@ -1,15 +1,13 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2010/11/19 07:23:07 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2011/02/02 20:15:48 landry Exp $
|
||||
|
||||
COMMENT= mailing list manager
|
||||
|
||||
DISTNAME= majordomo-1.94.5
|
||||
REVISION = 3
|
||||
REVISION = 4
|
||||
CATEGORIES= mail
|
||||
|
||||
HOMEPAGE= http://www.greatcircle.com/majordomo/
|
||||
|
||||
MAINTAINER= Daniel Hartmeier <dhartmei@openbsd.org>
|
||||
|
||||
# I sent a mail to greatcircle.com asking for these permissions.
|
||||
# Until I get an answer, I assume nothing.
|
||||
# Read http://www.greatcircle.com/majordomo/LICENSE
|
||||
|
23
mail/majordomo/patches/patch-majordomo_pl
Normal file
23
mail/majordomo/patches/patch-majordomo_pl
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-majordomo_pl,v 1.1 2011/02/02 20:15:48 landry Exp $
|
||||
Make it work with perl 5.12
|
||||
From pkgsrc pr43974
|
||||
--- majordomo.pl.orig Wed Feb 2 13:32:15 2011
|
||||
+++ majordomo.pl Wed Feb 2 13:32:39 2011
|
||||
@@ -95,14 +95,14 @@ sub main'ParseAddrs {
|
||||
local($_) = shift;
|
||||
1 while s/\([^\(\)]*\)//g; # strip comments
|
||||
1 while s/"[^"]*"\s//g; # strip comments"
|
||||
- split(/,/); # split into parts
|
||||
- foreach (@_) {
|
||||
+ my @x = split(/,/); # split into parts
|
||||
+ foreach (@x) {
|
||||
1 while s/.*<(.*)>.*/$1/;
|
||||
s/^\s+//;
|
||||
s/\s+$//;
|
||||
}
|
||||
|
||||
- @_;
|
||||
+ @x;
|
||||
}
|
||||
|
||||
# Check to see if a list is valid. If it is, return the validated list
|
Loading…
Reference in New Issue
Block a user