Problem
When I run pkgadd in SCO OpenServer Enterprise 5.0.5 or 5.0.6, I get the following error if the "mode" for a file in the pkgmap file for my product is a "?":
installf: ERROR: bad entry read in contents file pathname=(path to file in question) problem=illegal value for mode
Then I get a message that the package installation partially failed.
Cause
According to the manual page on pkgmap(F), if a regular file targeted in the pkgmap file has a "?" in the mode (permissions) field then the file's permissions should go unchanged. Instead the "?" is not being recognized as a valid value which results in the error.
Solution
As a temporary workaround, edit the pkgmap file. To do this, take the following steps:
1. Note the path and name of the regular file in the error message.
2. Do a listing of the regular file in its path and note the permissions.
3. Edit the pkgmap file for the package and locate the line of the
regular file in question. For example:1 e build /etc/conf/cf.d/init.base ? ? ? 395 31410 918744517
The "mode" field is the first "?".
4. Replace the first "?" with the permissions of the regular
file and add a leading "0". For example:1 e build /etc/conf/cf.d/init.base 0644 ? ? 395 31410 918744517
5. Save the file and run pkgadd to install the package again.
NOTE: The steps taken in this temporary workaround may need to be run
more than once if there are several regular files that are
resulting in error. See also
The manual page for pkgmap(F).