Subject: libgda pkgsrc fix for correct perl
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 12/16/2004 16:08:32
I previously sent this to MAINTAINER for databases/libgda but
unrouteable mail domain "posix.org.uk"  -- who is the maintainer?

Configuring pkgsrc/databases/libgda  under Mac OS X failed with:

 checking for perl... /usr/pkg/bin/perl
 configure: error: XML::Parser perl module is required for intltool
 *** Error code 1

I do have a native /usr/bin/perl too that causes the problem.

May I commit this fix?

--- configure.orig      Thu Dec 16 17:58:45 2004
+++ configure   Thu Dec 16 17:59:41 2004
@@ -2046,7 +2046,7 @@
 echo "$as_me: error: perl 5.x required for intltool" >&2;}
    { (exit 1); exit 1; }; }
 fi
-if `perl -e "require XML::Parser" 2>/dev/null`; then
+if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 :
 else
    { { echo "$as_me:$LINENO: error: XML::Parser perl module is required
for intltool" >&5

I will add it as patch-ad if okay with you.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/