Bug 2031 - postgres role specifies non-existent pfksh shell
: postgres role specifies non-existent pfksh shell
Status: RESOLVED FIXINSOURCE
Product: opensolaris
packaging
: unspecified
: i86pc/i386 OpenSolaris
: P2 major (vote)
: ---
Assigned To: David Comay
: osol/packaging watcher
:
: sst-test-stopper
:
:
:
  Show dependency treegraph
 
Reported: 2008-05-25 15:16 UTC by Nicholas Solter
Modified: 2010-01-14 20:14 UTC (History)
12 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Nicholas Solter 2008-05-25 15:16:16 UTC
The default postgres role specifies the /usr/bin/pfksh shell, which is
non-existent in OpenSolaris 2008.05.
Comment 1 Nils Goroll 2008-09-07 08:51:05 UTC
I have asked why this bug exists in
http://www.opensolaris.org/jive/thread.jspa?threadID=72127
Comment 2 Roland Mainz 2008-11-30 14:11:38 UTC
*** Bug 5509 has been marked as a duplicate of this bug. ***
Comment 3 Roland Mainz 2008-11-30 14:13:40 UTC
See
http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2008-November/006581.html
and
http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2008-November/006580.html
for an evaluation of the problem...

... once the ksh93-integration update1 lands in OS/Net it is "safe" to add
hardlinks from { /usr/bin/pfksh, /usr/bin/pfksh93, /usr/bin/pfrksh,
/usr/bin/pfrksh93 } to /usr/bin/ksh93.
Comment 4 Roland Mainz 2008-12-29 09:36:24 UTC
ksh93-integration update1 (see
http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2008-December/006749.html)
 was commited to OS/Net build 106.

IMO it may now be nice to make the following four locations hardlinks to
/usr/bin/ksh93:
-- snip --
/usr/bin/pfksh
/usr/bin/pfksh93
/usr/bin/pfrksh
/usr/bin/pfrksh93
-- snip --

The following locations need to be hardlinks to "/usr/bin/i86/ksh93":
-- snip --
/usr/bin/i86/ksh93
/usr/bin/i86/pfksh
/usr/bin/i86/pfksh93
/usr/bin/i86/pfrksh
/usr/bin/i86/pfrksh93
-- snip --

The following locations need to be hardlinks to "/usr/bin/amd64/ksh93":
-- snip --
/usr/bin/amd64/ksh93
/usr/bin/amd64/pfksh
/usr/bin/amd64/pfksh93
/usr/bin/amd64/pfrksh
/usr/bin/amd64/pfrksh93
-- snip --

The following locations need to be hardlinks to "/usr/bin/sparcv7/ksh93":
-- snip --
/usr/bin/sparcv7/ksh93
/usr/bin/sparcv7/pfksh
/usr/bin/sparcv7/pfksh93
/usr/bin/sparcv7/pfrksh
/usr/bin/sparcv7/pfrksh93
-- snip --

The following locations need to be hardlinks to "/usr/bin/sparcv9/ksh93":
-- snip --
/usr/bin/sparcv9/ksh93
/usr/bin/sparcv9/pfksh
/usr/bin/sparcv9/pfksh93
/usr/bin/sparcv9/pfrksh
/usr/bin/sparcv9/pfrksh93
-- snip --

Note that this is the same as flipping the "ON_BUILD_KSH93_AS_BINKSH=1"-switch
in
http://src.opensolaris.org/source/raw/onnv/onnv-gate/usr/src/Makefile.ksh93switch
Comment 5 Roland Mainz 2008-12-29 09:37:56 UTC
Umpf... the comment has a small mistake.... see below...

(In reply to comment #4)
[snip]
> The following locations need to be hardlinks to "/usr/bin/i86/ksh93":
> -- snip --
> /usr/bin/i86/ksh93

Remove this line.

> /usr/bin/i86/pfksh
> /usr/bin/i86/pfksh93
> /usr/bin/i86/pfrksh
> /usr/bin/i86/pfrksh93
> -- snip --
> 
> The following locations need to be hardlinks to "/usr/bin/amd64/ksh93":
> -- snip --
> /usr/bin/amd64/ksh93

Remove this line.

> /usr/bin/amd64/pfksh
> /usr/bin/amd64/pfksh93
> /usr/bin/amd64/pfrksh
> /usr/bin/amd64/pfrksh93
> -- snip --
> 
> The following locations need to be hardlinks to "/usr/bin/sparcv7/ksh93":
> -- snip --
> /usr/bin/sparcv7/ksh93

Remove this line.

> /usr/bin/sparcv7/pfksh
> /usr/bin/sparcv7/pfksh93
> /usr/bin/sparcv7/pfrksh
> /usr/bin/sparcv7/pfrksh93
> -- snip --
> 
> The following locations need to be hardlinks to "/usr/bin/sparcv9/ksh93":
> -- snip --
> /usr/bin/sparcv9/ksh93

Remove this line.
Comment 6 Vit Hrachovy 2009-11-20 06:24:15 UTC
This error is still visible in osol_127(RE) build. 
This blocks PostgreSQL coverage on OpenSolaris for Solaris System Test.
Regression testsuite requires to be run under user postgres.

su postgres
su: No shell
Comment 7 Alexander Vlasov 2009-11-20 11:07:39 UTC
Raising prio a bit, marking as a stopper (prevents Solaris System Test from
PostgreSQL testing)
Comment 8 Prudhvi Krishna Surapaneni 2010-01-07 02:07:23 UTC
This bug still exits in snv_130.
Comment 9 David Comay 2010-01-11 20:14:43 UTC
Will be providing links for pfksh and pfksh93.  In addition, will clean up some
of the other shell related links in usr/bin and deliver compatibility links
under /usr/has/bin for the legacy Bourne shell.
Comment 10 Olga Kryzhanovska 2010-01-11 20:44:23 UTC
(In reply to comment #8)
> This bug still exits in snv_130.

I am confused about this problem, too. ksh93 update 1 fixed the profile shell
mode  in /usr/bin/ksh93. There's been more than 6 months now where this rather
simple package database entry could been added.
Comment 11 Olga Kryzhanovska 2010-01-11 20:48:40 UTC
(In reply to comment #9)
> Will be providing links for pfksh and pfksh93.  In addition, will clean up some
> of the other shell related links in usr/bin and deliver compatibility links
> under /usr/has/bin for the legacy Bourne shell.

AIX and other children of UNIX use /usr/bin/bsh for the plain Bourne shell.
AFAIK it would be good to follow this convention.
Comment 12 David Comay 2010-01-12 19:51:27 UTC
Also will use this bug to rationalize some of the other links to the legacy ksh
and sh and to fix the way we deliver the legacy Bourne shell into the /usr/has
hierarchy (Olga, feel free to file a separate bug on introducing bsh.)

As for why this was missed until now, probably because the right place to have
introduced pfksh93 is in ON.  However we'll introduce the links here and when
ON switches to IPS, these changes should appear there directly.
Comment 13 David Comay 2010-01-14 20:14:52 UTC
Fixed in changeset 37778e23a9c3a65c92c77ecab47d2d4ad85abd51.