1829012 Members
2327 Online
109986 Solutions
New Discussion

Packagin query

 
SOLVED
Go to solution
Srimalik
Valued Contributor

Packagin query

Hi,
I have a package which can be installed on PA as well as IA.
architecture HP-UX_B.11.23_IA/PA

The binaries will run using aries on IA systems.

Now I have to add a coreq for patch PHSS_35528 to this package.

I am not able to figure out how to do this. : (

Can I add it directly as a normal coreq and it will work. ( swinstall on PA will simply ignore the patch as it does not have anything for IA, and on IA the patch will be installed)

NOTE: both the patch and our package are present at same location

OR

Is there some Syntax to specify a coreq such that it comes only in effect when the package is being installedon an IA system.
Something like :
corequisite IA/PHSS_35528 OR corequisite PHSS_35528,IA


Thanks
Sri
abandon all hope, ye who enter here..
15 REPLIES 15
whiteknight
Honored Contributor

Re: Packagin query

Sri,

It will work, even though it is for IA to install, it will not do any harm to the system to PA if this patch install.

WK
Problem never ends, you must know how to fix it
Srimalik
Valued Contributor

Re: Packagin query

Hi, WK

I added the patch as a corequisite and tried to install the package on a PA system it failed with error as the dependency for the patch could not be resolved.

ERROR: "pa-hp-01:/": The software dependencies for 1 products or
filesets cannot be resolved.

Depot location had both the patch and my package. It simple ignored the patch as it is no ment for PA and gave the dependecy error.

What about the my second option Is there a syntax available to specify a dependency coupled with architechture?

Regards
Sri
abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor

Re: Packagin query

>Now I have to add a coreq for patch PHSS_35528 to this package.

Do you know you really need that patch?

>Can I add it directly as a normal coreq and it will work?

No, as you found out on PA.

>Is there some Syntax to specify a coreq such that it comes only in effect when the package is being installedon an IA system. Something like:
corequisite IA/PHSS_35528 OR corequisite PHSS_35528,IA

Exactly, something like that. :-)

If you can take apart the linker patch, you'll see where I had to add a conditional dependency on Aries.
http://www2.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_37201

I don't see in on the above link. I'll have to get it to you when I get to work.
Srimalik
Valued Contributor

Re: Packagin query

Hi, Dennis

Yes, I am sure that I need this patch for our PA binaries to run in emulation mode on IA.

I added this to the psf ( just copied stuf from the INDEX file of the patch you gave)

corequisites PHSS_35528,fa=HP-UX_B.11.31_IA

but its still not working :(, am I doing something wrong ?

Thanks
Sri


abandon all hope, ye who enter here..
Srimalik
Valued Contributor

Re: Packagin query

the added line is
corequisites PHSS_35528,fa=HP-UX_B.11.23_IA

and its not working :(.
I could not find any documentation to specify these kind of dependencies from Google. :(.

Dannis, Could you please point me to the related docs also?

-Sri
abandon all hope, ye who enter here..
Srimalik
Valued Contributor

Re: Packagin query

Apologies for the typo in your name Dennis. :)
abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor
Solution

Re: Packagin query

>but its still not working :(, am I doing something wrong?

Naturally, I said "something like that". :-)

>I could not find any documentation to specify these kind of dependencies from Google. :(.
>Could you please point me to the related docs also?

I couldn't find it last night. I don't think there is any external documentation with that info.

corequisite PHSS_35528.CORE2-SHLIBS,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA

The above should be one long line:
corequisite A | B

Where OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA is the official "dummy" entry for PA. And similarly for _IA. This fileset is always there.
Srimalik
Valued Contributor

Re: Packagin query

Thanks Dennis

It is working for PA system I have not tested it on a IA machine though. But looking at the technique followed I am sure it will work on IA as well.

What would you say about using OS-Core.CORE-KRN Instead of OS-Core.CORE2-KRN ?

In other words, are there any specific reasons to choose OS-Core.CORE2-KRN and NOT OS-Core.CORE-KRN?

Thanks
Sri
abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor

Re: Packagin query

>What would you say about using OS-Core.CORE-KRN Instead of OS-Core.CORE2-KRN?
>In other words, are there any specific reasons to choose OS-Core.CORE2-KRN

Because that is what the internal document says to use. And even after we used that where were warnings from our patch tools. So that fileset may be hardcoded to fix that new issue.
Srimalik
Valued Contributor

Re: Packagin query

This patch contains two filesets

# PHSS_36311 1.0 Aries cumulative patch
PHSS_36311.CORE2-64SLIB 1.0 OS-Core.CORE2-64SLIB
PHSS_36311.CORE2-SHLIBS 1.0 OS-Core.CORE2-SHLIBS
bash-2.05#

ours is a 32 bit application, so I think that installaing PHSS_36311.CORE2-SHLIBS 1.0 OS-Core.CORE2-SHLIBS will be sufficient.

IS there any possibility that 64 bit libs will be required(I know the answer is no)
but am I not sure if aries would need them in some case.

Sri
abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor

Re: Packagin query

>ours is a 32 bit application, so I think that installing PHSS_36311.CORE2-SHLIBS 1.0 OS-Core.CORE2-SHLIBS will be sufficient.

No, you should install the complete patch.

>IS there any possibility that 64 bit libs will be required (I know the answer is no)

You shouldn't try to nickel and dime patches, just install all of PHSS_35528 or PHSS_36311 and don't worry about the corequisite only depending on 32 bit.
Srimalik
Valued Contributor

Re: Packagin query

I have added this to my psf

corequisite PHSS_35528.CORE2-SHLIBS,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA
(for 11.31 systems I have added patch PHSS_36311, Rest of the post refers 11.23 only)

Should I add PHSS_35528.CORE2-64SLIB also as a corequisite or only one corequisite tag is sufficient? SD automatically selects and installs PHSS_35528.CORE2-64SLIB even if I specify only CORE2-SHLIBS.

I have never used a IA machine with 32 bit OS, do they exist? if yes, can both the filesets ( SHLIBS and 64SLIB) installed on that 32 bit system.

Note that I can not specify the corequisite as:
corequisite PHSS_35528 | a=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA

I have to specify the fileset and not the patch as a coreq.

If I enforce both the filesets in two coreq specs

like :

corequisite PHSS_35528.CORE2-SHLIBS,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA
corequisite PHSS_35528.CORE2-64SHLIB,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA


Will the package install on a 32 bit IA system? or will there be a problem as I am trying to enforce a 64 bit fileset on a 32 bit machine.


Sri
abandon all hope, ye who enter here..
Srimalik
Valued Contributor

Re: Packagin query

To make things simpler, I will put the question in other way

Which method of specifying coreqs is the best for this patch

1) Leave the patch installation to SD and add only one fileset as coreq to psf file

corequisite PHSS_35528.CORE2-SHLIBS,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA
This atomatically selects the other fileset

2) Enforce full patch installation and add both the filesets as coreqs to psf file
corequisite PHSS_35528.CORE2-SHLIBS,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA
corequisite PHSS_35528.CORE2-64SHLIB,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA

Both methods leave the system in same state(both patch filesets installed)

Thanks
Sri
abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor

Re: Packagin query

>Should I add PHSS_35528.CORE2-64SLIB also as a corequisite or only one corequisite tag is sufficient? SD automatically selects and installs PHSS_35528.CORE2-64SLIB even if I specify only CORE2-SHLIBS.

I wouldn't worry about it. That's what the linker has. You can check that by:
swlist -a prerequisite -a corequisite -l fileset -s $PWD/PHSS_37201.depot
It shows:
PHSS_37201.CORE-SHLIBS PHSS_35045.CORE2-SHLIBS,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA

>I have never used a IA machine with 32 bit OS, do they exist?

No, all new HP-UX versions on 11.23 and later are 64 bit.

>I have to specify the fileset and not the patch as a coreq.

That's probably why it is that way in the linker patch.

>If I enforce both the filesets in two coreq specs like:
corequisite PHSS_35528.CORE2-SHLIBS,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA

Yes, you could do that.

>Which method of specifying coreqs is the best for this patch
>1) Leave the patch installation to SD and add only one fileset as coreq to psf file
corequisite PHSS_35528.CORE2-SHLIBS,fa=HP-UX_B.11.23_IA | OS-Core.CORE2-KRN,fa=HP-UX_B.11.23_PA
>This automatically selects the other fileset

This is the key point.

>Both methods leave the system in same state (both patch filesets installed)

Using 1) seems easiest.
Srimalik
Valued Contributor

Re: Packagin query

I think , I have not more doubts. :)
Thanks for your help Dennis.

Sri
abandon all hope, ye who enter here..