Bug 548

Summary: pkgadd -R /a -d TMCsudo.pkg -a noask TCMsudo fails
Product: Sudo Reporter: LB <guyverdh>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.7.8   
Hardware: Sun   
OS: Solaris 2.x   

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.