Skip to content
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

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

Open
openwrt-bot opened this issue May 13, 2021 · 3 comments
Open

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

openwrt-bot opened this issue May 13, 2021 · 3 comments
Labels
flyspray release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release

Comments

@openwrt-bot
Copy link

damnms:

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/toplevel.mk:180: staging_dir/host/.prereq-build] Fehler 1

[oli@lucy ~]$ rpm -qa | grep which
which-2.21-26.fc34.x86_64

corrected the meta infos of this ticket and copied it from https://bugs.openwrt.org/index.php?do=details&task_id=3805

@openwrt-bot
Copy link
Author

plntyk:

replicated it on my Fedora 34 Install

Hack: changing which to /usr/bin/which fixes it ( changes in include/prereq.mk)

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

@openwrt-bot
Copy link
Author

plntyk:

further investigated this

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

Package
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 ? (bugzilla.redhat.com)

@openwrt-bot
Copy link
Author

fda:

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

@aparcar aparcar added the release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release
Projects
None yet
Development

No branches or pull requests

2 participants