Subject: pkg/25069: perl is unable to build modules with locale set
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <recht@NetBSD.org>
List: pkgsrc-bugs
Date: 04/06/2004 12:56:29
>Number:         25069
>Category:       pkg
>Synopsis:       perl is unable to build modules with locale set
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 06 10:57:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Marc Recht
>Release:        NetBSD 2.0_BETA
>Organization:
	
>Environment:
	
	
System: NetBSD leeloo.intern.geht.de 2.0_BETA NetBSD 2.0_BETA (LEELOO) #0: Tue Apr 6 02:26:11 CEST 2004 root@leeloo.intern.geht.de:/usr/obj/sys/arch/i386/compile/LEELOO i386
Architecture: i386
Machine: i386
>Description:
If LC_ALL/LANG is set the ${PERL5} Makefile.PL ${MAKE_PARAMS}
fails. (PERL is set to 0 in the resulting Makefile)
	
>How-To-Repeat:
export LANG=de_DE.ISO8859-1
and then try build any perl module.
	
>Fix:
(probably adding PERL=${PERL5} to MAKEFLAGS)

or:

Index: module.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl5/module.mk,v
retrieving revision 1.33
diff -u -r1.33 module.mk
--- module.mk   21 Jan 2004 09:40:49 -0000      1.33
+++ module.mk   6 Apr 2004 10:54:18 -0000
@@ -58,6 +58,7 @@
 .undef USE_GCC3
 .endif
  
+MAKE_ENV+=     LC_ALL=C
 .PHONY: perl5-configure
 perl5-configure:
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
	
>Release-Note:
>Audit-Trail:
>Unformatted: