NetBSD Problem Report #8616
Received: (qmail 27245 invoked from network); 13 Oct 1999 07:54:14 -0000
Message-Id: <199910130753.QAA05475@vivid.mitaka.yokogawa.co.jp>
Date: Wed, 13 Oct 1999 16:53:44 +0900 (JST)
From: SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp>
Reply-To: SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp>
To: gnats-bugs@gnats.netbsd.org
Subject: enable i18n support for PostgreSQL pkg
X-Send-Pr-Version: 3.95
>Number: 8616
>Category: pkg
>Synopsis: PostgreSQL pkgsrc doesn't enable its i18n support.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Oct 13 00:57:01 +0000 1999
>Closed-Date: Sat May 20 19:59:03 +0000 2000
>Last-Modified: Sat May 20 19:59:03 +0000 2000
>Originator: SUNAGAWA Keiki
>Release: -current as of 1999-10-13
>Organization:
Yokogawa Electric Corporation.
>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}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jlam
State-Changed-When: Sat May 20 12:57:37 PDT 2000
State-Changed-Why:
The new postgresql-7.0 package addresses this. Thanks!
.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.