Mantis - cacertificates
Viewing Issue Advanced Details
3958 packaging minor have not tried 2009-10-11 12:15 2009-10-18 13:23
dam  
yann  
normal  
closed  
duplicate  
none    
none  
0003958: postinstall bails out on fresh install
On a freshly installed machine post-install bails out with

...
/opt/csw/share/ca-certificates/mozilla/beTRUSTed_Root_CA_-_RSA_Implementation.pem
/opt/csw/share/ca-certificates/mozilla/thawte_Primary_Root_CA.pem
/opt/csw/share/doc/ca-certificates/README.CSW
[ verifying class <none> ]
Copying sample config to /opt/csw/etc/ca-certificates.conf
usage: chmod [-fR] <absolute-mode> file ...
        chmod [-fR] <ACL-operation> file ...
        chmod [-fR] <symbolic-mode-list> file ...
where <symbolic-mode-list> is a comma-separated list of
        [ugoa]{+|-|=}[rwxXlstugo]
where <ACL-operation> is one of the following
        A-<acl_specification>
        A[number]-
        A[number]{+|=}<acl_specification>
where <acl-specification> is a comma-separated list of ACEs

[ verifying class <cswpreserveconf> ]
Issue History
2009-10-11 12:15 dam New Issue
2009-10-11 14:53 yann Note Added: 0006831
2009-10-11 14:53 yann Assigned To => yann
2009-10-11 14:53 yann Status new => feedback
2009-10-12 08:53 ihsan Note Added: 0006843
2009-10-12 08:54 ihsan Issue Monitored: ihsan
2009-10-12 21:58 yann Note Added: 0006848
2009-10-17 16:34 yann Note Added: 0006866
2009-10-18 12:37 dam Note Added: 0006870
2009-10-18 12:37 dam Status feedback => closed
2009-10-18 12:37 dam Resolution open => duplicate
2009-10-18 13:23 yann Note Added: 0006871

Notes
(0006831)
yann   
2009-10-11 14:53   
The chmod is actually performed by the i.preserveconf class action script so it's more likely to be a cswclassutils bug, but before reassigning the bug, could you provide a debug output of this ca_certificate package installation ?
(either pkgadd -v or pkgutil --trace)

I don't reproduce the bug, here is what I got:

Copying sample config to /opt/csw/etc/ca-certificates.conf
+ grep ^/opt/csw/etc/ca-certificates.conf.csw /var/sadm/install/contents
contents=/opt/csw/etc/ca-certificates.conf.csw e cswpreserveconf 0644 root bin 773 2257 1230074525 *CSWcacertificates
+ awk {print $4}
+ echo /opt/csw/etc/ca-certificates.conf.csw e cswpreserveconf 0644 root bin 773 2257 1230074525 *CSWcacertificates
mode=0644
+ awk {print $5}
+ echo /opt/csw/etc/ca-certificates.conf.csw e cswpreserveconf 0644 root bin 773 2257 1230074525 *CSWcacertificates
user=root
+ awk {print $6}
+ echo /opt/csw/etc/ca-certificates.conf.csw e cswpreserveconf 0644 root bin 773 2257 1230074525 *CSWcacertificates
group=bin
+ cp /opt/csw/etc/ca-certificates.conf.csw /opt/csw/etc/ca-certificates.conf
+ chmod 0644 /opt/csw/etc/ca-certificates.conf
+ chown root:bin /opt/csw/etc/ca-certificates.conf
+ read src dest
+ echo

[ verifying class <cswpreserveconf> ]
(0006843)
ihsan   
2009-10-12 08:53   
I've got the same issue on a new system:

[ verifying class <none> ]
/opt/csw/etc/ca-certificates.conf.csw
[ verifying class <cswpreserveconf> ]
## Executing postinstall script.
ERROR: /opt/csw/etc/ca-certificates.conf doesn't exist !
pkgadd: ERROR: postinstall script did not complete successfully

Installation of <CSWcacertificates> partially failed.
=> Installing CSWosslrt-0.9.8,REV=2009.03.27_rev=k
(0006848)
yann   
2009-10-12 21:58   
Ishan, I can't also reproduce your bug.
can you tell me the version of your CSWcswclassutils package and the content of the /usr/sadm/install/scripts/i.cswpreserveconf file ?

Are you installing the package in a zone or something like that ?
(0006866)
yann   
2009-10-17 16:34   
Please ishan and dam, can you provide me the debug of your ca_certificates package installation (pkgadd -v or pkgutil --trace) so I can make some progress on this bug ?
(0006870)
dam   
2009-10-18 12:37   
The problem is located in CSWcswclassutils and a duplicate of [3959].
(0006871)
yann   
2009-10-18 13:23   
Reminder sent to: ihsan

Ishan, dam just closed this bug but I am not sure your bug was the same one, if you are still able to reproduce it, could you please open a new bug with the debug output of the package installation ?