[OpenAFS] Re: RPM packaging suggestion

Axel Thimm openafs-info@openafs.org
Thu, 3 May 2007 02:03:31 +0200


--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 02, 2007 at 04:38:17PM -0500, Paul Johnson wrote:
> On 4/25/07, Axel Thimm <Axel.Thimm@atrpms.net> wrote:
> >On Sat, Apr 21, 2007 at 06:56:32PM -0500, Paul Johnson wrote:
> >> I've noticed that when the yum update runs, it replaces the
> >> openafs-kernel module, rather than just installing the new one.
> >> That's bad if I end up not keeping the new kernel. Other kernel module
> >> RPMS leave the old versions.
> >>
> >> I asked in the RPM list and the fix for that, at least on Fedora Core
> >> versions of linux, is to add this line
> >>
> >> Provides: kernel-modules =3D %{kernvers}
> >>
> >> In this way, yum/rpm knows to leave the module until the kernel itself
> >> is removed.
> >
> >That's not yet enough, it was shown last year, that any scheme not
> >having the uname -r in the name of the package (the rpm name as in
> >contrast to the rpm version/release) can only support the very latest
> >kernel.
> >
> >But ATrpms has kmdls (w/ the uname -r in name) and a yum plugin that
> >simply work. Check that out, if you like.
>=20
> I'm sorry to say that you are not correct.  Or, at least, I don't
> think so.

I love to be challenged. ;)

> Perhaps yum is better than it was, or the openafs spec file is
> different than you recall.

I never make stong statements unless I really know what I'm talking
about, check
http://fedoraproject.org/wiki/AxelThimm/kmdls#head-a61a3d3e1f7743ab6054a556=
3729fb83e30129ea
for the gory details. Any scheme not using uname-r in name is broken
when it comes to supporting more than the latest kernel version. You
can try all sorts of workarounds, but it is just against the nature of
rpm (and dpkg), and you will end at using uname-r in name for proper
operation.

> The only change in openafs.spec that I made was inserting this:
>=20
> rovides:         kernel-modules =3D %{kernvers}
>=20
> I rebuilt the openafs-kernel packages for 2 kernels and uploaded them
> to my yum server, and when I update my machine, it did an install, not
> an upgrade, of openafs-kernel when I ran "yum update".  Observe
>=20
> # rpm -q openafs-kernel
>=20
> openafs-kernel-1.4.4-2.6.20_1.2944.fc6_3fc6pj
> openafs-kernel-1.4.4-2.6.20_1.2948.fc6_3fc6pj
>=20
> My RPMs are named:
>=20
> openafs-kernel-1.4.4-2.6.20_1.2944.fc6_3fc6pj.i686.rpm
> openafs-kernel-1.4.4-2.6.20_1.2948.fc6_3fc6pj.i686.rpm

OK, now try the scenario where you want to upgrade both to 1.4.5 or a
simple security erratum of 1.4.4. Oops, only the latest kernel got
updated?
--=20
Axel.Thimm at ATrpms.net

--BXVAT5kNtrzKuDFl
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD4DBQFGOSbPQBVS1GOamfERApV6AJUWfLHH1QptYbt/qRrPFCSjIDHXAJ46kWt3
53gXwPcETmpRXVZhHHk0Cg==
=4zDk
-----END PGP SIGNATURE-----

--BXVAT5kNtrzKuDFl--