[OpenAFS-devel] Re: openafs spec-file kernel-detection

Alexander Bergolth leo@strike.wu-wien.ac.at
Mon, 22 May 2006 12:56:55 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/17/2006 07:44 PM, Derek Atkins wrote:
> Frank Bagehorn <FBA@zurich.ibm.com> writes:
>>/boot/config-%{kernvers} would work on Linux PPC...
> 
> Okay, I'll revert back to this (which is what I had originally).
> The question still remains whether to make this the ONLY kernel
> Requires method?

The only problem I see when using (only) file dependencies, is that some
rpm-repositories don't have dependencies on files included in their
index. E.g. it's an option to "genbasedir" when creating an apt-repository:

- -------------------- snip! --------------------
  --bloat            Do not strip the package file list, needed for some
                     distributions that use non-automatically generated
                     file dependencies
- -------------------- snip! --------------------

So when trying to install the kernel-module using apt without having the
corresponding kernel installed, apt won't be able to suggest the
appropriate kernel. (If the kernel is part of a repository that was
built without the --bloat option.)

But this is not a big problem, I guess.
And since using a requires dependency that works on all platforms will
simplify the spec-file, I'd tend towards making /boot/config... the only
kernel-dependency. But I don't really have a preference.

Cheers,
- --leo
- --
- -----------------------------------------------------------------------
Alexander.Bergolth@wu-wien.ac.at                Fax: +43-1-31336-906050
Zentrum fuer Informatikdienste - Wirtschaftsuniversitaet Wien - Austria

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEcZj2sYaksEkoAQMRAidQAJ9O/upSU3ZoUmmG3XZ43XxnU5HLnACgliZW
ouVZAh2MjrRL/PX2i2mimys=
=LaNR
-----END PGP SIGNATURE-----