Software Package Builder 6.0 User's Guide, September 2009
Packaging Policies
Packaging policies are a set of rules that must be consistently followed to create a valid software
package. Packaging policies help ensure that the software package you create in SPB is consistently
named and structured.
SPB validates your PSF against packaging policies, eliminating the need for you to learn the
intricacies of software package structuring. By following a standard set of policies, you will
experience fewer problems and avoid longer test cycles and customer defects. Packaging policies
are implemented as Extensible Markup Language (XML) files. The default policies supplied with
SPB are located in /opt/spb/data and are named as follows:
• For HP-UX 11i v3 (B.11.31) - the default policy file is 113XPolicies_SD.xml
• For HP-UX 11i v2 (B.11.23) - the default policy file is 112XPolicies_SD.xml
• For HP-UX 11i v1 (B.11.11) - the default policy file is 11XPolicies_SD.xml
The following standard errors are displayed if the software package attribute values being
validated do not adhere to the packaging policies.
Table 2-4 Errors Related to Attribute Values
Error MessageDescriptionError Type
Invalid value "HP-UX_B.11.31_IA/PA"
for attribute "architecture" in
fileset Product1.FILESET1 on line
28. Depends upon
product.architecture value
"HP-UX_B.11.23_IA/PA".
SPB issues this error, if the attributes
are set with incorrect values. Incorrect
values may result because the value
does not fall within the allowed patterns
or the attribute depends on another
attribute and their values are not
compatible.
Incorrect Pattern
Invalid value "abc" for attribute
"tag" in vendor abc on line 2. The
value of this attribute did not
match one of the enumeration rules:
["HP" (case-sensitive) , "Symantec"
(case-insensitive) ].
SPB issues this error, if the attributes
are set with incorrect values. Incorrect
values may result if the value specified
does not match the enumeration rules.
Incorrect Enumeration
Invalid value "" for attribute
"title" in product Product1.
Required attribute not set.
SPB issues this error, if a required
attribute is not set.
Required attributes not set
Invalid value "12345" for attribute
"number" in product Product1 on
line 15. Forbidden attribute set.
SPB issues this error, if an attribute that
has been declared to be obsolete has
been set.
Forbidden (obsolete)
attributes set
Packaging Policy Rules related to requisites (corequisites and prerequisites) have been mandated
and SPB has been enhanced to enforce these rules. If the package being validated by the SPB tool
does not adhere to the packaging policy, SPB displays new errors. Customers must handle and
fix these errors for successful packaging of the applications/software.
HP-UX Packaging Policy related to requisites is changed effective from SPB release A.02.00.28.444.
Now, the requisite must be specified as SD-Product.SD-Fileset. Specifying
SD-Bundle.SD-Product or SD-Bundle.SD-Product.SD-Fileset or SD-Product is not
allowed. If the requisite is not specified as per the new policy, the following error message will
be displayed:
Invalid value "a.b.c" for attribute "prerequisites" in fileset
Product1.FILESET1. The requisite must be always specified as
SD-Product.SD-Fileset. Specifying SD-Bundle.SD-Product or
SD-Bundle.SD-Product.SD-Fileset or SD-Product by itself is not allowed.
24 Software Packaging