Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920023 - dev-lang/R-4.3.2: configure: error: which is required but missing
Summary: dev-lang/R-4.3.2: configure: error: which is required but missing
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: which-hunt
  Show dependency tree
 
Reported: 2023-12-15 11:01 UTC by Michał Górny
Modified: 2023-12-16 23:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/dev-lang:R-4.3.2:20231215-105952.log (dev-lang:R-4.3.2:20231215-105952.log,5.73 KB, text/plain)
2023-12-15 11:01 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-12-15 11:01:52 UTC
Created attachment 879476 [details]
/var/log/portage/dev-lang:R-4.3.2:20231215-105952.log

checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking for sed... (cached) /bin/sed
checking for which... no
configure: error: which is required but missing

!!! Please attach the following file when seeking support:
!!! /tmp/portage/dev-lang/R-4.3.2/work/R-4.3.2/config.log
Comment 1 Eli Schwartz gentoo-dev 2023-12-16 23:18:21 UTC
Having dealt with this before, I recall that a couple of years ago the R programming language provided a native, builtin function to detect the location of a command on $PATH. 

This is similar to how python has `shutil.which`.

The R programming language being the R programming language, the standard library function was, of course, a thin execve() wrapper around `/usr/bin/which`, truly a brilliant and innovative move for a ***standard library***.

I don't anticipate this having changed since then; the configure error is assuredly there to tell you that `which` is an expected runtime dependency. There's no actual solution here other than to add an RDEPEND.

Terribly unfortunate for the 3 users of R. :)