The attached patch implements version checking for SVR4 packages. When a dependency on the version of the required package is present into the spec file (i.e: "Requires other_package > 1.0") a preinstall script is added to the generated package. The script itself check that the version of the required package present into the host system at install time verify the requirement.
It also replace a couple of `/usr/bin/pkginfo -q '$pkg.*'` statement with `/usr/bin/pkginfo -q '$pkg'`, since the firsts do not work on my host (?!?)
The dependency check script is very rough (i.e. do not cope with multiple instance of the required package in the host system and do not properly compare the version numbers "dot-by-dot", but I hope it would help as a starting point
Log in to post a comment.