From nobody Wed Apr 24 12:27:38 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+96522+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+96522+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1669065680; cv=none; d=zohomail.com; s=zohoarc; b=UZq/jYVvAHpgtzEgqk4s5tnaz4VyKoMAKk4OXlNEe0q0dPr1Rqh1NoVYoYkxh59n+7IK2CrPLWQqs0SPzDXrXWzB8zRMNosh06srhto72BNHRMvA1/jmxn1ZZmIsi2fKqZIGn735D/nc08X6MNhEOB7T2lo0yNOK+S4cLzg4WkQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669065680; h=Content-Type:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=rzA9eGMtA+ky/ITlllHqaiJNBc2YQtCeInDwRipdkB8=; b=EfXQc6mtlvhoVWFTsbrH6ADJ8E8kXRxZlS9jWM19UZAv2PJOxoLFIjTEBg2CR6WNihRhDNglQE60p1UExFitYgewxMJTHtWEmWRssin4qhvXfU5wwMPU+4pnndEKcgvXJl5v17msc6bIme/vb5bRyr6NuU1Mtqw8SwhcZ6uFoT8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+96522+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1669065680827569.1803503253683; Mon, 21 Nov 2022 13:21:20 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id y37BYY1788612xQd5IYEWHJc; Mon, 21 Nov 2022 13:21:19 -0800 X-Received: from smtp26.services.sfr.fr (smtp26.services.sfr.fr [93.17.128.204]) by mx.groups.io with SMTP id smtpd.web11.37851.1669036190748735076 for ; Mon, 21 Nov 2022 05:09:51 -0800 X-mail-filterd: {"version":"1.5.3","queueID":"4NG75n0Y38z1LQLxh","contextId": "197900d2-16d8-4c45-88b7-71fec9216286"} X-Received: from cauchy.polynum.local (20.204.0.93.rev.sfr.net [93.0.204.20]) by msfrf2624.sfr.fr (SMTP Server) with ESMTP id 4NG75n0Y38z1LQLxh for ; Mon, 21 Nov 2022 14:09:49 +0100 (CET) X-mail-filterd: {"version":"1.5.3","queueID":"4NG75m6JkSz1LQLxd","contextId": "ead752af-b1a0-44ed-bfde-c05af7e853b2"} X-sfr-mailing: LEGIT X-sfr-spamrating: 40 X-sfr-spam: not-spam X-Received: from cauchy.polynum.local (20.204.0.93.rev.sfr.net [93.0.204.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: thierry.laronde@sfr.fr) by msfrf2624.sfr.fr (SMTP Server) with ESMTPSA id 4NG75m6JkSz1LQLxd for ; Mon, 21 Nov 2022 14:09:48 +0100 (CET) X-Received: from cauchy.polynum.local (localhost [127.0.0.1]) by cauchy.polynum.local (8.15.2/8.15.2) with ESMTP id 2ALD9l27001332 for ; Mon, 21 Nov 2022 14:09:47 +0100 (CET) X-Received: (from tlaronde@localhost) by cauchy.polynum.local (8.15.2/8.14.9/Submit) id 2ALD9lDq001540 for devel@edk2.groups.io; Mon, 21 Nov 2022 14:09:47 +0100 (CET) X-Authentication-Warning: cauchy.polynum.local: tlaronde set sender to thierry.laronde@sfr.fr using -f Date: Mon, 21 Nov 2022 14:09:47 +0100 From: tlaronde@polynum.com To: devel@edk2.groups.io Subject: [edk2-devel] edksetup.sh: fix for non POSIX whereis(1) Message-ID: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,tlaronde@polynum.com X-Gm-Message-State: zlHR32DJ2LhF0GyEIoPQHMpFx1787277AA= Content-Disposition: inline DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1669065679; bh=Sicxeaxhiegb+NdmLXJt/s5SIsp2p7vHO216EvUJMZ4=; h=Content-Type:Date:From:Reply-To:Subject:To; b=fvJPPCKh6obc8M0bya2Z48MaXBBRS+NQxP0jqM1cC5OXA7sq6iwMs8fUbDzPyMzZ2k9 Y1ddG+Ir6JPLCojQEzMJdP8VieImeZ5RNZN7/5k0SfZ3ofCsu7HUUEYTpnHks+hFPbjyQ dIGthNX2UvHreR/2927Pu4Z7TCB5NHgnzi0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1669065681918100007 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" diff --git a/edksetup.sh b/edksetup.sh index 06d2f041e6..46b295c430 100755 --- a/edksetup.sh +++ b/edksetup.sh @@ -105,6 +105,19 @@ function SetupEnv() fi } =20 +# whereis(1) is not a POSIX utility and, for example, its implementation +# in NetBSD is different form the Linux one. +# +function whereis() +{ + ( + IFS=3D: + for dir in $PATH; do + eval ls $dir/${1}* 2>/dev/null || true=20 + done + ) +} + function SetupPython3() { if [ $origin_version ];then signed-off-by: Thierry LARONDE --=20 Thierry Laronde http://www.kergis.com/ http://kertex.kergis.com/ Key fingerprint =3D 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#96522): https://edk2.groups.io/g/devel/message/96522 Mute This Topic: https://groups.io/mt/95182516/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-