OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004898 [pkgutil] regular use major always 2012-02-17 16:55 2012-02-21 10:16
Reporter mikera View Status public  
Assigned To bonivart
Priority normal Resolution fixed  
Status closed  
Summary 0004898: Packages CSWcas- won't install on Solaris 9
Description Solaris 9 (and probaly Solaris 8) systems missing /bin/pkgcond command will fail to install CSWcas- packages.

In the /opt/csw/bin/pkgutil script the /bin/pkgcond command is used to check if the directory /usr/sadm/install/scripts directory is read only. If the pkgcond command is missing (patch level?) the package installation will fail as the pkgutil logic assumes the directory is not writable and not that the command is missing.
Additional Information Simple fix

$ diff -c pkgutil.orig pkgutil
*** pkgutil.orig Fri Feb 17 09:47:33 2012
--- pkgutil Sat Feb 4 08:30:52 2012
***************
*** 1413,1419 ****
      if ( grep { /^CSWcas-/ } @dlpkglist ) { # CAS pkg in the list?
          my $status = system( "/bin/pkgcond", "is_path_writable",
              "/usr/sadm/install/scripts" ); # /usr ro?
! if ($status) {
              myexit(
                  "A class action script is about to be installed but\n"
                    . "/usr/sadm/install/scripts is read-only so it will fail.\n"
--- 1413,1419 ----
      if ( grep { /^CSWcas-/ } @dlpkglist ) { # CAS pkg in the list?
          my $status = system( "/bin/pkgcond", "is_path_writable",
              "/usr/sadm/install/scripts" ); # /usr ro?
! if (! -w "/usr/sadm/install/scripts") {
              myexit(
                  "A class action script is about to be installed but\n"
                    . "/usr/sadm/install/scripts is read-only so it will fail.\n"
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0009610)
bonivart (manager)
2012-02-17 18:59

Please test the packages here and get back to me:

http://buildfarm.opencsw.org/experimental.html#pkgutil [^]
(0009624)
bonivart (manager)
2012-02-21 10:16

Released as 2.6.3.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker