Operating System - HP-UX
1833184 Members
3051 Online
110051 Solutions
New Discussion

Re: Building a Patch with "swpackage"

 
Ramesh.K.R.
Regular Advisor

Building a Patch with "swpackage"

Hi,

We are using "swpackage" on HPUX-11.23 for building out product. Our product has 5 filesets. Each fileset consists of large number of files.
Now, let me come to my quistions:
1. How can we build a patch to our product with "swpackage" ? The change involves only a few files being modified in a single "fileset".
2. Once the patch is built & applied to the target machine, how can it be verified using "swlist" ??

Thanks & Regards,
Ramesh.K.R.
hai
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Building a Patch with "swpackage"

Here is how:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=959102

I think swlist commands will still work on a patch set packaged this way.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ramesh.K.R.
Regular Advisor

Re: Building a Patch with "swpackage"

Thanks, let me try it.

Regards,
Ramesh.K.R.
hai
Michael Roberts_3
Honored Contributor

Re: Building a Patch with "swpackage"

I think you are asking how to create a patch for your own application, not how to repackage patches built by HP correct?

In that case you will need to use the special patch attributes

is_patch=true
is_sparse=true

you will need to set the ancestor of this patch to be the product.fileset that you are patching.

You can look into the attributes that HP uses to create patches by using:
swlist -v PHCO_nnnnn |more

When you patch is applied to the system you can use
'swverify MyPatch' to check it, you can
also use
'swlist -a patch_state MyPatch' to check it.


You might find Software Package Builder useful in creating the PSF. SPB is available from HP on the OE media and from the web:
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SwPkgBuilder
etouq ot hguone revelc ton m'i
Ramesh.K.R.
Regular Advisor

Re: Building a Patch with "swpackage"

Hi Michael,

You are absolutely right. I was looking for creating a patch to our own customized product. Not for HPUX. Thanks for your inputs. I will get back to you, in case i need more info.

Regards,
Ramesh.K.R.
hai
Arunvijai_4
Honored Contributor

Re: Building a Patch with "swpackage"

Ramesh, You can go through this chpater from SD guide for more information about creating your own patches,

http://docs.hp.com/en/B2355-90789/ch05s04.html

[Software Distributor Administration Guide for HP-UX 11i v2 > Chapter 5. Managing Patches
Packaging Patch Software]

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Ramesh.K.R.
Regular Advisor

Re: Building a Patch with "swpackage"

Thanks Arun. I already have the document & i am working on the PSF.

Regards,
Ramesh.K.R.
hai
Armin Kunaschik
Esteemed Contributor

Re: Building a Patch with "swpackage"

There is a HP product called swpackagebuilder at
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SwPkgBuilder

You can use it to analyze exisiting packages or to create your own.
There is also a tutorial and a comprehesive help file.

My 2 cents,
Armin
And now for something completely different...
Ramesh.K.R.
Regular Advisor

Re: Building a Patch with "swpackage"

Armin -- Thanks for that info.

Regards,
Ramesh.K.R.
hai
Scot Bean
Honored Contributor

Re: Building a Patch with "swpackage"

" 2. Once the patch is built & applied to the target machine, how can it be verified using "swlist" ?? "

- use 'swlist' to see if your patch installed
- use 'swverify' on the patch and the application to see if everything looks OK
- use 'check_patches' for a hardcore verification
- be sure to test the application, make sure the fix worked
- go look at the files you patched, are the patched versions installed?
- just for fun, try 'swremove' on the patch, does it rollback nicely?