Bug 548 - pkgadd -R /a -d TMCsudo.pkg -a noask TCMsudo fails
pkgadd -R /a -d TMCsudo.pkg -a noask TCMsudo fails
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.7.8
Sun Solaris 2.x
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-13 16:21 MDT by LB
Modified: 2012-03-13 17:36 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LB 2012-03-13 16:21:48 MDT
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.
Comment 1 LB 2012-03-13 16:28:58 MDT
I used pkgtrans to extract the package, and fixed the postinstall, then re-rolled it and it works.
Comment 2 Todd C. Miller 2012-03-13 17:36:56 MDT
Thanks, I've fixed the postinstall script and re-rolled the 1.8.4p4 packages.