Bugzilla – Bug 2031
postgres role specifies non-existent pfksh shell
Last modified: 2010-01-14 20:14:52 UTC
You need to log in before you can comment on or make changes to this bug.
The default postgres role specifies the /usr/bin/pfksh shell, which is non-existent in OpenSolaris 2008.05.
I have asked why this bug exists in http://www.opensolaris.org/jive/thread.jspa?threadID=72127
*** Bug 5509 has been marked as a duplicate of this bug. ***
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.
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
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.
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
Raising prio a bit, marking as a stopper (prevents Solaris System Test from PostgreSQL testing)
This bug still exits in snv_130.
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.
(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.
(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.
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.
Fixed in changeset 37778e23a9c3a65c92c77ecab47d2d4ad85abd51.