|
Bugzilla – Full Text Bug Listing |
| Summary: | pkgadd -R /a -d TMCsudo.pkg -a noask TCMsudo fails | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | LB <guyverdh> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.8 | ||
| Hardware: | Sun | ||
| OS: | Solaris 2.x | ||
I used pkgtrans to extract the package, and fixed the postinstall, then re-rolled it and it works. Thanks, I've fixed the postinstall script and re-rolled the 1.8.4p4 packages. |
It looks like the Solaris pkg file was generated without relative path names so it doesn't allow for pkgadd -R to function correctly. The postinstall script doesn't account for the alternate root so when it does the cp -p /etc/sudoers.dist /etc/sudoers - it fails. Modify the postinstall file so that the line sudoers=/etc becomse sudoers=${PKG_INSTALL_ROOT}/etc That will fix the postinstall.