Boost logo

Boost-Build :

Subject: [Boost-build] b2 headers thinks AFS filesystem supports arbitrary hardlinks
From: Lars Viklund (zao_at_[hidden])
Date: 2013-12-09 10:55:03


Hi,

The AFS filesystem (as in OpenAFS) has some interesting quirks.
Among those is that it only allows hardlinks inside the same directory.

I suggest that the hardlink test should be augmented to test whether
hardlinks between entries of different directories is supported.

'./b2 headers' output head:
====8<====
Performing configuration checks

    - symlinks supported : yes
    - hardlinks supported : yes
...found 970 targets...
...updating 435 targets...
mklink-or-dir boost
mklink-or-dir boost/accumulators
mklink-or-dir boost/algorithm
link.hardlink boost/array.hpp
ln: failed to create hard link `boost/array.hpp' =>
`libs/array/include/boost/array.hpp': Invalid cross-device link

    ln -f "libs/array/include/boost/array.hpp" "boost/array.hpp"

...failed link.hardlink boost/array.hpp...
link.hardlink boost/asio.hpp
ln: failed to create hard link `boost/asio.hpp' =>
`libs/asio/include/boost/asio.hpp': Invalid cross-device link

    ln -f "libs/asio/include/boost/asio.hpp" "boost/asio.hpp"

...failed link.hardlink boost/asio.hpp...
====8<====

-- 
Lars Viklund | zao_at_[hidden]

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk