-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[R-package] installation via install.packages fails if /bin/sh is not bash (bashisms in configure) #6743
Comments
Thanks very much for the report! I'm very surprised that CRAN has not complained about this before... I know it checks scripts for POSIX compliance with Would you like to submit a pull request to fix this? |
On systems that did not have bash as /bin/sh this would end up causing strange compilation errors. Fixes microsoft#6743.
|
'+=' (VAR+=Value) is bash specific. '&>' redirect operator is as well. On systems that did not have bash as /bin/sh this would end up causing strange compilation errors. Fixes microsoft#6743.
'+=' (VAR+=Value) is bash specific. '&>' redirect operator is as well. On systems that did not have bash as /bin/sh this would end up causing strange compilation errors. Fixes microsoft#6743.
Great, thanks for finding this! My Alpine Linux system showed the same malloc compilation error when trying to |
Thanks for taking the time to write that and to go back and mark that other comment off-topic. We will not be able to get a release up to CRAN before Monday (saw your comment at fabsig/GPBoost#151 (comment) that they'll close for 2 weeks after that), but can try for one in January. There are many other fixes (many unrelated to the R package) that have piled up unreleased here in the last few months, so I was hoping to do that anyway. |
Description
An attempt to install lightgbm in an environment that has dash or some other posix compatible shell as /bin/sh will fail.
Reproducible example
Environment info
Reproduced in wolfi environment, but will reproduce anywhere where /bin/sh is not bash.
LightGBM version or commit hash: 4.5.0
Command(s) you used to install LightGBM
R -e "install.packages('lightgbm', version = '4.5.0', repos = 'https://cran.rstudio.com/')"
Additional Comments
Assignment with '+=' is not posix shell.
From the configure script:
The text was updated successfully, but these errors were encountered: