Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 1998 06:23:09 +0900 (JST)
From:      k5@respo.or.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/8849: ja-postgresql-6.3.2: chpass: corrupted entry
Message-ID:  <199811242123.GAA11274@souffle.respo.or.jp>

next in thread | raw e-mail | index | archive | help

>Number:         8849
>Category:       ports
>Synopsis:       can't install because of script bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 24 13:30:00 PST 1998
>Last-Modified:
>Originator:     FUJISHIMA Satsuki
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	a.out system without pseudo user 'pgsql' entry in /etc/passwd
	(This ports is also BROKEN_ELF, but it's another story.)

>Description:

>How-To-Repeat:

sh-2.02# cd /usr/ports/japanese/postgresql
sh-2.02# make install
===>  Installing for ja-postgresql-6.3.2
pgsql user using uid 70
pgsql user using gid 70
chpass: corrupted entry

(---- SNIP SNIP ----)

===>   Generating temporary packing list
chown: pgsql: illegal user name
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
sh-2.02# 

>Fix:

--- createuser.tmpl.orig	Wed Sep  9 00:30:19 1998
+++ createuser.tmpl	Mon Nov 23 20:23:56 1998
@@ -32,7 +32,7 @@
 print "PGSQL_UID user using uid $pgUID\n";
 print "PGSQL_GID user using gid $pgGID\n";
 
-system( "/usr/bin/chpass -a \"PGSQL_UID:*:$pgUID:$pgGID::0:0:PostgreSQL pseudo-user:$ENV{'PREFIX'}/INSTALL_DIR:/bin/sh\"" );
+system( "/usr/bin/chpass -a \"PGSQL_UID:*:$pgUID:$pgGID\:\:0:0:PostgreSQL pseudo-user:$ENV{'PREFIX'}/INSTALL_DIR:/bin/sh\"" );
 
 sub append_file {
 	local($file,@list) = @_;

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811242123.GAA11274>