From owner-freebsd-perl@FreeBSD.ORG Tue Mar 1 09:43:58 2011 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 C963C106566C for ; Tue, 1 Mar 2011 09:43:58 +0000 (UTC) (envelope-from ohauer@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 3F83E8FC0C for ; Tue, 1 Mar 2011 09:43:57 +0000 (UTC) Received: (qmail invoked by alias); 01 Mar 2011 09:17:16 -0000 Received: from hu5.abaxx.de (EHLO [10.6.25.100]) [213.61.170.110] by mail.gmx.net (mp014) with SMTP; 01 Mar 2011 10:17:16 +0100 X-Authenticated: #1956535 X-Provags-ID: V01U2FsdGVkX19dUgcoK/Nd3sMhNljV7F3Z6qcf5etA+xHHLcMQS8 +qv1Cmo/eUi52S Message-ID: <4D6CB99B.8070003@gmx.de> Date: Tue, 01 Mar 2011 10:17:15 +0100 From: olli hauer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd@tern.ru References: <707888276.20110228182148@tern.ru> In-Reply-To: <707888276.20110228182148@tern.ru> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: perl@freebsd.org Subject: Re: Problem with File::Tem (p5-ExtUtils-CBuilder/gcc and some others) 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: Tue, 01 Mar 2011 09:43:58 -0000 On 2011-02-28 16:21, freebsd@tern.ru wrote: > > Hello Perl Team. > > I faced a bug ("feature") in File::Temp that prevents use of > p5-ExtUtils-CBuilder-0.2802_1,1 and, as a result, build and install of > such packages like p5-Params-Validate-0.95_3, p5-DateTime-0.66, > p5-XML-Parser-2.40, p5-IPC-ShareLite-0.17 > > When I tried building the above packages I received different kinds of > errors stating that I do not have CBuilder and/or gcc and can't create > temp file. > > After a lot of investigation I finally found that the problem is in > NFS that hosts my ports tree. > > As I've understood, test code tries to create temporary file for test > compile. temp file is created with routine in File::Temp that tries > to set some FS flags/locks that do not work on NFS. Although zero > sized temp files are created successfully (but without the > required flags) the routine fails and as a result compile of test > file also fails. Build stops and empty temp file is left after each > build attempt. > > I have > FreeBSD 7.4-PRERELEASE #2: Tue Feb 1 17:50:19 MSK 2011 i386 > perl 5.8.9_4 > p5-ExtUtils-CBuilder-0.2802_1,1 > > FreeBSD Ports site states that p5-ExtUtils-CBuilder-0.2802_1,1 > requires perl-5.10.1_3l but actual port build does not state this and > tries to use perl 5.8.9 that I have. > > If the above behavior is expectable it would be great to have some > corresponding info published, as I spent vast of time looking for the > problem of gcc/CBuilder in Internet but found nothing relevant. > > PS. Work around - to copy the problem port directory localy (e.g. to > /tmp) I suggest the following entry in your /etc/make.conf, since this workaround is not practicable if the ports tree is shared read only. WRKDIRPREFIX?= /space/portbuild This way you have some benefits. - you can mount the portstree read only - defined space for building and cleanup (not in the directory of the port) - quick cleanup with rm -rf /space/portbuild - you can mount a ramdisk or tmpfs to the directory ( mount -t tmpfs tmpfs /space/portbuild) ...