Patch-ID# 119254-53

NOTE:
***********************************************************************
READ THE TERMS OF THE AGREEMENT ("AGREEMENT") IN THE LEGAL_LICENSE.TXT
FILE CAREFULLY BEFORE USING THIS SOFTWARE. BY USING THE SOFTWARE, YOU
AGREE TO THE TERMS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE
TERMS, PROMPTLY DESTROY THE UNUSED SOFTWARE.
***********************************************************************

Keywords: security patchadd patchrm pspool global zone upgrade rlogin telnet
Synopsis: SunOS 5.10: Install and Patch Utilities Patch
Date: Apr/11/2008


Install Requirements: NA                      
                      
Solaris Release: 10

SunOS Release: 5.10

Unbundled Product: 

Unbundled Release: 

Xref: This patch is available for X86 as patch 119255

Topic: SunOS 5.10: Install and Patch Utilities Patch

Relevant Architectures: sparc

BugId's fixed with this patch: 4905325 4907080 4908553 4967419 4991875 5045607 6188748 6196673 6206255 6210622 6216195 6216798 6216809 6217206 6218542 6219176 6220578 6221954 6224740 6224767 6225041 6226770 6226930 6231818 6233011 6233738 6236231 6236796 6236855 6236866 6239875 6240894 6241052 6241431 6241944 6242607 6243480 6244125 6245446 6245715 6248984 6251452 6251466 6252385 6252388 6256515 6262677 6263190 6265069 6266241 6271791 6274438 6275530 6275557 6276148 6277096 6278325 6279485 6284610 6285073 6288746 6290368 6290429 6290432 6292233 6292269 6292275 6293397 6296187 6297336 6303564 6304174 6304176 6304222 6306319 6307548 6309013 6313848 6315157 6315316 6315512 6318864 6319430 6319570 6320238 6321376 6322837 6323208 6324392 6328091 6331277 6334066 6335342 6337009 6337644 6340114 6342245 6344531 6344676 6344916 6345121 6347534 6348813 6349319 6351408 6351428 6352966 6354346 6355320 6355604 6360157 6362706 6363226 6364817 6369639 6370540 6371040 6371745 6373045 6374972 6380672 6380873 6386697 6387091 6387771 6388931 6388959 6389929 6391503 6392825 6397413 6401302 6406489 6406934 6407037 6412093 6412140 6412749 6412765 6412965 6413788 6421944 6425837 6433028 6435846 6438808 6438813 6440750 6443298 6444650 6445261 6452983 6455767 6456317 6464056 6467398 6479033 6479483 6479605 6480462 6486471 6489022 6496734 6497684 6499744 6500160 6500813 6502541 6513106 6513566 6524528 6527309 6527819 6532654 6534160 6535026 6546222 6548606 6556250 6560447 6561150 6561926 6576150 6577070 6578686 6581814 6582345 6592096 6612361 6617022 6626977 6632196 6634610 6644068 6644075 6646494 6650617 6668239

Changes incorporated in this version: 6650617 6668239

Patches accumulated and obsoleted by this patch: 119015-03

Patches which conflict with this patch: 

Patches required with this patch: 121133-02 (or greater)

Obsoleted by: 

Files included with this patch: 

/lib/svc/method/patch-finish
/usr/bin/funzip
/usr/bin/pkgadm
/usr/bin/pkgcond
/usr/bin/pkginfo
/usr/bin/pkgmk
/usr/bin/pkgparam
/usr/bin/pkgproto
/usr/bin/pkgtrans
/usr/bin/unzip
/usr/bin/unzipsfx
/usr/bin/zipgrep
/usr/bin/zipinfo
/usr/lib/libgendb.so.1
/usr/lib/libpkg.so.1
/usr/lib/libpkgdb.so.1
/usr/lib/patch/patch_common_lib
/usr/lib/patch/patchadd
/usr/lib/patch/patchrm
/usr/lib/patch/patchutil
/usr/lib/patch/pdo
/usr/sadm/install/bin/pkginstall
/usr/sadm/install/bin/pkgname
/usr/sadm/install/bin/pkgremove
/usr/sadm/install/scripts/cmdexec
/usr/sbin/installf
/usr/sbin/pkgadd
/usr/sbin/pkgask
/usr/sbin/pkgchk
/usr/sbin/pkgrm
/usr/sbin/removef
/usr/share/man/man1/funzip.1
/usr/share/man/man1/unzip.1
/usr/share/man/man1/unzipsfx.1
/usr/share/man/man1/zipgrep.1
/usr/share/man/man1/zipinfo.1
/var/svc/manifest/system/patch-finish.xml

Problem Description:

6650617 s10 patchutils patches need to adopt SUNW_SINGLETON=true semantics to avoid patchadd -M issue
6668239 patchadd -M from 119254-49 onwards will fail if it processes a patch with no applicable packages
 
(from 119254-52)
 
4905325 pkgtrans usage message typo
4907080 pkgadd usage message clean up
6500160 patchadd -C (Miniroot patching) should work without having to set PKG_NONABI_SYMLINKS
6644068 patchadd and patchrm can't always assume lofs is present
6644075 give full paths for commands used in patchadd and patchrm scripts
 
(from 119254-51)
 
6496734 patch utilities should support updating pspool data for pkg CAS scripts
6582345 patchrm fails if pkginstall attempts to create symlinks on sparse zone inherited fs
 
(from 119254-50)
 
6646494 i.manifest 1.16 in 119254-49 does not run svccfg import, causes other patches to fail
 
(from 119254-49)
 
6617022 space checking in/var/run for Deferred Activation patching broken
6634610 all patchadd (pdo) code paths to exit() must ensure zones are unmount DAP context
 
(from 119254-48)
 
6578686 bugfix 6433028 causes spurious erroring in patchrm log
6626977 DAP patching session failing to apply 'implicit' DAP patches in safemode
 
(from 119254-47)
 
6632196 backing out bugfix CR# 6548606
 
(from 119254-46)
 
6344676 unzip does not warn user when extracting setuid/setgid files
6464056 need unzip command that supports encrypted zip file
6548606 patchadd should be able to apply ALLZONES single user patches without manually mounting zone roots
6581814 Deferred Activation patching needs to support zfs file systems
 
(from 119254-45)
 
6524528 119254-34 breaks "patchadd -M patch_location [patch_list]" when patch_location nfs-mounted
 
(from 119254-44)
 
6612361 T119254-43 has problem with Zones installed
 
(from 119254-43)
 
6196673 PCT: pkgadd -d -G pkg fails but with error code 99
6380873 PDO returning wrong error code for pkgadd failure
6443298 patchadd: checkServiceRootArea modifies global variables ROOTDIR,DBDIR,PKGDB und PATCHDB
6479033 patchadd -d does not prevent patch removal in non-global zone
6479605 pdo must behave like patchadd while patching multiple architecture packages
6546222 multi-volume packages fail when installing to local zones from global zone
6592096 patchadd(1M) fails if BASEDIR not specified in pkginfo(4) file for installing patch
 
(from 119254-42)
 
6486471 patchadd must be able to patch safely across arbitrary change
 
(from 119254-41)
 
6561150 pkgcond in 126682 rev's 01 and 02 not working as expected
6576150 119254/5-40 clashes with 126681/2-03 (which requires 119254/5-38) and 119081/2-25
6577070 pkgcond in 119254-40 depends on /etc/zones/index being in non-global zones
 
(from 119254-40)
 
6218542 pkgchk -P segmentation fault if no file path found
6315512 pkgrm gives faulty error messages while doing dependency checks for non-global zones
6322837 specify directory instead of file for pkgchk -i, pkgchk core dumps
6406489 pkginstall segfault caused by pkginfo files without vol numbers
6412093 patchrm should return same exit status (conforming to standards) on failure with/without zones
6412140 pkgchk overzealous on filtering ELF
6412749 pkgchk -i should be enhanced
6412765 pkgchk -i cores on long filename
6413788 pkgchk source has typos, unused defines
6433028 pkginstall invoked in patchrm context merging wrong pkginfo file
6489022 luupgrade -t (add patch) doesn't handle zones in shared filesystems correctly
6497684 unable to login due to Live Upgrade setting incorrect permissions on /tmp and /var/run
6527309 pspool pkginfo and pkgmap not updated correctly when file's type and class have been changed
6532654 pkgcond problem with is_sparse_root_nonglobal_zone/is_whole_root_nonglobal_zone in miniroot
6534160 pkgadd of 32-character packages fails when being added from datastream, on x86 only
6535026 pkginstall reading dryrun file during continuation mode should not read mnttab
6556250 patchrm from 119254-33 and higher ignores pkgadd exit codes
6560447 patch dependencies for rejuvenated patch utils patch 126681-01 includes KU
6561926 patchrm (119254-36+) deletes processing results in different contents and pspool pkgmap
 
(from 119254-39)
 
        This revision was not released due to packaging issues.
 
(from 119254-38)
 
6527309 pspool pkginfo and pkgmap not updated correctly when file's type and class have been changed
 
(from 119254-37)
 
6534160 pkgadd of 32-character packages fails when being added from datastream, on x86 only
 
(from 119254-36)
 
6456317 patchadd corrupts package database /var/sadm/install/contents with certain TZ settings
6502541 patchrm in 119255-32 not handling deletes files
6513106 installing SUNWccinv and SUNWcctpx fails when installing to configured non-global zone
6527819 bugfix 6374972 still fails after fix for 6522362
 
(from 119254-35)
 
6391503 pkgchk -d <pkgname> all command does not cleanup /var/tmp/xxxxxx directories on exit
 
(from 119254-34)
 
6444650 pkginfo -q does not behave as expected
6513566 patchadd -M with 119254-33/119255-33 fails, problem with patcahdd.ksh and -G option
 
(from 119254-33)
 
6188748 patchadd need support for patching from NFS filesystems
6206255 pkgchk not showing usage message when invalid combination of options
6335342 unable to install zones concurrently possibly due to pkgadd limitation
6374972 patchadd should deal with global-only packages intelligently
6435846 UC#2836 incorrect patch is listed as incompatible
6438813 patchadd exit codes display 0 (success) for failed local zone patch attempts when Global succeeds
6499744 patches need way to prevent further invocations of patchadd
6500813 patchrm not able to remove KU 118855-34/35 in Solaris 10 1/06 when non-global zones present
 
(from 119254-32)
 
6480462 pkgchk errors after zones upgrade from S10/S10U1 FCS to S10U3_07a for SUNWwbcor
        Note: The source integration for this bug fix completes the fix for bugid 6452983.
 
(from 119254-31)
 
6438808 patchadd of non-booted local zone with separate /var fails
6467398 patch packages that only deliver deletes files never get processed
6479483 pkginfo -d on package streams return no output. (should return package list)
 
        Note: The fix for bugid 6391503 caused a regression, documented in bugid 6479483.  
              Therefore the fix for bugid has been removed from this patch.
 
(from 119254-30)
 
6391503 pkgchk -d <pkgname> all command does not cleanup /var/tmp/xxxxxx directories on exit
6440750 pkgadd(1M) does not pass -G to pkginstall even if datastream package has request script
6445261 cannot install zones after removing KU 118833-17
 
(from 119254-29)
 
6370540 patchadd does not detect higher revision of required patch when required patch in requested list
6412965 pdo does not pass -G argument to patchadd(ksh) when called as 'patchadd -t -G'
 
(from 119254-28)
 
6452983 pkgcond not accessing ROOTDIR in patch scripts
6425837 pkgcond is_netinstall_image not working
6455767 119254-24/25/26 specify SUNW_REQUIRES=121333-02 and is incorrect
 
(from 119254-27)
 
6401302 patchrm misformatting SUNW_PKGCOND_GLOBAL_DATA in /var/sadm/pkg/SUNWcsu/pkginfo
 
(from 119254-26)
 
6380672 S10 pkgadd does not care about CR 4136905 if pkgmap has '?' entry in permission mode
6389929 patchrm of 118822-29 fails when system configured with local zones
 
(from 119254-25)
 
6407037 pkgcond should usePKG_INIT_INSTALL and SUNW_PKG_INSTALL_ZONENAME in determining target env
 
(from 119254-24)
 
6369639 patchrm not dealing with patches that only deliver NEW files/binaries
6406934 patch utilities patch 119254-21 does not work with non-global zones
6421944 patchadd in 119254-23 uses command specific to Nevada
 
(from 119254-23)
 
6285073 patchadd displays confusing warning messages
6321376 S10 patchadd treats SUNW_INCOMPAT as SUNW_REQUIRES when same patch major id present in both
6387091 patchadd and patchrm with -B option doesn't work
6251466 pdo not passing -d to patchadd.ksh
6304176 /usr/sbin/patchadd (/usr/lib/patch/pdo) processes -x/-k/-P as flags not option-arguments
6387771 patch for package with SUNW_PKG_HOLLOW=true can be removed although installed by 'patchadd -d'
 
(from 119254-22)
 
4967419 patchadd -M returns 0 even if some patches fail to install
6364817 on Zones-enabled system, patchrm 119254-14 does not remove patch from non-global zone
6392825 patchrm fails in non-global zone after bugfix 6364817
6397413 ignore expiration of certs in patchadd and pkgadm
 
(from 119254-21)
 
4991875 pkgchk reports modtime errors after patch installation
6297336 patchadd -p -C should be a read-only operation
6303564 pkgadd problem with SUNWceuow if symbolic link changes to directory in S10 and S10U1
6304174 /usr/sbin/patchadd (/usr/lib/patch/pdo) won't allow URL argument to -M option
6362706 when overwriting existing package pkgadd does not prevent zones attributes from being changed
6371040 patchadd and patchrm in zone failing in S10u1_b19a if zone in ready state
6386697 while doing patchadd/patchrm to zones in ready state, state can't be restored
6373045 pdo should have complete fix for CR 6324392 (patch 119254-15)
 
(from 119254-20)
 
6277096 patchadd -d <patch-id> appears to fail but doesn't
6360157 patchadd dryrun does not check for enough freespace in /var/sadm/pkg
 
(from 119254-19)
 
6388931 patchadd -M now fails if directory contains text file after bugfix 6241052 is installed
6388959 undo.Z for latest patch utilities patch missing in local zone after zone install
6347534 SUNWcsr/SUNWcsu errors with zones and patchrm to KU failed
 
(from 119254-18)
 
6241052 patchadd of a jar'd patch fails
6363226 patchrm fails to remove patch
 
(from 119254-17)
 
6293397 patchadd -p -C does not work in Solaris 10
6320238 patchrm does not work with -C option in Solaris 10 FCS
 
(from 119254-16)
 
6225041 pkgadd fails on large CCD pkgtrans packages
6371745 latest patch utilities patch has wrong dependency listed
 
(from 119254-15)
 
6266241 pkgadd of NBU 5.0 (among others) from CD fails on Solaris 10, works from disk copy
6324392 patchrm returns 0 even if prebackout failed
 
(from 119254-14)
 
6355320 PCT: Ashanti upgrade of system with /opt as inherit-pkg-dir failed with pkgrm errors
 
(from 119254-13)
 
6348813 pdo doesn't reject obsolete patch when its obsoleter is part of same list
6290432 patchadd exits 0 (success) on patchadd failures
6354346 pkgcond is_path_writable not working properly
6355604 revs 12 & 11 of 11925(4,5) need to be badpatched and respun
 
(from 119254-12)
 
6290429 patch script fails cause patchadd to run patchrm cmd in local zone, instead of global
6323208 need interim solution for upgrading S10 GA system with Zones installed
6340114 pkgcond needs to be implemented
6315316 PCT: (SUNW_PKG_HOLLOW=true) files installed in non-global zone when patching
6318864 pkginfo variable in path for editable, volatile files causes file not found during zone install	
6337644 PCT: Ashanti upgrade omitting certain patches	
6342245 PCT: upgrade from S10 RR to Ashanti fails with patch issues	
6345121 PCT: fatal error seen in upgrade_log after successful upgrade from S10 RR to Ashanti	
6210622 patchadd message needs "No any packages from patch" should be fixed
6337009 /usr/lib/patch/patchrm returns failure if parametric path value starts with '/'
6344531 PCT: typo in upgrade_log when it can't boot local zone
6319570 pkginfo's spelling incompatible with English
6349319 pkginstall and pkgremove put newline in pkgcond environment variable pkgcond info truncated
6275530 package commands do not process configured zones when -R given path to global zone	
6334066 adding patches that replace hardlinks with regular files causes patchadd to fail	
6344916 PCT: patchadd does not seem to deal with some cases of editable files	
6306319 patches which delete files not removing deleted files from pspool pkgmap	
6331277 PCT: pkgrm doesn't check reverse dependency of package being removed in all local zones
6351408 egrep error message during patchrm
6351428 pkgcond fails when used in package level script running from scratch zone
6352966 zone creation failures after applying patch 121450-01
 
(from 119254-11)
 
4908553 SUNW_PKG_CMDS.po not being searched by various package commands
6240894 patch commands have references to term "local zone"
6262677 patchrm does not properly clean up after itself if locale is UTF-8 locale
6271791 patchadd cannot handle multiple package instances in Solaris 10
6274438 cannot patch system with zone in "configured" state
6278325 elfsign failures in SUNWswmt package
6290432 patchadd exits 0 (success) on patchadd failures
6304222 pkgrm not processing CAS's in correct order
6307548 patchadd does not restore "ready" state of zone
6313848 patchadd does not flush output at appropriate points
 
(from 119254-10)
 
6252385 Install changes needed for Solaris Boot Architecture
6252388 Diskless changes needed for Solaris Boot Architecture
6265069 find device calls devfs_bootdev_free_list() after incrementing boot_dev pointer
 
(from 119254-09)
 
6216798 'pdo' does not pick up localized messages
6216809 'patchadd' does not reference correct text
6236796 patchrm of SUNWcsu patch in local zone should fail as it has SUNW_PKG_ALLZONEs=true
6315157 patchadd in Solaris 10 gives "out of memory" error
6328091 T119254-08 throws error in postpatch script while adding patch to jumpstart server
 
(from 119254-08)
 
6292275 patchadd/patchrm -R do not have appropriate locking mechanism
 
(from 119254-07)
 
6319430 patch 119254-06 fails intermittently on backout on zones system
 
(from 119254-06)
 
6233011 patchadd can not recognize PKG_INSTALL_ROOT
6236855 patchadd on s10 with zones produces an assertion error
6276148 T-patch does not work on local zones
6279485 failures in zone creation after patchrm
6284610 patches 119254-03, 119255-03 cause patchadd to dump core
6288746 patchadd -M gets order wrong
6290368 patches 119254-04 and 119255-04 do not fix bugid 6263190
6292233 patchadd still does not support incremental patching
6292269 cannot patchrm 119254-05 on zones-enabled system
6296187 SUNWpkgcmdsu problem with pkgmap after patchadd/patchrm/patchadd 119254-05 patch
6306319 patches which delete files not removing deleted files from pspool pkgmap for said package
6309013 patches that replace files of type "f" with symlinks causing zone create to fail
 
(from 119254-05)
 
6220578 patchadd silently fails if too many patches against package
6256515 zone install fails after adding patch
 
(from 119254-04)
 
6244125 direct calls to nsswitch bypassing cache provided by nscd
 
(from 119254-03)
 
6219176 patchadd in S10 doesn't support incremental patching
6226930 patchadd (pdo) doesn't recognize leading 'T' in patchid
6221954 virtual patch removal procedure skips obsolete backlink
6236231 patchrm order checking broken
6263190 patch that patches architecture-specific package, ie SUNWcakr, gives misleading output
6224740 "fs" resources of type "tmpfs" confuse zone installation
6251452 Upgrade and LU screw up permissions of CAS scripts in pspool area with successive upgrades
6243480 cannot patchrm patches that use symlinks/links in pkgmaps, in S10 zones-enabled systems
6248984 patchadd with -d option aborts but munges pkg database and partially applies patches
6245446 routine for generating the pkgmap in patchadd generating incorrect pkgmap
6245715 patchadd silently fails during jumpstart installs
6241431 .patchrmLock not being removed after successful patchrm
6236866 patch[add|rm] -G seems to affect subsequent patchadd's (without -G)
6275557 change SUNWluzone to use -h option to pkgadd instead of -O enable-hollow-package-support
 
(from 119254-02)
 
6233738 patchadd of certain patches in x86 s10 FCS fails
 
(from 119254-01)
 
5045607 patchadd failed to create backout file without any error
6224767 Sun Java System Messaging Server patch fails with "wordlist too large" error 118207-27
 
(from 119015-03)
 
6241944 pkgadd should handle modified f-type files during non-global zone creation
6239875 pkgadd fails to use new version of datastream file downloaded by HTTP if filename is same
6242607 SUNW_PKG_HOLLOW doesn't prevent scripts being run or files installed in non-global zone
6226770 package tools should not create .ai.pkg.zone.lock* file when -R option is used
 
(from 119015-02)
 
6217206 Solaris 8 & 9 / pkgrm passes shared-directory-path to class action script
6231818 package removal "partially failed" in non-global zone
 
(from 119015-01)
 
6216195 zone installation confused by UPDATE=yes in pkginfo(4) file

Patch Installation Instructions:
--------------------------------
For Solaris 2.0-2.6 releases, refer to the Install.info file and/or
the README within the patch for instructions on using the generic
'installpatch' and 'backoutpatch' scripts provided with each patch.
 
For Solaris 7-10 releases, refer to the man pages for instructions
on using 'patchadd' and 'patchrm' scripts provided with Solaris.
Any other special or non-generic installation instructions should be
described below as special instructions.  The following example
installs a patch to a standalone machine:
 
       example# patchadd /var/spool/patch/104945-02
 
The following example removes a patch from a standalone system:
 
       example# patchrm 104945-02
 
For additional examples please see the appropriate man pages.

Special Install Instructions:
-----------------------------
 
NOTE 1:  To get the complete Solaris Boot Architecture feature, please also
         install the following patches:
 
         119081-08 (or greater)  CD-ROM Install Boot Image Patch
         119252-07 (or greater)  System Administration Applications Patch
         119313-04 (or greater)  WBEM Patch (for Diskless Client Support)
 
NOTE 2:  When using patchrm to remove patchid 119254-19, the removal will
         fail in non-global zones for systems installed with Solaris 3/05,
         3/05 HW1 or 3/05 HW2.  This issue is reported in bugid 6364817
         and is scheduled too be fixed in an upcoming revision of the patch.
 
         Patchid 119254-19 can be successfully removed from global zones.
         This issue does not affect any System which does not have any
         non-global zones defined.
 
         To workaround this problem, the System Administrator can manually
         login to each non-global zone and remove the patch explicitly from
         the non-global zone.
 
            # zlogin <zonename> patchrm 119254-19
 
         If one or more non-global zones were subsequently created after
         applying 119254-19 then 119254-19 cannot be removed from those
         zones.  This is documented in bugid 6392825. The only workaround
         is to uninstall the non-global zones that were installed after
         adding 119254-19.
 
NOTE 3:  Due to bug 6393109, this patchid 119254-19 cannot be installed on
         systems without SUNWzoneu package installed. This package is
         installed by default in all systems above SUNWCuser Meta Cluster.
 
         The affected Meta Cluster is SUNWCreq and target systems using this
         meta cluster cannot install patchid 119254-19 until this bug is
         resolved.
 
NOTE 4:  This patch includes fixes for bugids 6425837 (pkgcond
         is_netinstall_image is not working) and 6452983 (pkgcond is not
         accessing ROOTDIR in patch scripts) which fix the pkgcond command
         so that it will inherit the $ROOTDIR variable when being invoked
         from within a patch level script.  To get the complete fix, please
         also install the following patch:
 
         119081-24 (or greater)  CD-ROM Install Boot Image Patch
 
         See also bugid 6431490 (Ashanti upgrade should add the new and
         uprev'ed packages last in the process).
 
NOTE 5:  In order to get the complete Zones Upgrade Permanent Solution feature
         PSARC/2006/167 and PSARC/2003/460), the following additional patches
         need to be installed on the target system:
 
         119534-12 (or greater)  Flash Archive Patch
         121430-15 (or greater)  Live Upgrade Patch
         121428-07 (or greater)  Live Upgrade Zones Support Patch
         124630-09 (or greater)  System Administration Applications, Network,
                                 and Core Libraries Patch
 
NOTE 6:  If this patch will be used to patch the miniroot of a Net Install image, 
         the actions listed below must be performed before installing this patch.
 
         This patch contains files that are to be installed under the "var" 
         directory in the miniroot.  Since "var" is a symbolic link under the 
         miniroot, you must first set the following patchadd environment variable 
         to "true" in order to avoid clobbering the "var" symbolic link:
 
         # PKG_NONABI_SYMLINKS="true"
         # export PKG_NONABI_SYMLINKS

README -- Last modified date:  Friday, April 11, 2008

