Operating System - HP-UX
1833235 Members
2666 Online
110051 Solutions
New Discussion

determining what patches have changed the library files

 
P. Prinsloo
Advisor

determining what patches have changed the library files

If there someone who can tell me how to determine what patch changed the library file ??
Wally
5 REPLIES 5
Christian Gebhardt
Honored Contributor

Re: determining what patches have changed the library files

Hi

swlist -l file | grep

Chris
S.K. Chan
Honored Contributor

Re: determining what patches have changed the library files

Looking at the library file using "what" command does not tell you that, so the only way is to examine the README file in ..
/var/adm/products//pfiles
which is actually the description file of the patche that you got installed. The patch description file will show which files will get overwritten when you install it.
P. Prinsloo
Advisor

Re: determining what patches have changed the library files

Thanks that seems to work, but about 6 months ago I had a problem with a unresolved symbol, someone on the forum showed me how to view the library files and in that way determine which patch had changed the file.
Stupid me - I lost the procedure.
Wally
Jean-Louis Phelix
Honored Contributor

Re: determining what patches have changed the library files

Hi,

Not so easy, because if a patch delivers only an object file, you will find the objetc name preceded with /. For example, PHKL_18543 on HP-UX 11.00 modifies /usr/conf/lib/libhp-ux.a by delivering a new spp_sim_disk.o. In swlist -l file you will find :

PHKL_18543.CORE2-KRN: /spp_sim_disk.o

If you look in /var/adm/sw/products/PHKL_18543/CORE2-KRN/INFO, you will find :

file
path /spp_sim_disk.o
type a
size 14184
cksum 867838125
mode 0444
uid 2
gid 2
owner bin
group bin
mtime 930064312
archive_path /usr/conf/lib/libhp-ux.a

Which means that this object has to be put in /usr/conf/lib/libhp-ux.a. So you will have to write a nice shell script to find it ...

Another solution would be to use grep on README files. Each patch delivers a README file (/var/adm/product/PHxxx/pfiles/README). In this file, you get a description of corrected bugs and the list of patch objects in a more readable format. In our case, you will find :

867838125 14184 /usr/conf/lib/libhp-ux.a(spp_sim_disk.o)

First numbers are output of cksum on the object. So in this case, the required script will be easier, something like

grep library /var/adm/products/PH*/pfiles/README

Regards,

Jean-Louis.
It works for me (© Bill McNAMARA ...)
P. Prinsloo
Advisor

Re: determining what patches have changed the library files

thanks I will try these suggestions
Wally