The heirloom-sh package is a portable variant of the traditional Unix Bourne Shell.
Apply a patch to bring up the source to the last upstream commit:
patch -Np1 -i ../heirloom-sh-050706-final-updates.patch
Now, apply a patch to fix the build with glibc 2.34 or newer:
patch -Np1 -i ../heirloom-sh-050706-glibc234-2.patch
Install heirloom-sh by running the following command:
make
Now, as the root
user:
make install
As the root
user, update
/etc/shells
to include the Bourne
shell program names:
cat >> /etc/shells << "EOF"
/usr/5bin/sh
/usr/5bin/jsh
EOF