OpenAFS Master Repository branch, master, updated. 01d390d0d022309d06760aac1373829a35a6d79c

Gerrit Code Review gerrit@openafs.org
Fri, 10 Jul 2009 06:58:29 -0700 (PDT)


The following commit has been merged in the master branch:
commit 01d390d0d022309d06760aac1373829a35a6d79c
Author: Aaron M. Ucko <ucko@debian.org>
Date:   Mon Jul 6 17:51:00 2009 -0700

    Build shadow header files when necessary on Linux
    
    The current kernel module build infrastructure relies on the ability to
    create symlinks from known directory names used in the AFS code to the
    actual locations of the kernel header files.  This breaks if there is no
    single kernel header tree and instead multiple trees are layered together
    by kbuild using compile-time -I include paths.
    
    Attempt to detect this case by seeing if linux/types.h is in the kernel
    header directory where we expect it.  If not, rather than creating
    symlinks for h, sys, and netinet, create directories and populate them
    with single-line headers that just include the corresponding linux/*.h
    header.  The list of headers for which to do this is generated dynamically
    by analyzing the AFS kernel source code and looking for relevant #include
    directives.
    
    This patch has been part of the Debian OpenAFS package since
    1.4.10+dfsg1-1.  The check for whether we have layered kernel header trees
    may be specific to Debian and may require modification later if other
    Linux distributions do something similar.
    
    FIXES 124583
    
    Reviewed-on: http://gerrit.openafs.org/6
    Verified-by: Russ Allbery <rra@stanford.edu>
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Verified-by: Derrick Brashear <shadow@dementia.org>

 src/libafs/make_kbuild_makefile.pl |   59 ++++++++++++++++++++++++++++++++---
 1 files changed, 54 insertions(+), 5 deletions(-)

-- 
OpenAFS Master Repository