From owner-freebsd-ports@FreeBSD.ORG Thu Oct 13 12:40:23 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD02E16A44B for ; Thu, 13 Oct 2005 12:40:23 +0000 (GMT) (envelope-from skv@protey.ru) Received: from mail.3wgraphics.com (mail.3wgraphics.com [194.87.91.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DC7943D46 for ; Thu, 13 Oct 2005 12:40:22 +0000 (GMT) (envelope-from skv@protey.ru) Received: from [192.168.0.1] (helo=[192.168.0.1]) by mail.3wgraphics.com with esmtp id 1EQ2Nf-000NDT-A2; Thu, 13 Oct 2005 16:40:19 +0400 Message-ID: <434E55B3.7020501@protey.ru> Date: Thu, 13 Oct 2005 16:40:19 +0400 From: Sergey Skvortsov Organization: 3W Graphics User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: Edwin Groothuis References: <20051012114222.GD1278@k7.mavetju> <434D0CFE.9090007@protey.ru> <20051012211228.GE1278@k7.mavetju> In-Reply-To: <20051012211228.GE1278@k7.mavetju> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 12:40:23 -0000 Edwin Groothuis wrote: >>> The syntax is: >>> PERL_BUILD_DEPENDS= MIME-Lite:${PORTSDIR}/mail/p5-MIME-Lite >>> It checks the for the existence of MIME::Lite with the "perl -e >>> 'use MIME::Lite'" command. >> Obviously this approach will cause great performance degrade. >> stat(2) is much more faster than loading perl. > > Minimal compared with the time it takes to fetch distfiles and to > build. That's the only time it is checked. Loading some module (via "use") can take even more time than simply detecting corresponding .pm file because all code is compiled into bytecode-tree. PERL_BUILD_DEPEND is an useless syntax sugar. FYI: "perl -MMIME::Lite -e 0" is right way to check module. -- Sergey Skvortsov mailto: skv@protey.ru