Anonymous | Login | 2024-05-21 16:34 CEST |
Main | My View | View Issues |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
0003959 | [cswclassutils] packaging | minor | have not tried | 2009-10-11 12:55 | 2009-10-31 12:16 | ||
Reporter | dam | View Status | public | ||||
Assigned To | bonivart | ||||||
Priority | normal | Resolution | fixed | ||||
Status | closed | ||||||
Summary | 0003959: sampleconf fails sometimes | ||||||
Description |
On a fresh installed systems I get errors of the form below for several packages: (especially ca-certificates and ssh): /opt/csw/share/man/man1/ssh-agent.1 /opt/csw/share/man/man1/ssh-keygen.1 /opt/csw/share/man/man1/ssh-keyscan.1 /opt/csw/share/man/man1/ssh.1 /opt/csw/share/man/man5/ssh_config.5 /opt/csw/share/man/man8/ssh-keysign.8 [ verifying class <none> ] Copying sample config to /opt/csw/etc/ssh/ssh_config 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> ] |
||||||
Additional Information | |||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Relationships | ||||||
|
Notes | |
(0006833) bonivart (developer) 2009-10-11 17:24 |
Could you please run the install with trace so we get the actual commands that fail? # pkgutil -i --trace <pkg> |
(0006853) james (reporter) 2009-10-13 02:16 |
[ verifying class <none> ] + read src dest + cp /tmp/dstreAAAawaGrp/CSWcacertificates/root/opt/csw/etc/ca-certificates.conf.csw /opt/csw/etc/ca-certificates.conf.csw + echo /opt/csw/etc/ca-certificates.conf.csw + sed s/.csw$// confdest=/opt/csw/etc/ca-certificates.conf preservedir=/etc/opt/csw/preserve/CSWcacertificates + basename /opt/csw/etc/ca-certificates.conf confbasename=ca-certificates.conf preservedconf=/etc/opt/csw/preserve/CSWcacertificates/ca-certificates.conf + [ -f /etc/opt/csw/preserve/CSWcacertificates/ca-certificates.conf ] + [ -f /opt/csw/etc/ca-certificates.conf ] + echo Copying sample config to /opt/csw/etc/ca-certificates.conf Copying sample config to /opt/csw/etc/ca-certificates.conf + grep ^/opt/csw/etc/ca-certificates.conf.csw /var/sadm/install/contents contents= + echo + awk {print $4} mode= + awk {print $5} + echo user= + echo + awk {print $6} group= + cp /opt/csw/etc/ca-certificates.conf.csw /opt/csw/etc/ca-certificates.conf + chmod /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 + chown : /opt/csw/etc/ca-certificates.conf + read src dest + echo |
(0006857) bonivart (developer) 2009-10-14 18:18 |
This sadly looks like a new bug caused by me fixing an earlier one. :-( I will find the related bug and see if I can't fix it properly. |
(0006889) bonivart (developer) 2009-10-26 20:32 |
Also affects clamav-milter according to Nicolai Schwindt. "in the package one finds : 1 f cswcpsampleconf /opt/csw/etc/clamav-milter.conf.CSW 0644 root bin 7156 30995 1244712757 Taking a look at /usr/sadm/install/scripts/i.cswcpsampleconf gives the impression ( contents=`grep "^$dest" /var/sadm/install/contents` ) in /var/sadm/install/contents one should find the string "/opt/csw/etc/clamav-milter.conf". But it is not there, not untill after the installation finished. As it remains after pkgrm CSWclamav, from now on pkg-get -i clamav works as expected. You end up with : ll /opt/csw/etc/clamav-milter.conf -rw-r--r-- 1 root root 7156 Oct 26 19:53 /opt/csw/etc/clamav-milter.conf This is not limited to clamav - there are some other packages as well. i.e openssh-client, openssh." |
(0006891) dam (administrator) 2009-10-27 18:24 |
When pkgserv is active changes to /var/sadm/install/contents are held in a log and need to be flushed prior to accessing the contents file: if [ -f $confdest ] ; then echo $confdest already exists. Not overwriting else echo Copying sample config to $confdest --> /usr/bin/pkgadm -R $PKG_INSTALL_ROOT sync 2>/dev/null contents=`grep "^$dest " /var/sadm/install/contents` mode=`echo $contents | awk '{print $4}'` user=`echo $contents | awk '{print $5}'` group=`echo $contents | awk '{print $6}'` cp $dest $confdest ...or something similar as the pkgserv (and hence the 'sync' option) is available first in 119254/119255-69). |
(0006892) dam (administrator) 2009-10-27 18:26 |
For details see http://opensolaris.org/jive/thread.jspa?messageID=358081 [^] |
(0006893) bonivart (developer) 2009-10-27 18:50 |
Dago: "This should work: test -x /usr/bin/pkgadm && /usr/bin/pkgadm sync >/dev/null 2>&1" |
(0006896) bonivart (developer) 2009-10-28 11:02 |
This fix has been included in 1.27 released for testing. |
(0006926) bonivart (developer) 2009-10-31 12:16 |
1.27 released with the described fix. |
Copyright © 2000 - 2008 Mantis Group |