Bootstrapping RPM Build On Solaris 10

Building RPM

In order to build RPM on Solaris 10, I need to install build tools. The build tools are RPM packages so I need to get RPM on the system first. I'll use the Solaris 8 version of RPM to do this. This procedure of using an older or different tool to create a new version of the same tool is called bootstrapping.

Tasks for Setting Up Build Environment

The tasks involved in setting up the build environment are shown in Table 1, “Build Environment Setup Tasks”.

Table 1. Build Environment Setup Tasks

TaskDescriptionCompletion
Install RPMInstall Solaris 8 version of RPM1/11/07
Install libiconv packageThis is actual a provides package for the libiconv library3/27/07
Create new Solaris provides packageAdd /lib to vpkg.sh and re-run to produce a new Solaris provides package3/27/07
Install infoOther basic packages use install-info to install documentation3/27/07
Update install path in RPM/usr/local/sbin and /usr/local/bin needs to be added to the install path used by RPM in order to find the install-info command.3/27/07
Update os compatibilityThe .rpmrc file needs to have os_compat lines added so that packages made for solaris2.8 would be seen as compatible with solaris2.103/27/07
Change permissions for /var/local/tmpThe permissions need to be made the same as for /var/tmp7/2/07
Install gccI had to install the Sun Freeware version of gcc after the Solaris 8 version failed to create binaries.7/3/07
Install build tools 5/13/07
Build gccI'm building a Solaris 10 version of gcc packaged with RPM in order to be consistent in how I manage /usr/local.7/8/07