Subject: pkg/8616: enable i18n support for PostgreSQL pkg
To: None <>
From: SUNAGAWA Keiki <>
List: netbsd-bugs
Date: 10/13/1999 00:57:46
>Number:         8616
>Category:       pkg
>Synopsis:       PostgreSQL pkgsrc doesn't enable its i18n support.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 13 00:57:01 1999
>Originator:     SUNAGAWA Keiki
	Yokogawa Electric Corporation.
>Release:        -current as of 1999-10-13
System: NetBSD lively 1.4.1 NetBSD 1.4.1 (LIVELY) #2: Fri Sep 24 12:28:21 JST 1999 kei@lively:/usr/src/sys/arch/i386/compile/LIVELY i386

	PostgreSQL has i18n supports from 6.3.1, but pkgsrc doesn't enable this
	feature.  Please note that though multi-byte support itself need
	to be enabled on compile time with configure, you can select the
	favorite enoding in run time.

	check if our pkg version of PostgreSQL supports i18n.
	Apply the following patch to pkgsrc Makefile.

diff -Nru postgresql.orig/Makefile postgresql/Makefile
--- postgresql.orig/Makefile	Tue Sep 21 20:35:18 1999
+++ postgresql/Makefile	Wed Oct 13 16:49:28 1999
@@ -64,6 +64,15 @@
+# Default to build with i18n support.  Valid encoding types are below:
+# If you don't want to enable this feature, define 'PGSQL_USE_MB=NO' in
+# /etc/mk.conf, or just type: ${MAKE} PGSQL_USE_MB=NO.
+.if !defined(PGSQL_USE_MB) || ${PGSQL_USE_MB} != "NO"
 PGUSER?=		pgsql
 PGGROUP?=		ingres