[pca] Patch blacklist?
David Stark
dave at davidstark.name
Wed Apr 23 18:56:21 CEST 2008
Jeff Wieland wrote:
> You should be able use something like this in your .pca file:
>
> ignore=116338
> ignore=118383
> ignore=125698
According to the online docs, if any of the 'ignore'd patches are
required by other patches in the install list, then they'll be
installed, regardless of the ignore= .
While I don't think this will be a problem for my issue in the short
term, it would still be useful to be able to fully blacklist patches as
required.
>
> We had to add these since they started showing up on our Solaris 8
> boxes.
>
> We use a shell script wrapper around pca that set things up for our
> Solaris 8 and 10 hosts:
>
> #!/bin/ksh
> /bin/uname -r | read UNAME_R
> CFFILE=""
> case "$UNAME_R" in
> 5.8) export PCA_PATCHADD=/usr/local/sbin/patchadd
> export PCA_WGET=/usr/local/bin/wget
> ;;
> esac
>
> if [ -r "/usr/local/lib/pca/pca-$UNAME_R.conf" ]; then
> CFFILE="--cffile=/usr/local/lib/pca/pca-$UNAME_R.conf"
> fi
>
> exec /usr/local/lib/pca/pca $CFFILE "$@"
>
> We use a hacked version of patchadd that avoids the fgrep
> "too many patterns" error by using /usr/xpg4/bin/fgrep.
> Then you just put whatever O/S-specific defaults you want
> in, for instance, usr/local/slib/pca/pca-5.10.conf.
>
> David Stark wrote:
>>> Hi,
>>
>> Hi.
>>
>>> I have this in my .pca file:
>>>
>>> pattern=!VERITAS|sendmail
>>>
>>> This says "use any patch NOT(VERITAS or sendmail)". I don't want any
>>> patch that touches VERITAS or sendmail code, so this excludes these
>>> patches via
>>> the "not" (!) argument. Works great for me.
>>
>> Ah. Missed the -p/--pattern option. Looks like this should be workable
>> with:
>>
>> pattern=!Intranet Input Method Framework
>>
>> It would be handy (and less prone to false positives?) if there was an
>> option to match on the patch ID as well, but I think we're good to go
>> for now.
>>
>> Cheers Jeff.
>>
>>> Jeff Earickson
>>> Colby College
>>
>> Dave
>>
>>> On Wed, 23 Apr 2008, David Stark wrote:
>>>
>>>> Date: Wed, 23 Apr 2008 15:53:47 +0100
>>>> From: David Stark <dave at davidstark.name>
>>>> Reply-To: "PCA (Patch Check Advanced) Discussion"
>>>> <pca at lists.univie.ac.at>
>>>> To: pca at lists.univie.ac.at
>>>> Subject: [pca] Patch blacklist?
>>>>
>>>> Hi all.
>>>>
>>>> Is there a way of completely blacklisting a patch in PCA without
>>>> editing the script itself? --ignore (according to the docs, I've not
>>>> had a chance to test) will apply an ignored patch if it's a
>>>> dependency of another patch, so that may not work for us.
>>>>
>>>> The patches in question are the 120410-xx series - these cause our
>>>> Oracle forms compiles to core dump, so we would like to exclude
>>>> these until we can get a fix from Sun or Oracle.
>>>>
>>>> Cheers!
>>>>
>>>> Dave
>>>>
>>>>
>
>
More information about the pca
mailing list