Re: Comment savoir si un kernel-patch est compatible ou non avec tell e ou telle version de noyau?
On Fri, Sep 06, 2002 at 08:40:28AM +0200, CAPRON Romain wrote:
> Bonjour,
>
> Demandez de l'aide hier concernant l'utilisation des kernel-patch-xxx.deb et
> je remercie tous ceux qui m'ont répondu, en particulier Xavier Poinsard :)
> Cependant, comment être sûr qu'un patch fourni par l'intermédiaire d'un
> package kernel-patchxxx soit compatible avec telle ou telle version de noyau
> ?
Le script d'application du patch doit faire cela. Par exemple pour le
patch lpp, il y a ceci :
# Environment variables that will impact this script:
# KPATCH_lpp
# if set to a kernel version for which you have a lpp patch,
# it will be used instead of the version for your kernel.
KVERSIONS=(2.4.17 2.4.18)
[...]
# If a specified version was asked and it was not found, stop here
if [ -n "$KPATCH_lpp" -a ${KVERSIONS[$IDX]} != "$KPATCH_lpp" ]
then
echo >&2 "Requested kernel version \`$KPATCH_lpp' not found for
patch lpp"
exit 1
fi
Par ailleurs dans la doc du paquet, il y a (fichier
README-kernelpatch.Debian) :
- for each patch you can set the KPATCH_<patchid> environment variable
to a specific kernel version, if you want to apply a patch that is not
declared to work on the current kernel. This can be useful if you
want to test a patch on a brand new kernel release that was not
published at the time of patch packaging. If the requested version is
not found, this patch application will fail.
Fred
Reply to: