ports/160972: devel/p5-Config-Record -- make Test::Pod and friends optional

Jeremy Chadwick freebsd at jdc.parodius.com
Sat Sep 24 12:10:03 UTC 2011


>Number:         160972
>Category:       ports
>Synopsis:       devel/p5-Config-Record -- make Test::Pod and friends optional
>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 Sep 24 12:10:03 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jeremy Chadwick
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD icarus.home.lan 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Sep 19 17:34:57 PDT 2011 root at icarus.home.lan:/usr/obj/usr/src/sys/X7SBA_RELENG_8_amd64 amd64
>Description:
	devel/p5-Config-Record has an unconditional dependency on numerous
	perl Test::* modules which are absolutely not required for the
	Config::Record module to be built, installed, or run.

	This patch adds conditionals for the dependency list, while retaining
	existing compatibility.  That way, those of us who do not want 14
	other perl modules installed on their system (trickle-down dependencies
	from Test::Pod and Test::Pod::Coverage) can continue to have a
	"minimal" system.

	Note that WITHOUT_TESTS was chosen because of numerous existing ports
	use the same name; grep -r WITHOUT_TESTS /usr/ports to verify.
>How-To-Repeat:
	See above.
>Fix:
	Apply below patch.  Patch will also be available at the below URL once
	a PR number is provided: http://jdc.parodius.com/freebsd/{prnumber}

--- devel/p5-Config-Record/Makefile.orig	2010-01-28 19:01:28.000000000 -0800
+++ devel/p5-Config-Record/Makefile	2011-09-24 04:51:06.000000000 -0700
@@ -14,8 +14,10 @@
 MAINTAINER=	cm at therek.net
 COMMENT=	Configuration file access
 
+.if !defined(WITHOUT_TESTS)
 BUILD_DEPENDS+=	${SITE_PERL}/Test/Pod.pm:${PORTSDIR}/devel/p5-Test-Pod \
 		${SITE_PERL}/Test/Pod/Coverage.pm:${PORTSDIR}/devel/p5-Test-Pod-Coverage
+.endif
 
 MAN3=	Config::Record.3
 
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list