Closed looooo closed 3 years ago
is it possible to add some commands to remove these lines? I tried the following for linux which works for me:
sed -i '380,384d' ${PREFIX}/lib/cmake/vtk-9.0/VTK-targets.cmake
Doing the same for osx results in:
sed: -i may not be used with stdin
Maybe someoe of the core team can have a look at this issue, as this is a problem not only for this feedstock but a general issue with conda-build. Maybe there is a better way to avoid such paths. @conda-forge/core
Doing the same for osx results in:
sed: -i may not be used with stdin
Add sed
to the build dependencies to get GNU sed
instead of BSD sed
(which requires a suffix to -i
like -i.bak
).
thanks, yes I came to the same conclusion. Should we add this workaround to the vtk-recipe to avoid doing this on all the vt-dependent recipes?
Try building with new conda-build. Might be fixed there.
Is there handling for files taken from the $BUILD_PREFIX? We hit the same issue with the ROS packages here and there, and for linking we generally opted to patch CMake to not use the absolute path (just the library name). Not sure what to do about include paths, though. Maybe just not add them to the generated cmake because they should be found from the sys include directories anyways?
@isuruf which version should have the fix included? I would like to try.
Ping @conda-forge/vtk - I'm running into this problem in https://github.com/conda-forge/pcl-feedstock/pull/31
@Tobias-Fischer, try adding https://github.com/conda/conda-build/blob/1071bfe070c39dbfa5c12ded1942fd7e5326c7e0/tests/test-recipes/variants/31_variant_subkeys/conda_build_config.yaml#L11-L15 to recipe/conda_build_config.yaml
here
There are some wrong config paths in the cmake config files:
linux:
osx: