OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1601-g1d6593e

Gerrit Code Review gerrit@openafs.org
Mon, 5 Sep 2011 06:07:47 -0700 (PDT)


The following commit has been merged in the master branch:
commit 1d6593e952ce82c778b1cd6e40c6e22ec756daf1
Author: Russ Allbery <rra@stanford.edu>
Date:   Tue Aug 23 12:50:55 2011 -0700

    Generate stub header files for h/*.h files included in libuafs
    
    Previously, the libuafs build created a symlink from h to
    /usr/include/sys so that files included under h/* by kernel source
    files could be found in the normal system header location.  However,
    this assumption about the system header location is no longer valid.
    Debian and Ubuntu systems with multiarch have arch-specific include
    paths so that the same host can be used to build 32-bit and 64-bit
    binaries with different system headers, and those include paths are
    automatically searched by the compiler.  This means some standard
    headers are no longer found directly in /usr/include/sys but are
    instead found in /usr/include/<arch>/sys.
    
    Using a stripped-down version of similar code for building the kernel
    module on Linux, create an h directory containing stub header files
    that just include the relevant system <sys/*.h> header file instead.
    This allows the compiler to implement its normal internal header
    search algorithm.
    
    Also remove all the other symlinks, such as sys, netinet, etc., that
    just pointed to the same directories under /usr/include.  We can assume
    the normal compiler search algorithm will find these headers without
    requiring this assistance.
    
    Change-Id: Ie19d12e3d3f0068c88d0a9c83f6a96d51baee018
    Reviewed-on: http://gerrit.openafs.org/5305
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementix.org>

 src/libuafs/Makefile.common.in |   17 +++++---------
 src/libuafs/make_h_tree.pl     |   45 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 11 deletions(-)

-- 
OpenAFS Master Repository