Download openafs-kernel-source rpm and install on build system. The SRPM from https://linat05.grid.umich.edu/pub/SLC/4x/custom/SRPMS/openafs-1.4.6-1.1_AGLT2.src.rpm will build one basically configured for AGLT2 (perhaps nothing more than setting ThisCell and making sure we are right in CellServDB). To compile a newer version replace the openafs source with a newer tarball and edit the spec as may be needed.

  1. For following commands assume we cd to /usr/src/redhat/SPECS after installing SRPM
  2. Need to define several variables on the command line for rpmbuild:
  3. rpmbuild -bb --define "build_userspace 0" --define "build_modules 1" --define "kernvers x.x.x-x" openafs.spec
  4. Kernvers is not required. Default is to build the current running version (? I think)
  5. Use "-ba" (build-all) or "-bs" (build source) to get a new SRPM if this is a new version or has other changes to the spec
  6. [root@cc-100-0 redhat]# rpmbuild -bb --define "build_user_space 0" SPECS/openafs.SLx.spec 
    error: Failed build dependencies:
            flex is needed by openafs.SLx-1.4.7-68.x86_64
            kernel-smp-devel = 2.6.9-78.0.1.EL is needed by openafs.SLx-1.4.7-68.x86_64
            autoconf is needed by openafs.SLx-1.4.7-68.x86_64
            automake is needed by openafs.SLx-1.4.7-68.x86_64
            krb5-devel is needed by openafs.SLx-1.4.7-68.x86_64
    
    

    Can also skip installing SRPM step and just do:

    rpmbuild --rebuild --target=`uname -m` --define "build_userspace 0" --define "build_modules 1" openafs-1.4.6-1.1_AGLT2.src.rpm
    

    Produces /usr/src/redhat/RPMS/x86_64/openafs-kernel-smp-1.4.6-...rpm

    You should be able to install that rpm (try rpm -i --oldpackage), start the service (service openafs-client start) and see stuff in /afs...

    -- TomRockwell - 20 Mar 2009
Topic revision: r6 - 16 Oct 2009, TomRockwell
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback