From nobody@FreeBSD.org  Mon Mar 28 09:33:59 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D62EB106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2011 09:33:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id B97C28FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2011 09:33:59 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2S9XwNj067800
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2011 09:33:58 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p2S9Xwsc067799;
	Mon, 28 Mar 2011 09:33:58 GMT
	(envelope-from nobody)
Message-Id: <201103280933.p2S9Xwsc067799@red.freebsd.org>
Date: Mon, 28 Mar 2011 09:33:58 GMT
From: "Dmitry S. Luhtionov" <mitya@cabletv.dp.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: textproc/p5-XML-Parser build error
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         155991
>Category:       ports
>Synopsis:       textproc/p5-XML-Parser build error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kuriyama
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 28 09:40:10 UTC 2011
>Closed-Date:    Sat Jan 12 03:09:35 UTC 2013
>Last-Modified:  Sat Jan 12 03:10:00 UTC 2013
>Originator:     Dmitry S. Luhtionov
>Release:        8.2-STABLE i386
>Organization:
>Environment:
FreeBSD eepc.cabletv.dp.ua 8.2-STABLE FreeBSD 8.2-STABLE #0: Thu Mar 24 12:30:43 EET 2011     mitya@eepc.cabletv.dp.ua:/usr/src/sys/i386/compile/eepc  i386
>Description:
On fresh machine. With NO any ports installed. Manually deleted all from /usr/local/lib.

Above lines, when was installed perl, expat, etc. skipped.

===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Extracting for p5-XML-Parser-2.40
=> SHA256 Checksum OK for XML-Parser-2.40.tar.gz.
===>   p5-XML-Parser-2.40 depends on file: /usr/local/bin/perl5.10.1 - found
===>  Patching for p5-XML-Parser-2.40
===>   p5-XML-Parser-2.40 depends on file: /usr/local/bin/perl5.10.1 - found
===>   p5-XML-Parser-2.40 depends on file: /usr/local/bin/perl5.10.1 - found
===>   p5-XML-Parser-2.40 depends on shared library: expat.6 - found
===>  Configuring for p5-XML-Parser-2.40

Expat must be installed prior to building XML::Parser and I can't find
it in the standard library directories. Install 'expat-devel' package with your
OS package manager.

Or you can download expat from:

http://sourceforge.net/projects/expat/

If expat is installed, but in a non-standard directory, then use the
following options to Makefile.PL:

    EXPATLIBPATH=...  To set the directory in which to find libexpat

    EXPATINCPATH=...  To set the directory in which to find expat.h

For example:

    perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include

Note that if you build against a shareable library in a non-standard location
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
variable at run time for perl to find the library.

Checking if your kit is complete...
Looks good
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser
===>  Building for p5-XML-Parser-2.40
cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
cp Parser/Encodings/iso-8859-10.enc blib/lib/XML/Parser/Encodings/iso-8859-10.enc
cp Parser/Encodings/ibm866.enc blib/lib/XML/Parser/Encodings/ibm866.enc
cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
cp Parser/Encodings/iso-8859-11.enc blib/lib/XML/Parser/Encodings/iso-8859-11.enc
cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
cp Parser/Encodings/iso-8859-14.enc blib/lib/XML/Parser/Encodings/iso-8859-14.enc
cp Parser/Encodings/iso-8859-1.enc blib/lib/XML/Parser/Encodings/iso-8859-1.enc
cp Parser/Encodings/iso-8859-6.enc blib/lib/XML/Parser/Encodings/iso-8859-6.enc
cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
cp Parser/Encodings/windows-1255.enc blib/lib/XML/Parser/Encodings/windows-1255.enc
cp Parser/Encodings/iso-8859-15.enc blib/lib/XML/Parser/Encodings/iso-8859-15.enc
cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
cp Parser/Encodings/windows-1251.enc blib/lib/XML/Parser/Encodings/windows-1251.enc
cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
cp Parser/Encodings/koi8-r.enc blib/lib/XML/Parser/Encodings/koi8-r.enc
cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
cp Parser/Encodings/iso-8859-13.enc blib/lib/XML/Parser/Encodings/iso-8859-13.enc
cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
cp Parser.pm blib/lib/XML/Parser.pm
cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
Running Mkbootstrap for XML::Parser ()
chmod 644 Parser.bs
rm -f blib/arch/auto/XML/Parser/Parser.so
cc  -shared  -L/usr/local/lib -fstack-protector Parser.o  -o blib/arch/auto/XML/Parser/Parser.so 	    	 
cc: Parser.o: No such file or directory
cc: No input files specified
*** Error code 1

Stop in /usr/ports/textproc/p5-XML-Parser/work/XML-Parser-2.40.
*** Error code 1

Stop in /usr/ports/textproc/p5-XML-Parser.
>How-To-Repeat:
cd /var/db/pkg
pkg_delete *
cd /usr/ports/textproc/p5-XML-Parser
make
>Fix:
On my home machine this port compiled and installed successfully. But, on my NetBook I see this error.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kuriyama 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Mar 28 09:40:21 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155991 

From: admin <admin@cabletv.dp.ua>
To: bug-followup@FreeBSD.org, mitya@cabletv.dp.ua
Cc:  
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Fri, 01 Apr 2011 10:09:16 +0300

 Anybody help me?
 
 Perl build options
 
 # This file is auto-generated by 'make config'.
 # No user-servicable parts inside!
 # Options for perl-5.10.1_3
 _OPTIONS_READ=perl-5.10.1_3
 WITHOUT_DEBUGGING=true
 WITHOUT_GDBM=true
 WITHOUT_PERL_MALLOC=true
 WITH_PERL_64BITINT=true
 WITHOUT_THREADS=true
 WITHOUT_MULTIPLICITY=true
 WITHOUT_SUIDPERL=true
 WITHOUT_SITECUSTOMIZE=true
 WITH_USE_PERL=true
 
 
 Lines from make.conf
 
 NO_ATM=yes
 NO_AUDIT=yes
 NO_AUTHPF=yes
 NO_BIND=yes
 NO_GAMES=yes
 NO_IPFILTER=yes
 NO_IPX=yes
 NO_KERBEROS=yes
 NO_NIS=yes
 NO_PF=yes
 NO_SENDMAIL=yes
 WITHOUT_AT=true
 WITHOUT_BSNMP=yes
 WITHOUT_CDDL=yes
 WITHOUT_FLOPPY=yes
 WITHOUT_INET6=true
 WITHOUT_IPV6=true
 WITHOUT_NTP=true
 WITHOUT_PF=true
 WITHOUT_PROFILE=true
 WITHOUT_QUOTAS=true
 WITHOUT_ZFS=true
 
 WITHOUT_NOUVEAU=yes
 
 # added by use.perl 2011-03-31 17:24:44
 PERL_VERSION=5.10.1
 
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: kuriyama 
State-Changed-When: Mon Aug 29 13:45:33 UTC 2011 
State-Changed-Why:  
Feedback sent. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155991 

From: Jun Kuriyama <kuriyama@FreeBSD.org>
To: bug-followup@FreeBSD.org, mitya@cabletv.dp.ua
Cc:  
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Mon, 29 Aug 2011 22:45:17 +0900

 Do you still have this error?  I cannot reproduce it...
 
 
 -- 
 Jun Kuriyama <kuriyama@FreeBSD.org> // FreeBSD Project
          <kuriyama@s2factory.co.jp> // S2 Factory, Inc.

From: Martin Tournoij <martin@arp242.net>
To: bug-followup@FreeBSD.org
Cc: kuriyama@FreeBSD.org, mitya@cabletv.dp.ua
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Sat, 24 Sep 2011 21:09:49 +0200

 I had the exactly the same error message as Dmitry, on FreeBSD 8 and now on
 FreeBSD 9.
 
 I had my workdir set to a NFS share (WRKDIRPREFIX), setting that to a local
 dir solved the problem!
 
 I didn't investigate further, but this should help you reproduce the problem.
 
 Cheers,
 Martin
 
 -- 
 Martin Tournoij <martin@arp242.net>
 http://arp242.net | http://aragorn.nl | http://daemonforums.org
 
 QOTD:
 When smashing monuments, save the pedestals -- they always come in
 handy.
 		-- Stanislaw J. Lec, "Unkempt Thoughts"

