macos launchd be more patient
[openafs.git] / src / packaging / RedHat / RPM-build-notes
1 Beginning with the 1.4.5 release, OpenAFS's prebuilt binaries use a new
2 mechanism for packaging kernel modules on Fedora Core (all versions)
3 and RHEL 5 (and derivatives). This new mechanism allows the
4 installation of modules for multiple kernel variants simultaneously,
5 and is identical to the technique used by Fedora and Red Hat's own
6 out of tree kernel modules.
7
8 The difference is that instead of a single 'openafs-kernel' module,
9 multiple kmod-openafs-<variant> RPMs are produced. When manually
10 upgrading to OpenAFS 1.4.5, it may be necessary to remove any openafs-
11 kernel modules left behind by your old installation, and to ensure
12 that the appropriate kmod-openafs module is installed.
13
14 If you wish to build 'kmod' modules for new kernel release, this may
15 be done by rebuilding the SRPM  with 'fedorakmod' defined, and the
16 'kvariants' parameter set to the list of kernel variants you wish to
17 build modules for (a kernel-devel package must be installed for each
18 of these variants). Note that supplying '' as a variant will build
19 for a normal kernel. The 'kernvers' variable can be set to specify 
20 what kernel release version you wish to build for.
21
22 For example:
23        rpmbuild -bb --define "fedorakmod 1" \
24             --target i686 \
25             --define "build_modules 1" \
26             --define "kvariants '' PAE"  \
27             openafs.spec
28
29 would build a kernel module for the normal and PAE variants of the
30 currently running kernel.
31
32 Old-style packages may still be built in the same way as previous
33 releases. However, note that you must use userland RPMs which match
34 the packaging of your kernel module. Old style kernel modules will
35 not work with a set of userland RPMs which expect kmod-style packages.