FS#70532 - [r] 4.0.5-3 mistakenly removes "which" package from dependencies
Attached to Project:
Arch Linux
Opened by Sibo Dong (flyingpig) - Wednesday, 21 April 2021, 21:51 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 22 April 2021, 06:58 GMT
Opened by Sibo Dong (flyingpig) - Wednesday, 21 April 2021, 21:51 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 22 April 2021, 06:58 GMT
|
Details
Description:
It seems that r 4.0.5-3 underwent a "PKGBUILD overhaul" which removed a number of dependencies, one of which was the "which" package. However, I believe this dependency was removed in error since R 4.0.5 still depends on "which." This is apparent when R is launched, as error messages will appear should the "which" package not be installed. Package versions: * r 4.0.5-3 * which 2.21-5 (uninstalled due to dependency changes in r 4.0.5-3) Steps to reproduce: 1. Launch R by typing R in a shell. 2. Observe messages relating to errors in running commands of the form "system(paste(which, ...), ...)," likely due to the removal of "which" as dependency for r 4.0.5. Attached to this report is a snippet of the error messages encountered upon launching R. |
This task depends upon
Closed by Antonio Rojas (arojas)
Thursday, 22 April 2021, 06:58 GMT
Reason for closing: Fixed
Additional comments about closing: r 4.0.5-4
Thursday, 22 April 2021, 06:58 GMT
Reason for closing: Fixed
Additional comments about closing: r 4.0.5-4
R-log.txt
FS#62770-- it must be re-added.While I'm at it, I'd like to repeat the comment I made there:
Maybe it would be a good idea to submit an upstream bug report -- the "which" program is not portable, and its functionality can be done much more efficiently in-process, see for example the python shutil.which() implementation: https://github.com/python/cpython/blob/9e3c4526394856d6376eed4968d27d53e1d69b7d/Lib/shutil.py#L1293
In general the "which" program is horrible and should be avoided at all costs, see for example https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then/86029#86029
What you're essentially saying is that R is terminally broken on many commercial Unixes, where that command will return junk.