Time for Sun to retire smpatch

Ugh — I went to patch my machines today, and it looks like the smpatch(1m) utility is broken again:

Nov 25 17:18:50 tigger root: [ID 702911 user.crit]  => com.sun.patchpro.interpreter.PatchListExpressionTree@128635 <=Internal error within exression Interpreter... 
Nov 25 17:18:50 tigger root: [ID 702911 user.crit]  => com.sun.patchpro.interpreter.PatchListExpressionTree@128635 <=com.sun.patchpro.interpreter.ParseException: Encountered "haspackage " SUNWust1 11.10.0,REV=2005.08.10.02.13" at line 1, column 2.
Nov 25 17:18:50 tigger Was expecting one of:
Nov 25 17:18:50 tigger     "\n" ...
Nov 25 17:18:50 tigger      ...
Nov 25 17:18:50 tigger      ...
Nov 25 17:18:50 tigger root: [ID 702911 user.crit]  => com.sun.patchpro.interpreter.PatchListExpressionTree@128635 <=    "haspackage"  ...
Nov 25 17:18:50 tigger     "haspackage" """  """ ...
Nov 25 17:18:50 tigger     "haspatch" ...
Nov 25 17:18:50 tigger     "hasexactpatch" ...
Nov 25 17:18:50 tigger     "haspatchbasecode" ...
Nov 25 17:18:50 tigger root: [ID 702911 user.crit]  => com.sun.patchpro.interpreter.PatchListExpressionTree@128635 <=    "isosname" ...
Nov 25 17:18:50 tigger     "isosversion" ...
Nov 25 17:18:50 tigger     "isplatform" ...
Nov 25 17:18:50 tigger     "isarchitecture" ...
Nov 25 17:18:50 tigger     "hasrealization" ...
Nov 25 17:18:50 tigger root: [ID 702911 user.crit]  => com.sun.patchpro.interpreter.PatchListExpressionTree@128635 <=    "hasexactrealization" ...

I appreciate what Sun is trying to do with this utility, but it is causing users and administrators a lot of pain. If anyone from Sun is reading this, can you please revert back to Recommended patch clusters until smpatch is permanently fixed?

2 thoughts on “Time for Sun to retire smpatch”

  1. Yeah, I have been having lots of fun with smpatch as well. But I would still rather have a working smpatch than go back to cluster patching. smpatch saves me mega time and reduced planning cycles. Sun: Just fix it! Or at least make it fail gracefully..

    i.e.
    > smpatch analyze

    The online sun patching site https://updateserver.sun.com is currently offline from 10:00 GMT – 14:00 GMT Wednesday Nov 30 2005. For more information check the updateserver status page at https://sun.com/updatestatus

  2. Indeed, smpatch is disgusting. I can’t think of anything Sun has ever produced that’s been anywhere near as bad.

    Why on Earth is the damn thing written in Java? The Java dependency chain in Sol 10 is *huge*, and I can’t really believe cross-platform write-once-run-anywhere portability is particularly useful in a tool that exists solely to patch one version of Solaris.

    PCA all the way, even if it does sometimes want to apply a Solaris 10 kernel patch to my Solaris 9 boxes!

Leave a Reply

Your email address will not be published. Required fields are marked *