OpenAFS Master Repository branch, openafs-stable-1_4_x, updated. 58a01f81c6abc1c673fe50486b839d0b27da2b4d

Gerrit Code Review
Tue, 3 Nov 2009 19:33:19 -0800 (PST)

The following commit has been merged in the openafs-stable-1_4_x branch:
commit 58a01f81c6abc1c673fe50486b839d0b27da2b4d
Author: Aaron M. Ucko <>
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
    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
    Verified-by: Russ Allbery <>
    Reviewed-by: Derrick Brashear <>
    Verified-by: Derrick Brashear <>
    (cherry picked from commit 01d390d0d022309d06760aac1373829a35a6d79c)
    Change-Id: I5a5ba79e88f8aafc07502c7d1c82058184c01da0
    Tested-by: Russ Allbery <>

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

OpenAFS Master Repository