Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 853271

Summary: sys-firmware/edk2-ovmf[-binary]: missing BDEPEND on sys-apps/which (please try remove it)
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Matthias Maier <tamiko>
Status: CONFIRMED ---    
Severity: normal CC: virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 646588    

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-21 06:30:15 UTC
Please see if you can patch out the which usage instead of adding the BDEPEND though.

 * QA Notice: command not found:
 *      ./OvmfPkg/ line 234: which: command not found
 *      ./OvmfPkg/ line 234: which: command not found

$ grep -rsin "which" --include=*.sh
MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/csharp/ ! which mvn >/dev/null; then
MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/csharp/ ! which mono >/dev/null; then
MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/csharp/ ! which nuget >/dev/null; then
MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/csharp/ ! which mcs >/dev/null; then
MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/scripts/                    which ${CC} || brew install $(echo "${CC}" | sed 's/\-/@/') || brew link --overwrite $(echo "${CC}" | sed 's/\-/@/')
CryptoPkg/Library/OpensslLib/openssl/test/certs/ Name constraints subordinate CA. Adds (which should be
CryptoPkg/Library/OpensslLib/openssl/test/certs/ (which should be allowed because parent allows *
CryptoPkg/Library/OpensslLib/openssl/test/certs/ hostname which is not allowed by CA1.
CryptoPkg/Library/OpensslLib/openssl/util/    # and test/, which is now done elsewhere... The $PATH is adjusted
BaseTools/Source/C/BrotliCompress/brotli/csharp/ ! which mvn >/dev/null; then
BaseTools/Source/C/BrotliCompress/brotli/csharp/ ! which mono >/dev/null; then
BaseTools/Source/C/BrotliCompress/brotli/csharp/ ! which nuget >/dev/null; then
BaseTools/Source/C/BrotliCompress/brotli/csharp/ ! which mcs >/dev/null; then
BaseTools/Source/C/BrotliCompress/brotli/scripts/                 which ${CC} || brew install $(echo "${CC}" | sed 's/\-/@/') || brew link --overwrite $(echo "${CC}" | sed 's/\-/@/')
OvmfPkg/    elif  [ -x `which qemu-system-i386` ]; then
OvmfPkg/    elif  [ -x `which qemu-system-x86_64` ]; then
OvmfPkg/    elif  [ -x `which qemu` ]; then
OvmfPkg/  [[ ! -f `which build` || ! -f `which GenFv` ]];
OvmfPkg/ [[ ( -f `which build` ||  -f `which GenFv` )  && ! -d  $EDK_TOOLS_PATH/Source/C/bin ]];
OvmfPkg/AmdSev/Grub/    if which "$b" > /dev/null 2>&1; then
EmulatorPkg/  [[ ! -f `which build` || ! -f `which GenFv` ]];
EmulatorPkg/ [[ ( -f `which build` ||  -f `which GenFv` )  && ! -d  $EDK_TOOLS_PATH/Source/C/bin ]];
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-21 06:30:26 UTC
(edk2-ovmf-202105-r2, fwiw)