[pca] 124867-15 fails dependency check
David Gameau
David.Gameau at unisa.edu.au
Fri Aug 6 11:46:16 CEST 2010
Martin,
> Hi David,
>
> > It looks as though the latest revision of this patch has an error in
> > the dependency checking:
>
> Can you show the complete pca command (and possible "ignore" settings
> in pca configuration files) you used which caused the error?
>
Sure (once I unwind my shell-code).
bin/pca --install missing --xrefdir=patchdiag.xref.d/latest --nocheckxref \
--patchurl=file:/export/patches/Solaris/allpatches --root=/.alt.OS-Aug-04-10 \
--syslog=user --cffile=etc/pca_ignore.conf"
With 'etc/pca_ignore.conf' consisting of:
ignore=137294
> > Comparing it with the rev-14 patch highlights the probable error:
> > mpx# diff 124867-14/SPROcc/pkginfo 124867-15/SPROcc/pkginfo
> > 17d16
> > < SUNW_REQUIRES=124861-07 126495-03
>
> That's fine, actually. The patchdiag.xref file lists the same
> dependencies for 124867-15:
>
> 124867|15|Aug/04/10| | | | |Unbundled|sparc;124861-07;126495-03;|...
>
Ah, my apologies here, my diff-explanation wasn't very clear. It appears
that an entry in the pkginfo has changed between 124867-14 and -15:
124867-14:
SUNW_REQUIRES=124861-07 126495-03
124867-15:
SUNW_REQUIRES='124861-07 126495-03'
which does seem to match up with the error message.
0 For patch 124867-15, required patch '124861-07 does not exist.
> So pca should have tried to install 124861 first, if it's missing from
> your system. It definitely sees the dependency:
>
> $ pca -H -l 124867
> 124861 -- < 19 --- 130 Sun Studio 12: Compiler Common patch ...
> 126495 -- < 04 --- 361 Sun Studio 12: Patch for debuginfo handling
> 124867 -- < 15 --- 2 Sun Studio 12: Patch for C 5.9 compiler
>
As a side-note, the actual dependency was already on the system:
hebe> showrev -p | grep '^Patch: 124861'
Patch: 124861-02 Obsoletes: Requires: Incompatibles: Packages: SPROlang, SPROlangx
Patch: 124861-15 Obsoletes: Requires: Incompatibles: Packages: SPROlang, SPROsunms, SPROmrcom, SPROlangx
> > Also, I attempted to use the 'ignore=124867-15' syntax to skip over
> > applying this patch, but it didn't attempt to install the 124867-14 patch,
> > as I would have hoped. What would be the required syntax for supporting
> > such an> operation?
>
> I know what you're after, but unfortunately it doesn't work like that.
> As the xref file contains no information about old patch revisions, it
> doesn't know what patch preceded 124867-15. It could be 124867-14, but
> also e.g. 124867-13 (revisions are skipped sometimes) or a completely
> different patch ID (sometimes a revision which is not 01 is the first
> one of a patch to be published).
>
> Martin.
Yeah, after digging around in the patchdiag.xref a bit more, I realised that
that 'previous patch' information wasn't there.
David.
__
David Gameau
ISTS - Systems Infrastructure
University of South Australia
email: David.Gameau at UniSA.edu.au
phone: +61 8 8302 3533
fax: +61 8 8302 5800
More information about the pca
mailing list