OpenWrt/LEDE Project

  • Status New
  • Percent Complete
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity High
  • Priority Very Low
  • Reported Version openwrt-21.02
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by damnms - 13.05.2021
Last edited by Baptiste Jonglez - 18.06.2021

FS#3809 - v21.02.0-rc1 reports false missing "which" on fedora 34

i use fedora 34, installed the required software and “which” is available on the command line

[oli@lucy openwrt]$ which which | grep which
which ()

eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"

but when i run “./scripts/feeds update -a” i get:
hecking ‘perl’... ok.
Checking ‘python2-cleanup’... ok.
Checking ‘python’... ok.
Checking ‘python3’... ok.
Checking ‘git’... ok.
Checking ‘file’... ok.
Checking ‘rsync’... ok.
Checking ‘which’... failed.
Checking ‘ldconfig-stub’... ok.

Build dependency: Please install ‘which’

Prerequisite check failed. Use FORCE=1 to override.
gmake: *** [/home/oli/openwrt/include/ staging_dir/host/.prereq-build] Fehler 1

[oli@lucy ~]$ rpm -qa | grep which

corrected the meta infos of this ticket and copied it from

plntyk commented on 24.05.2021 18:53

replicated it on my Fedora 34 Install

Hack: changing which to /usr/bin/which fixes it ( changes in include/

seems to be a case of shell builtin vs. external program ?

plntyk commented on 25.05.2021 11:25

further investigated this

Fedora 30: OK
Fedora 31: OK
Fedora 32: OK
Fedora 33: OK
Fedora 34-LiveCD: OK
Fedora 34 (installed & updated: FAIL

which 2.24-24 is ok (vanilla live iso: Fedora-Workstation-Live-x86_64-34-1.2.iso=
which 2.24-26 fails (updating live iso , open new bash to enable new environment then fails)

fails (which 2.24-26):
env |grep -i which
which_declare=declare -f
BASH_FUNC_which=() { ( alias; eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@" works (2.24-24) env |grep -i which BASH_FUNC_which=() { ( alias;
eval ${_declare} ) | /usr/bin/which –tty-only –read-alias –read-functions –show-tilde –show-dot "$@"

maybe file a bug against Fedora ? (

fda commented on 01.07.2021 18:17

Quickfix: Run "unset which" before "make" or put it in .profile file


Available keyboard shortcuts


Task Details

Task Editing