[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: kernel-devel: should yum install, not update?



Le samedi 22 janvier 2005 Ã 15:22 -0500, Jeff Spaleta a Ãcrit :
> Maybe  Dave Jones can be poked into making a comment about this.
> 

Maybe he will want to change "Provides: kernel = %{version}" to
"Provides: kernel = %{version}-%{release}".

Example :
[admin one i386]$ rpm -q --provides -p kernel-2.6.10-1.741_FC3.i686.rpm
kernel = 2.6.10
kernel-drm = 4.3.0
kernel = 2.6.10-1.741_FC3

If a package provide "kernel = 2.6.10-1.741_FC3" it already provides
"kernel = 2.6.10".

[admin one i386]$ rpm -q --requires -p kernel-module-unicorn-atm-0.8.7-mat.3_2.6.10_1.741_FC3.mat.1.i686.rpm
/bin/sh
/sbin/depmod
kernel = 2.6.10-1.741_FC3.mat.1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1

This package requires "kernel = 2.6.10-1.741_FC3.mat.1" but all
kernel-2.6.10* from Fedora provide "kernel = 2.6.10" (that is "kernel =
2.6.10-*").
So any kernel-* from Fedora provide the requirement for
"kernel = 2.6.10-1.741_FC3.mat.1".


Every time a new kernel is released, I apply this little patch :
--- old/kernel-2.6.spec  2005-01-23 01:43:02.909909259 +0100
+++ new/kernel-2.6.spec  2005-01-23 01:43:33.604401005 +0100
@@ -161,7 +161,6 @@
 #ExclusiveArch: noarch %{all_x86} x86_64 ppc64 ppc
 ExclusiveArch: noarch %{all_x86} x86_64
 ExclusiveOS: Linux
-Provides: kernel = %{version}
 Provides: kernel-drm = 4.3.0
 Prereq: %{kernel_prereq}
 Conflicts: %{kernel_dot_org_conflicts}
@@ -381,7 +380,7 @@
 Summary: The Linux kernel compiled for SMP machines.

 Group: System Environment/Kernel
-Provides: kernel = %{version}
+Provides: kernel = %{version}-%{release}
 Provides: kernel-drm = 4.3.0
 Prereq: %{kernel_prereq}
 Conflicts: %{kernel_dot_org_conflicts}

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]