OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_0b-15-g026d9fb

Gerrit Code Review gerrit@openafs.org
Mon, 12 Sep 2011 05:22:43 -0700 (PDT)


The following commit has been merged in the openafs-stable-1_6_x branch:
commit 026d9fb3b74ce49d3cfef47659bb05fc2ec77e51
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.
    
    Reviewed-on: http://gerrit.openafs.org/5305
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementix.org>
    (cherry picked from commit 1d6593e952ce82c778b1cd6e40c6e22ec756daf1)
    
    Change-Id: I4360eede894846a52c54c29486fa774bde3def5e
    Reviewed-on: http://gerrit.openafs.org/5397
    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