From owner-freebsd-perl@FreeBSD.ORG Thu Feb 28 02:03:02 2008 Return-Path: Delivered-To: perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 147741065671; Thu, 28 Feb 2008 02:03:02 +0000 (UTC) (envelope-from lbr@nerdheaven.dk) Received: from tux.nerdheaven.dk (tux.nerdheaven.dk [193.88.12.43]) by mx1.freebsd.org (Postfix) with ESMTP id BBC218FC1E; Thu, 28 Feb 2008 02:03:01 +0000 (UTC) (envelope-from lbr@nerdheaven.dk) Received: from localhost (localhost [127.0.0.1]) by tux.nerdheaven.dk (Postfix) with ESMTP id 9B20F3FF57; Thu, 28 Feb 2008 03:02:59 +0100 (CET) Received: from tux.nerdheaven.dk ([127.0.0.1]) by localhost (tux.nerdheaven.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17130-07; Thu, 28 Feb 2008 03:02:58 +0100 (CET) Received: by tux.nerdheaven.dk (Postfix, from userid 1021) id B07FE3FF54; Thu, 28 Feb 2008 03:02:58 +0100 (CET) Date: Thu, 28 Feb 2008 03:02:58 +0100 From: Lars Balker Rasmussen To: Yen-Ming Lee Message-ID: <20080228020258.GQ13264@tux.nerdheaven.dk> References: <759236930802242324o614598d1i1a8ca3cc8c12478c@mail.gmail.com> <86prulibf4.fsf@ds4.des.no> <759236930802250245j646f5be5k8382bedbfb2a7c1e@mail.gmail.com> <868x19i6ky.fsf@ds4.des.no> <759236930802251702h694c4f5bn2c7c87c7c47c7cc@mail.gmail.com> <86zltnsxap.fsf@ds4.des.no> <759236930802261046h216da59fv2bfdd616f601c325@mail.gmail.com> <86ablmr94j.fsf@ds4.des.no> <759236930802270859y2d5014ccvc01caa3b043ff429@mail.gmail.com> <759236930802271259o5bc025d5s5117987ab54e2c77@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <759236930802271259o5bc025d5s5117987ab54e2c77@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at nerdheaven.dk Cc: ports@freebsd.org, perl@freebsd.org, Anton Berezin Subject: Re: Port dependencies on p5-Test-* X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 02:03:02 -0000 On Wed, Feb 27, 2008 at 12:59:32PM -0800, Yen-Ming Lee wrote: > Let me pick a vivid example, www/p5-Jifty, which is maintained by tobez@. > Sorry, tobez@, I'm not against you, just want to make sure that you want us > (p5-* port maintainers) to do so. I really have no problem if you want it, > but I hope that other p5-* port maintainers will follow the same way. > > p5-Jifty has 76 dependencies directly and 207 dependencies totally. Now all > of the direct dependencies are in BUILD_DEPENDS and > RUN_DEPENDS=BUILD_DEPENDS. It's the worst cases described by des@ in the > first mail of this thread. The module authors just put everything in > Makefile.PL, so you have to scan all the modules installed. > > Some of the dependencies are for run, we really need them and should put > them in PERL_DEPENDS, then bsd.perl.mk will check their versions with the > ones in cores, and put the missing ones in BUILD_DEPENDS and RUN_DEPENDS; > some of the dependencies are for tests only, we should put them in > PERL_TEST_DEPENDS so only the developers with P5PORTER set will bring them > into the check process and put them in BUILD_DEPENDS if needed. All the > others are rescued from hell and will happily build the port without them. > > Here comes the problem: please tell us how to figure out which ones should > be in PERL_DEPENDS and which ones should be in PERL_TEST_DEPENDS. > > I, a lame p5-* ports maintainer, spent more than two hours to write the > script, scan and test again and again, and finally found that five of them > are only needed for tests. Be careful, not the five ones starting with Test::*. > Furthermore, only three out of the five ones are in Makefile now, > which means we don't cover all modules needed for tests yet. > > I think you must have some easier way to scan the dependencies. There's nothing easy about it, but it's not a CATASTROPHE to put too much in PERL_DEPENDS. And it's quite simple: Jifty is buggy, since it doesn't put Test-modules in build_requires rather than requires, so do what you can to send patches upstream - I've landed myself a Catalyst commit-bit, because I've complained about the form of their modules too many times. When there are a few build_requires (instead of none), the developers tend to begin thinking about where modules are needed, and the situation will improve over time. As for Test-modules in Jifty - Jifty includes its own test-modules, so it can't be fully installed without them. -- Lars Balker Rasmussen Consult::Perl