On Fri, Nov 24, 2017 at 7:35 AM, Nathan Cutler <ncutler@xxxxxxx> wrote: > Background: I'm trying to build Ceph in OBS from the tarball generated by > make-dist. > > I noticed that Shaman builds download Boost from the Internet - this is not > an option in OBS because the build workers there do not have external > network connectivity. > > Examining make-dist, it seems very much to be downloading Boost and > including it in the tarball, but not in a way that convinces Ceph to not > download it again during the actual build. > > There are two problems that I can see: > > First, make-dist makes its final tarball by merging three tarballs into one, > and in the process ends up putting the boost code out-of-tree. This is > trivial to fix. > > Second, even when I fix that, BuildBoost.cmake ignores it because of this > line: > > if(EXISTS > "${PROJECT_SOURCE_DIR}/src/boost/libs/config/include/boost/config.hpp") > > There simply is no such subdirectory "include" under src/boost/libs/config > so the EXISTS conditional always evaluates to "false" and hence Boost always > gets downloaded from the Internet: > https://github.com/ceph/ceph/blob/master/cmake/modules/BuildBoost.cmake#L78-L85 > > Any hints will be greatly appreciated! It doesn't seem right that make-dist > goes to the trouble of downloading Boost and including it in the tarball, > only to have to re-download it at build time. Nathan, sorry for the trouble. i will take care of it. > > Nathan > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Regards Kefu Chai -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html