Build fails with errors: cmake was unable to find R.h. Reason is 'echo -n' in FindR.cmake. Simply changing it to printf fixes issue. Reproducible: Always Steps to Reproduce: 1. Set /bin/sh to be dash 2. Try to build cantor Actual Results: Build fails. Error about cmake not finding R.h. Expected Results: Cantor builds without problems I'm using Gentoo, cmake 3.6.0, dash 0.5.8.2, cantor 16.04.3.
Created attachment 100196 [details] Change 'echo -n' to 'printf' It works as portage patch, so maybe paths should be changed.
Is R Backend working for you?
Hi. I forgot about it, because someone in my distro (Gentoo) used same kind of patch for version 17: https://bugs.gentoo.org/show_bug.cgi?id=596940 according to POSIX echo does not take any arguments, but cmake/FindR.cmake still contains: sh -c "echo -n $R_INCLUDE_DIR" at https://github.com/KDE/cantor/blob/master/cmake/FindR.cmake#L34 There are two options: 1. go POSIX and change it to: sh -c "printf $R_INCLUDE_DIR" 2. Bash is installed on most systems, so change it to: bash -c "echo -n $R_INCLUDE_DIR"
Thanks jarymut, I will address it soon. But in a side question, is R backend working to you in Gentoo? Several distros as problem with this backend right now (bug 351871), so I would like to know if it works for Gentoo. Thanks.
Sorry, I misunderstood. Nope, it is stuck on "initialising session". I don't know if it has worked before. I'm using LXQt, KDE was for other users. And I simply installed "all KDE stuff" and noticed cantor did not compile.
Git commit 01cb9b95dce72092231594a44b6dcfb913d475e5 by Filipe Saraiva. Committed on 29/04/2017 at 13:37. Pushed by filipesaraiva into branch 'master'. Put the FindR.cmake in a POSIX compatible way M +1 -1 cmake/FindR.cmake https://commits.kde.org/cantor/01cb9b95dce72092231594a44b6dcfb913d475e5