gerddie / gentoo-imaging

Gentoo overlay for image processing software
GNU General Public License v3.0
6 stars 6 forks source link

dev-cpp/CastXML-0.0.0_pre6: build error: file INSTALL cannot find "/usr/lib/clang/4.0.0/include" (hard-coded dependency) #17

Closed sphakka closed 6 years ago

sphakka commented 6 years ago

I have sys-devel/llvm-3.9.1-r1 but CastXML is looking for v4.0.0 (which is BTW masked in my Funtoo tree nokit / master). The dependency is not correctly expressed as it is hard-coded in the ebuild:

src_configure() {
    local mycmakeargs=(
        -DLLVM_DIR=/usr/lib/llvm/4/lib64/cmake/llvm/
        -DCLANG_RESOURCE_DIR=/usr/lib/clang/4.0.0
    )
    cmake-utils_src_configure
}

The good news is that CastXML builds successfully against llvm-3.9.1-r1.