Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 888BDC433EF for ; Tue, 24 May 2022 12:51:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 099A460F0B; Tue, 24 May 2022 12:51:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Sa90IeT6YkGv; Tue, 24 May 2022 12:51:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 17F6260E9D; Tue, 24 May 2022 12:51:34 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 6B3AA1BF400 for ; Tue, 24 May 2022 12:51:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 560EA415FB for ; Tue, 24 May 2022 12:51:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CqWyXDpdXect for ; Tue, 24 May 2022 12:51:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by smtp4.osuosl.org (Postfix) with ESMTPS id BF0AA415F2 for ; Tue, 24 May 2022 12:51:30 +0000 (UTC) Received: (Authenticated sender: peter@korsgaard.com) by mail.gandi.net (Postfix) with ESMTPSA id 877FEC0003; Tue, 24 May 2022 12:51:27 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.94.2) (envelope-from ) id 1ntU0U-00EyFi-HD; Tue, 24 May 2022 14:51:26 +0200 From: Peter Korsgaard To: Andreas Ziegler References: <20220421152530.3900282-1-br015@umbiko.net> Date: Tue, 24 May 2022 14:51:26 +0200 In-Reply-To: <20220421152530.3900282-1-br015@umbiko.net> (Andreas Ziegler's message of "Thu, 21 Apr 2022 17:25:30 +0200") Message-ID: <87tu9fum9d.fsf@dell.be.48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Subject: Re: [Buildroot] [PATCH 1/1] meson-package: prevent cmake find_package() picking up host libraries X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Le Bihan , buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" >>>>> "Andreas" == Andreas Ziegler writes: > The meson build system uses (1) pkg-config and (2) cmake find_package to locate > dependencies and stops only if a package is found. Cmake uses a toolchain file > that is generated by meson from the existing configuration [1]. > The cmake toolchain file misses CMAKE_FIND_ROOT_PATH and CMAKE_FIND_ROOT_PATH_* > settings, and find_package() falls back to the default behaviour and looks for > dependencies on the build machine (the Buildroot HOST_DIR). > Use a feature introduced in meson 0.56.0 [2] to pass the Buildroot toolchain > file to cmake instead of using a meson-generated one. > Fixes the following build failures: > http://autobuild.buildroot.org/results/056/05673ed04c6f044f1b56b9d5342d61653be43a18/ > http://autobuild.buildroot.org/results/f0a/f0a9e719114f19dc9d20622ed85dd4f8e968c20f/ > http://autobuild.buildroot.org/results/527/527ee199813abbacd61c3fa32b517ea60af60659/ > [1[ see mesonbuild/cmake/toolchain.py > [2] see https://mesonbuild.com/CMake-module.html#cross-compilation > Signed-off-by: Andreas Ziegler Committed to 2022.02.x, thanks. -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot