On Mon, 2008-05-12 at 21:10 +0530, S h i v wrote:
> >  When building SFE packages on Solaris 10u4 x86 sometimes
> >  pkgtool may fail to apply the package due to some attribute change,
> >  like in the example below.  Then I just pkgadd it manually.
> >
> 
> While doing a pkgadd manually does result in successful installation,
> fixing the spec file might be a better option.
> Failure to install due to attribute change indicates the default OS
> attributes are different from what is indicated in %files section of
> the spec file, it is quite likely that the entry inside spec file
> needs a fix. Fixing this should yield a spec file using which the
> package may be installed via pkgtool.

The problem is when attributes are different between s10 and nevada
or OpenSolaris.  You can either use %if statements (and cypromis keeps
nagging me to add something like %ifos solaris2.10) or you can
use "?" in the attributes, e.g.

%attr (0755, ?, ?) %{_libdir}/foo

(Note that this is not accaptable for packages integrated into
Solaris).

Laca



Reply via email to