Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  6 Feb 2004 13:27:14 +0100 (CET)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        mat@FreeBSD.org
Subject:   ports/62422: devel/p5-Module-Build should use PERL_MODBUILD but can't
Message-ID:  <20040206122714.87257827A@aragorn.reaumur.absolight.net>
Resent-Message-ID: <200402061230.i16CUBkT068930@freefall.freebsd.org>

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

>Number:         62422
>Category:       ports
>Synopsis:       devel/p5-Module-Build should use PERL_MODBUILD but can't
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 06 04:30:10 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Mathieu Arnold
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.reaumur.absolight.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Wed Sep 3 12:54:37 CEST 2003 root@aragorn.reaumur.absolight.net:/usr/src/sys/compile/ARAGORN i386

>Description:
devel/p5-Module-Build use itself to build, and needs to use PERL_MODBUILD to
build, but it can't because using PERL_MODBUILD always adds
devel/p5-Module-Build to the dependency list.

The other way is to dupplicate the code enabled by PERL_MODBUILD in
devel/p5-Module-Build Makefile
>How-To-Repeat:
>Fix:

This tests if it's building devel/p5-Module-Build, and if it is, does not add
the dependency.

--- m-b.diff begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.484
diff -u -u -r1.484 bsd.port.mk
--- bsd.port.mk	4 Feb 2004 04:27:04 -0000	1.484
+++ bsd.port.mk	6 Feb 2004 12:21:53 -0000
@@ -1733,7 +1733,9 @@
 .if defined(PERL_MODBUILD)
 PERL_CONFIGURE=		yes
 CONFIGURE_SCRIPT?=	Build.PL
+.if ${PORTNAME} != Module-Build
 BUILD_DEPENDS+=		${SITE_PERL}/Module/Build.pm:${PORTSDIR}/devel/p5-Module-Build
+.endif
 ALL_TARGET?=
 PL_BUILD?=		Build
 CONFIGURE_ARGS+= \
--- m-b.diff ends here ---


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



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