ports/82643: [patch] p5-Net-DNS-0.51 requires perl >= 5.6

Urs Breinlinger ub at mailq.de
Sat Jun 25 15:00:32 UTC 2005


>Number:         82643
>Category:       ports
>Synopsis:       [patch] p5-Net-DNS-0.51 requires perl >= 5.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 25 15:00:31 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Urs Breinlinger
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD fluffy.foo.fh-furtwangen.de 4.11-STABLE FreeBSD 4.11-STABLE #0: Fri Jan 28 17:13:03 CET 2005 toor at fluffy.foo.fh-furtwangen.de:/usr/obj/usr/src/sys/FLUFFY i386


	Stock 4.11-STABLE with perl 5.005_03 built for i386-freebsd from base.
>Description:
	After a portupgrade, which included an update of p5-Net-DNS (from 0.49 to 0.51), all perl-scripts that use Net::DNS failed.  Upgrade of p5-Net-DNS went without any problem, but the package was not usable:

$ ./foo.pl
Can't locate bytes.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Net/DNS.pm line 6.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Net/DNS.pm line 6.
BEGIN failed--compilation aborted at ./foo.pl line 3.

bytes.pm was introduced with 5.6.

>How-To-Repeat:
	Execute any script that uses Net::DNS.
>Fix:
	Warn the user about his ancient version of perl.

--- Makefile.orig       Sat Jun 25 16:31:58 2005
+++ Makefile    Sat Jun 25 16:31:15 2005
@@ -44,6 +44,10 @@

 .include <bsd.port.pre.mk>

+.if ${PERL_LEVEL} < 500601
+IGNORE=         This port requires perl 5.6.x or later. Install lang/perl5 then try again
+.endif
+
 .if ${PERL_LEVEL} < 500800
 RUN_DEPENDS+=  ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
 .endif
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list