Created attachment 449982 [details]
cmake cannot find R includes when /bin/sh is not bash. The failing command from build.log:
cd /var/portagetmp/portage/kde-apps/cantor-16.04.3/work/cantor-16.04.3_build/src/backends/R/rserver && /usr/bin/x86_64-pc-linux-gnu-g++ ... -I"/var/portagetmp/portage/kde-apps/cantor-16.04.3/work/cantor-16.04.3/src/backends/R/rserver/-n /usr/lib64/R/include" ... -o CMakeFiles/cantor_rserver.dir/rserver.cpp.o -c /var/portagetmp/portage/kde-apps/cantor-16.04.3/work/cantor-16.04.3/src/backends/R/rserver/rserver.cpp
In file included from /var/portagetmp/portage/kde-apps/cantor-16.04.3/work/cantor-16.04.3/src/backends/R/rserver/rserver.cpp:28:0:
/var/portagetmp/portage/kde-apps/cantor-16.04.3/work/cantor-16.04.3/src/backends/R/rserver/rcallbacks.h:28:15: fatal error: R.h: No such file or directory
There are two include dirs, separated by "-n", in one quoted -I argument. This is not the case if bash had been the target of the /bin/sh link while the make files were generated.
Created attachment 449984 [details]
failed build log (dash)
Created attachment 449988 [details]
successful build log (bash)
Created attachment 450930 [details, diff]
cmake/FindR.cmake calls "echo -n", but POSIX echo does not take any arguments.
Could you test the attached patch?
Patch works fine, thanks.
Thanks, fixed in 9be309db2b2c026522ff84601e8cef1c8a1eb9d3
Sorry to write about resolved bug, but someone upstream was interested: https://bugs.kde.org/show_bug.cgi?id=365897
Maybe it will be fixed there soon.