Subject: pkg/8616: enable i18n support for PostgreSQL pkg
To: None <gnats-bugs@gnats.netbsd.org>
From: SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp.Keiki_SUNAGAWA>
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
>Last-Modified:
>Originator: SUNAGAWA Keiki
>Organization:
Yokogawa Electric Corporation.
>Release: -current as of 1999-10-13
>Environment:
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
>Description:
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.
>How-To-Repeat:
check if our pkg version of PostgreSQL supports i18n.
>Fix:
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 @@
--with-libraries="${LOCALBASE}/lib"
.endif
+# Default to build with i18n support. Valid encoding types are below:
+# SQL_ASCII, EUC_{CN,JP,KR,TW}, UNICODE, MULE_INTERNAL, LATIN[1-5]
+# 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.
+PGSQL_MB_ENCODING?= SQL_ASCII
+.if !defined(PGSQL_USE_MB) || ${PGSQL_USE_MB} != "NO"
+CONFIGURE_ARGS+= --with-mb="${PGSQL_MB_ENCODING}"
+.endif
+
PGUSER?= pgsql
PGGROUP?= ingres
PGPREFIX= ${PREFIX}/${PGUSER}
>Audit-Trail:
>Unformatted: