Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Sep 2010 20:01:51 +0200 (CEST)
From:      Martin Matuska <mm@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        DougB@FreeBSD.org
Subject:   ports/150763: [PATCH] dns/p5-Net-DNS: depend on p5-Digest-SHA only for perl < 5.10.1
Message-ID:  <20100920180151.C9DD7E2694@mail2.vx.sk>
Resent-Message-ID: <201009201810.o8KIA2O0053418@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         150763
>Category:       ports
>Synopsis:       [PATCH] dns/p5-Net-DNS: depend on p5-Digest-SHA only for perl < 5.10.1
>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:   Mon Sep 20 18:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Martin Matuska
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 8.1-STABLE FreeBSD 8.1-STABLE #1 r212768M: Fri Sep 17 00:01:06 CEST
>Description:
The Digest-SHA module is included in Perl 5.10 and higher.
Explicitly depend on p5-Digest-SHA only if PERL_LEVEL < 50100

Port maintainer (DougB@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- p5-Net-DNS-0.66.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/dns/p5-Net-DNS/Makefile,v
retrieving revision 1.75
diff -u -r1.75 Makefile
--- Makefile	9 Aug 2010 08:54:33 -0000	1.75
+++ Makefile	20 Sep 2010 18:00:18 -0000
@@ -16,7 +16,6 @@
 
 # Warnings during build are harmless, the port does not need these to build
 RUN_DEPENDS=	ipcount:${PORTSDIR}/net-mgmt/p5-Net-IP \
-		${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA \
 		${SITE_PERL}/Digest/HMAC_MD5.pm:${PORTSDIR}/security/p5-Digest-HMAC
 
 MAKE_JOBS_SAFE=	yes
@@ -52,6 +51,10 @@
 
 .include <bsd.port.pre.mk>
 
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
 .if !defined(WITHOUT_IPV6)
 RUN_DEPENDS+=	${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6
 .endif
--- p5-Net-DNS-0.66.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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