Software Package Builder 7.0 User's Guide, March 2010, 5992-5179
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.
Packaging Policy Rules related to requisites (corequisites and prerequisites) have been mandated
and Software Package Builder has been enhanced to enforce these rules. If the package being
validated by Software Package Builder tool does not adhere to the packaging policy, SPB will
display new errors. Customers must handle and fix these errors for successful packaging of the
applications/software.
The following standard errors will be displayed if the software package attribute values being
validated does not adhere to the packaging policy.
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 valuesare 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 because the
enumeration is incorrect.
Incorrect Enumeration
Invalid value "" for attribute
"title" in product Product1.
Required attribute not set.
SPB issues this error if an attribute is
not set with an appropriate object level.
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
Invalid value "false" for attribute
"is_drd_safe" in product Product1
on line 14. Forbidden attribute
set.
SPB issues this error if an attribute is set
at a wrong object level.
For Example:
The attribute is_drd_safe can be set
at the fileset object level of the
software package.
If this attribute is set at any other object
level other than the fileset level then the
error is displayed.
Forbidden attributes set at
wrong level
HP-UX Packaging Policy related to requisites has been changed. Now 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. 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.
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, problems that can turn into longer test cycles and customer defects.
24 Software Packaging