[oi-dev] shell/ksh93

stes@PANDORA.BE stes at telenet.be
Mon Mar 29 17:55:46 UTC 2021


After upgrading an OI system to 

consolidation/osnet/osnet-incorporation           0.5.11-2020.0.1.20430      i--
developer/opensolaris/osnet                       0.5.11-2020.0.1.20430      i--

the /bin/sh is now provided by shell/ksh93

stat /bin/sh
  File: /bin/sh -> i86/ksh93

which is now in the shell/ksh93 package.

Without changing anything else, when I build squeak-5 and run gmake REQUIRED_PACKAGES
it automagically finds (perhaps via pkgdepend resolve) 

REQUIRED_PACKAGES += shell/ksh93

it did NOT find the old 

-REQUIRED_PACKAGES += SUNWcs

so I removed SUNWcs from the Makefile.  I did not even change

shared-macros.mk:REQUIRED_PACKAGES += SUNWcs

I thought first that perhaps a change of 'shared-macros.mk' would have been required, but apparently not.

Then a publish of the package publishes with the following required packages:

depend type=require fmri=pkg:/shell/ksh93 at 93.21.1.20120801-2020.0.1.20430
depend type=require fmri=pkg:/system/library/math at 0.5.11-2020.0.1.20430
depend type=require fmri=pkg:/system/library at 0.5.11-2020.0.1.20430

so basically it replaced SUNWcs by shell/ksh93.

I suspect that if I submit a new Pull Request (PR) for the squeak packages,
the old:

# pkg contents -t depend squeak-4-nodisplay
TYPE    FMRI
require pkg:/SUNWcs at 0.5.11-2020.0.1.20416
require pkg:/system/library/math at 0.5.11-2020.0.1.20416
require pkg:/system/library at 0.5.11-2020.0.1.20416

the old pkg:/SUNWcs will simply be replaced by the 'new'  shell/ksh93.

I'm fine with this, I think it is more or less a design decision imposed by Illumos.org,
unless OpenIndiana would somehow change/modify/undo or reject that illumos choice ...

Perhaps one could argue that the package Korn shell is an odd dependency,
for a package which simply delivers a few Bourne shell scripts (/bin/sh).

However isn't that the logical consequence in some sense of delivering /bin/sh in shell/ksh93 ?

David Stes



More information about the oi-dev mailing list