From: admin <admin@cabletv.dp.ua>
To: bug-followup@FreeBSD.org, mitya@cabletv.dp.ua
Cc:  
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Mon, 03 Oct 2011 11:26:58 +0300

 I forgot it ! I am use NFS too !
 I think this bug is reproducible only if ports tree located on the NFS
 

From: Daniel Henschel <daniel@is-bored.de>
To: bug-followup@FreeBSD.org, mitya@cabletv.dp.ua
Cc:  
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Tue, 11 Oct 2011 20:24:00 +0200

 --2FkSFaIQeDFoAt0B
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 This actually looks like a bug in Devel::CheckLib.
 
 Stripped it down to the minimum, this should search for the expat lib:
 ---- 8< ----
 use 5.004.005;
 use Devel::CheckLib; # make sure devel/p5-Devel-CheckLib is installed
 if (
     check_lib (
         lib => 'expat',
         header => 'expat.h',
         incpath =>  '/usr/local/lib',
         libpath => '/usr/local/include' ) ) {
     print "found expat lib\n";
 }
 ---- 8< ----
 
 Running this in $HOME (not on NFS) works fine. Running this in $HOME/nfs
 (some random NFS share) doesn't output anything.
 
 I'm quite new to FBSD, how can I help to resolve this?
 
 --2FkSFaIQeDFoAt0B
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (FreeBSD)
 
 iQIcBAEBAgAGBQJOlInAAAoJEABN5MGv/WCZDCUQAIoY83Uov4Xv/UJ11kyvrvG5
 s5ze81CF1bBE4gtYbFhaGUILalEIGF0QoB+MeXxX2NZQICEywNL7oOukKu1fswLk
 mencbJHLrCA4TtkCOlEi/7gqcg8YlD5X6IoSUi8uw04lQj3GasIkzDVJ9pfGQebf
 6SQFKMIB5goIyZoBcvsbR6W1MzGaulWBCy3kGKN9KzX88heZfiYXLXyPlQirLH1c
 EACTiTfQqPiI15oZ/lMBhPg8Pen6zLilUKbWz3VWJSOcoX+JaMsUaF9adftCZq6M
 Jek4JAeiIwvYyTBjduvNX+TQrBrovE1C49sDRo2g0RU4TqfWO1hmt44GYs3EoJwV
 hZJpHWzMM/i3bmNj5QmwtZ6sFy16TLk0AVOkdHnNvpvcti4b4pENbP9RSVNlP5PY
 28dJzbPrRfDUL+17rR2Yns7R1PWt5D4l8+Y5H1oIFyTx6O+u5lXyYPX8gbOlekEu
 R7wf+7y8kyIouh6+cay7z68AzNN2eIK4lCWbFqDcBzYSe44ffQbfUUH+ylQH3J+S
 RHHxwQXH1C8f1izEgclbmWx0xAzJq58MFevq4nlWrd4y5k45yiN0OdR5lu4xrbr5
 nC/f3buZToySEyHWP4re/KWejbuyHRz+Wm6FoU3agab+gmAbuPGK304jLQ450Fp5
 5VyKJc5+CFtByU2mwzhP
 =QtLz
 -----END PGP SIGNATURE-----
 
 --2FkSFaIQeDFoAt0B--

From: Martin Tournoij <martin@arp242.net>
To: bug-followup@FreeBSD.org
Cc: daniel@is-bored.de, mitya@cabletv.dp.ua
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Wed, 9 Nov 2011 00:07:04 -0100

 --uTRFFR9qmiCqR05s
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Thanks.
 
 I ran into this again, I had some spare time and took a deeper look. The
 problem is indeed in Devel::CheckLib (Which is included in XML::Parser), it
 tries to create a temporary file using File::Temp::tempfile() in the source
 directory -- This is known (& documented) not to work over NFS...
 
 I reported this bug at both Devel::CheckLib and XML::Parser ...
 https://rt.cpan.org/Public/Bug/Display.html?id=72291
 https://rt.cpan.org/Public/Bug/Display.html?id=72293
 
 In the meanwhile, the attached patch can be used to fix the problem ...
 
 --uTRFFR9qmiCqR05s
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="p5-XML-Parser.patch"
 
 diff -urN -x CVS -x .svn -I '^# .FreeBSD: ' /ports/textproc/p5-XML-Parser/Makefile p5-XML-Parser/Makefile
 --- /ports/textproc/p5-XML-Parser/Makefile	2011-08-29 17:00:45.000000000 +0200
 +++ p5-XML-Parser/Makefile	2011-11-09 02:02:17.000000000 +0100
 @@ -7,6 +7,7 @@
  
  PORTNAME=	XML-Parser
  PORTVERSION=	2.41
 +PORTREVISION=	1
  CATEGORIES=	textproc perl5
  MASTER_SITES=	CPAN
  PKGNAMEPREFIX=	p5-
 diff -urN -x CVS -x .svn -I '^# .FreeBSD: ' /ports/textproc/p5-XML-Parser/files/patch-inc-Devel-CheckLib.pm p5-XML-Parser/files/patch-inc-Devel-CheckLib.pm
 --- /ports/textproc/p5-XML-Parser/files/patch-inc-Devel-CheckLib.pm	1970-01-01 01:00:00.000000000 +0100
 +++ p5-XML-Parser/files/patch-inc-Devel-CheckLib.pm	2011-11-09 01:11:47.000000000 +0100
 @@ -0,0 +1,20 @@
 +--- inc/Devel/CheckLib.pm.orig	2011-05-25 05:39:14.000000000 +0200
 ++++ inc/Devel/CheckLib.pm	2011-11-09 01:10:42.000000000 +0100
 +@@ -222,7 +222,7 @@
 +     for my $header (@headers) {
 +         push @use_headers, $header;
 +         my($ch, $cfile) = File::Temp::tempfile(
 +-            'assertlibXXXXXXXX', SUFFIX => '.c'
 ++            'assertlibXXXXXXXX', SUFFIX => '.c', DIR => '/tmp/'
 +         );
 +         print $ch qq{#include <$_>\n} for @use_headers;
 +         print $ch qq{int main(void) { return 0; }\n};
 +@@ -262,7 +262,7 @@
 + 
 +     # now do each library in turn with headers
 +     my($ch, $cfile) = File::Temp::tempfile(
 +-        'assertlibXXXXXXXX', SUFFIX => '.c'
 ++        'assertlibXXXXXXXX', SUFFIX => '.c', DIR => '/tmp/'
 +     );
 +     print $ch qq{#include <$_>\n} foreach (@headers);
 +     print $ch "int main(void) { ".($args{function} || 'return 0;')." }\n";
 
 --uTRFFR9qmiCqR05s--

From: Todd Rinaldo <toddr@cpanel.net>
To: bug-followup@FreeBSD.org,
 mitya@cabletv.dp.ua,
 Martin Tournoij <martin@arp242.net>
Cc:  
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Wed, 9 Nov 2011 02:59:15 -0600

 While the provided patch may work, it strikes me that the fix avoids the =
 fact that files on a NFS mount aren't behaving correctly. Shouldn't this =
 be reported against the kernel or whatever is responsible for =
 maintaining the NFS connection?=

From: Martin Tournoij <martin@arp242.net>
To: Todd Rinaldo <toddr@cpanel.net>
Cc: bug-followup@FreeBSD.org, mitya@cabletv.dp.ua
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Wed, 9 Nov 2011 10:04:40 -0100

 On Wed, Nov 09, 2011 at 02:59:15AM -0600, Todd Rinaldo wrote:
 > While the provided patch may work, it strikes me that the fix avoids the
 > fact that files on a NFS mount aren't behaving correctly. Shouldn't this be
 > reported against the kernel or whatever is responsible for maintaining the
 > NFS connection?
 
 I didn't investigate, but the File::Temp docs say:
 
 "Some problems are associated with using temporary files that reside on NFS
 file systems and it is recommended that a local filesystem is used whenever
 possible."
 
 http://search.cpan.org/~tjenness/File-Temp-0.22/Temp.pm#Temporary_files_and_NFS

From: Martin Cracauer <cracauer@cons.org>
To: "Dmitry S. Luhtionov" <mitya@cabletv.dp.ua>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Mon, 9 Jan 2012 15:34:59 -0500

 This isn't good.
 
 The only way I could build this port on my diskless machine (I really
 love diskless these days) is to move the whole port to /tmp (mfs
 filesystem) and symlink back from /tmp into /usr/ports
 
 That's kinda fine for a one-off build but this will happen again on
 updates and who knows how many other perl ports have the same problem.
 
 And all I wanted was ports/editors/emacs...
 
 Martin
 -- 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Martin Cracauer <cracauer@cons.org>   http://www.cons.org/cracauer/

From: John Baldwin <jhb@FreeBSD.org>
To: bug-followup@FreeBSD.org, mitya@cabletv.dp.ua
Cc:  
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Sat, 14 Jan 2012 12:11:23 -0500

 I just ran into this trying to build a textproc/docproj in a VM with an 
 NFS mounted ports tree from the host OS.  Having rpc.lockd and rpc.statd 
 running didn't fix it nor did mounting with the 'nolockd' option, so it 
 doesn't appear to be related to NFS locking.  That is the only thing 
 that programs usually have problems with over NFS.  Given that, I am 
 betting this is a bug in Perl's tempfile stuff and not in FreeBSD's NFS 
 and the patch should be applied to fix builds over NFS.
 
 -- 
 John Baldwin

From: Slaven Rezic <slaven@rezic.de>
To: bug-followup@FreeBSD.org, mitya@cabletv.dp.ua
Cc:  
Subject: Re: ports/155991: textproc/p5-XML-Parser build error
Date: Wed, 18 Apr 2012 22:18:40 +0200

 I think it *is* related to nfs locking. I just tried the following
 (/mnt/test is an nfs mount residing on a linux system, no locking
 enabled on the freebsd system):
 
 22:12 eserte@biokovo  (/mnt/test): env LC_ALL=C perl -MFile::Temp=tempfile -e 'my($tmpfh,$tmpfile) = tempfile("XXXXXXXX", EXLOCK=>0) or die $!'
 22:12 eserte@biokovo  (/mnt/test): env LC_ALL=C perl -MFile::Temp=tempfile -e 'my($tmpfh,$tmpfile) = tempfile("XXXXXXXX", EXLOCK=>1) or die $!'
 Error in tempfile() using XXXXXXXX: Could not create temp file tRP8tD0l: Operation not supported at -e line 1
 
 (Note that File::Temp sets EXLOCK=>1 by default on *BSD systems)
 
 Now with nfslocking:
 
 22:12 eserte@biokovo  (/mnt/test): sudo /etc/rc.d/nfslocking start
 Starting statd.
 Starting lockd.
 22:12 eserte@biokovo  (/mnt/test): env LC_ALL=C perl -MFile::Temp=tempfile -e 'my($tmpfh,$tmpfile) = tempfile("XXXXXXXX", EXLOCK=>1) or die $!'
 22:12 eserte@biokovo  (/mnt/test): env LC_ALL=C perl -MFile::Temp=tempfile -e 'my($tmpfh,$tmpfile) = tempfile("XXXXXXXX", EXLOCK=>0) or die $!'
 
 Regards,
     Slaven
 
 -- 
 Slaven Rezic - slaven <at> rezic <dot> de
 
     Berlin Perl Mongers - http://berlin.pm.org
State-Changed-From-To: feedback->closed 
State-Changed-By: kuriyama 
State-Changed-When: Sat Jan 12 03:09:07 UTC 2013 
State-Changed-Why:  
Patch committed.  Please try again. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155991 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/155991: commit references a PR
Date: Sat, 12 Jan 2013 03:06:50 +0000 (UTC)

 Author: kuriyama
 Date: Sat Jan 12 03:06:37 2013
 New Revision: 310260
 URL: http://svnweb.freebsd.org/changeset/ports/310260
 
 Log:
   - Try to fix build on NFS without lockd (patch provided by Martin
     Tournoij <martin@arp242.net> at ports/155991).
   - Add pre-build check for locking to tell people why build fails.
   
   PR:		ports/155991, ports/164600
   Submitted by:	"Dmitry S. Luhtionov" <mitya@cabletv.dp.ua>
 
 Added:
   head/textproc/p5-XML-Parser/files/check_nfs.pl   (contents, props changed)
   head/textproc/p5-XML-Parser/files/patch-CheckLib.pm   (contents, props changed)
 Modified:
   head/textproc/p5-XML-Parser/Makefile
 
 Modified: head/textproc/p5-XML-Parser/Makefile
 ==============================================================================
 --- head/textproc/p5-XML-Parser/Makefile	Sat Jan 12 02:46:15 2013	(r310259)
 +++ head/textproc/p5-XML-Parser/Makefile	Sat Jan 12 03:06:37 2013	(r310260)
 @@ -1,12 +1,8 @@
 -# New ports collection makefile for:	XML::Parser
 -# Date created:		15 Nov 1998
 -# Whom:			Jun Kuriyama <kuriyama@FreeBSD.org>
 -#
  # $FreeBSD$
 -#
  
  PORTNAME=	XML-Parser
  PORTVERSION=	2.41
 +PORTREVISION=	1
  CATEGORIES=	textproc perl5
  MASTER_SITES=	CPAN
  PKGNAMEPREFIX=	p5-
 @@ -14,7 +10,7 @@ PKGNAMEPREFIX=	p5-
  MAINTAINER=	kuriyama@FreeBSD.org
  COMMENT=	Perl extension interface to James Clark's XML parser, expat
  
 -LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2
 +LIB_DEPENDS=	expat:${PORTSDIR}/textproc/expat2
  
  PERL_CONFIGURE=	yes
  CONFIGURE_ARGS=	EXPATLIBPATH=${LOCALBASE}/lib EXPATINCPATH=${LOCALBASE}/include
 @@ -57,6 +53,10 @@ post-configure:
  	@${PERL} -i -pe 's|^(CC = ).*|$$1 ${CC}|;' \
  		-e 's|^(CCFLAGS = ).*|$$1 ${CFLAGS}|' ${WRKSRC}/Expat/Makefile
  
 +pre-build:
 +	@cd ${WRKDIR} && ${PERL} ${FILESDIR}/check_nfs.pl 2>/dev/null || \
 +	(${ECHO_MSG} "===>  lockf in \$$TMPDIR required"; ${FALSE})
 +
  XE=	${.CURDIR}/../p5-XML-Encoding
  extract-encodings:
  	@cd ${XE}; \
 
 Added: head/textproc/p5-XML-Parser/files/check_nfs.pl
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/p5-XML-Parser/files/check_nfs.pl	Sat Jan 12 03:06:37 2013	(r310260)
 @@ -0,0 +1,10 @@
 +#!/usr/bin/perl
 +#
 +# $FreeBSD$
 +
 +use strict;
 +use warnings;
 +use File::Temp qw(tempfile);
 +
 +my ($fh, $fn) = tempfile("check-XXXXXX", SUFFIX => '.tmp', TMPDIR => 1, UNLINK => 1);
 +#print "$fn\n";
 
 Added: head/textproc/p5-XML-Parser/files/patch-CheckLib.pm
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/p5-XML-Parser/files/patch-CheckLib.pm	Sat Jan 12 03:06:37 2013	(r310260)
 @@ -0,0 +1,22 @@
 +$FreeBSD$
 +
 +--- inc/Devel/CheckLib.pm.orig	2013-01-11 11:43:02.293444337 +0900
 ++++ inc/Devel/CheckLib.pm	2013-01-11 11:48:47.556449831 +0900
 +@@ -222,7 +222,7 @@
 +     for my $header (@headers) {
 +         push @use_headers, $header;
 +         my($ch, $cfile) = File::Temp::tempfile(
 +-            'assertlibXXXXXXXX', SUFFIX => '.c'
 ++            'assertlibXXXXXXXX', SUFFIX => '.c', TMPDIR => 1,
 +         );
 +         print $ch qq{#include <$_>\n} for @use_headers;
 +         print $ch qq{int main(void) { return 0; }\n};
 +@@ -262,7 +262,7 @@
 + 
 +     # now do each library in turn with headers
 +     my($ch, $cfile) = File::Temp::tempfile(
 +-        'assertlibXXXXXXXX', SUFFIX => '.c'
 ++        'assertlibXXXXXXXX', SUFFIX => '.c', TMPDIR => 1,
 +     );
 +     print $ch qq{#include <$_>\n} foreach (@headers);
 +     print $ch "int main(void) { ".($args{function} || 'return 0;')." }\n";
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
