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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 7D6D4C001B0 for ; Wed, 19 Jul 2023 19:48:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id CAF4082001; Wed, 19 Jul 2023 19:48:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CAF4082001 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 42LxgzlczjTa; Wed, 19 Jul 2023 19:48:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 058AE82030; Wed, 19 Jul 2023 19:48:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 058AE82030 Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7916A1BF29A for ; Wed, 19 Jul 2023 19:48:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 52C3F40ACD for ; Wed, 19 Jul 2023 19:48:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 52C3F40ACD X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8N9sPM9fdVbV for ; Wed, 19 Jul 2023 19:48:15 +0000 (UTC) Received: from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57]) by smtp2.osuosl.org (Postfix) with ESMTPS id A084E409DB for ; Wed, 19 Jul 2023 19:48:14 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A084E409DB Received: from fli4l.lan.fli4l (p54a1b341.dip0.t-ipconnect.de [84.161.179.65]) by dd20012.kasserver.com (Postfix) with ESMTPSA id B5E08A4C0CF5; Wed, 19 Jul 2023 21:48:10 +0200 (CEST) Received: from bruckner.lan.fli4l ([192.168.1.1]:59694) by fli4l.lan.fli4l with esmtp (Exim 4.96) (envelope-from ) id 1qMD9e-0001ne-04; Wed, 19 Jul 2023 21:48:10 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Wed, 19 Jul 2023 21:48:09 +0200 Message-Id: <20230719194809.10750-2-bernd@kuhls.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230719194809.10750-1-bernd@kuhls.net> References: <20230719194809.10750-1-bernd@kuhls.net> MIME-Version: 1.0 X-Spamd-Bar: + X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kuhls.net; s=kas202306131828; t=1689796090; bh=5GnrQ80xWNJu39h1kF3cqFUdTDC0DnroSbWhdt/t3kM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BO1ya+Lfd1Vop8xSImR9JvEAtB55TQ7RsNYeWZmsq2ZxBSd7mxu2a8TmoK/dRNKSX zOjias/90wi4paK4nZn7fK3qkZC6mhTe+ojDgamZtrHmxbH95UjvAICuyChij7HoCM pbMhkSTm1m8FbZoJYVvy2kuzOOXClXve9px67eifAa4+T/yIxhnhO9XwT+oRevKubo bgItqlfAW+Gt9j+L8FwDQ9h0QpempkiNCUtkRTWkP7Us458JO6nmNKKYe8IUlFHgRg kQ4F51HOJ8ZkwUZNYTip3cVQftqPS6JiLnBwS38ETpdohE8xZiq/o1o4qV0mMn2AFF rymQ1FQq/8cJw== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=kuhls.net header.i=@kuhls.net header.a=rsa-sha256 header.s=kas202306131828 header.b=BO1ya+Lf Subject: [Buildroot] [PATCH v3 2/2] package/kodi: needs host-cmake >= 3.24 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: Thomas Petazzoni Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Building kodi with cmake version 3.22.3 provided by buildroot is broken -- Found Python3: /home/buildroot/br6/output/per-package/kodi/host/x86_ 64-buildroot-linux-gnu/sysroot/usr/include/python3.11 (found suitable exact version "3.11.4") found components: Development Development. Module Development.Embed -- Could NOT find Python3 (missing: Interpreter) (Required is exact version "3.11") Reason given by package: Interpreter: Cannot run the interpreter "/home/buildroot/br6/ output/per-package/kodi/host/x86_64-buildroot-linux-gnu/sysroot/ usr/bin/python3" CMake Error at cmake/scripts/common/Macros.cmake:432 (message): PYTHON enabled but not found Call Stack (most recent call first): CMakeLists.txt:214 (core_optional_dep) using this defconfig BR2_x86_64=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_FORCE_HOST_BUILD=y BR2_PER_PACKAGE_DIRECTORIES=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_PACKAGE_KODI=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS=y BR2_PACKAGE_MESA3D_OPENGL_EGL=y BR2_PACKAGE_MESA3D_OPENGL_ES=y BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON3_PY_ONLY=y BR2_PACKAGE_HOST_CMAKE=y due to "BR2_FORCE_HOST_BUILD=y". The cmake version provided by my distro is 3.25.1 which works fine. Adding "CMAKE_FIND_DEBUG_MODE TRUE" to the "find_package(Python3 [...]" call in Kodi's cmake/modules/FindPython.cmake and comparing the logfile of both cmake versions shows that 3.25.1 adds CMAKE_FIND_USE_INSTALL_PREFIX: 1 while searching for python3. This option was introduced in cmake 3.24: https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_USE_INSTALL_PREFIX.html After introducing this fix it turns out that 0002-cmake-modules-fix-python-detection.patch is not needed anymore so we remove this patch. Signed-off-by: Bernd Kuhls --- v3: no changes v2: removed patch 0002 ...2-cmake-modules-fix-python-detection.patch | 28 ------------------- package/kodi/Config.in | 1 + 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 package/kodi/0002-cmake-modules-fix-python-detection.patch diff --git a/package/kodi/0002-cmake-modules-fix-python-detection.patch b/package/kodi/0002-cmake-modules-fix-python-detection.patch deleted file mode 100644 index fcf35b25b2..0000000000 --- a/package/kodi/0002-cmake-modules-fix-python-detection.patch +++ /dev/null @@ -1,28 +0,0 @@ -From c29c1e762e126fdb46a19fc15bcb465cf1cd6c76 Mon Sep 17 00:00:00 2001 -From: "Yann E. MORIN" -Date: Sun, 7 May 2023 11:18:00 +0200 -Subject: [PATCH] cmake/modules: fix python detection - -Signed-off-by: Bernd Kuhls -Signed-off-by: Yann E. MORIN -Upstream: https://github.com/xbmc/xbmc/pull/23230 ---- - cmake/modules/FindPython.cmake | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/cmake/modules/FindPython.cmake b/cmake/modules/FindPython.cmake -index 782c0f51f6..a013cccf80 100644 ---- a/cmake/modules/FindPython.cmake -+++ b/cmake/modules/FindPython.cmake -@@ -60,7 +60,7 @@ endif() - - find_package(Python3 ${VERSION} ${EXACT_VER} COMPONENTS Development) - if(CORE_SYSTEM_NAME STREQUAL linux) -- if(HOST_CAN_EXECUTE_TARGET) -+ if(HOST_CAN_EXECUTE_TARGET OR DEFINED PYTHON_EXECUTABLE) - find_package(Python3 ${VERSION} ${EXACT_VER} COMPONENTS Interpreter) - else() - find_package(Python3 COMPONENTS Interpreter) --- -2.25.1 - diff --git a/package/kodi/Config.in b/package/kodi/Config.in index a21733ea78..0bdb8c50ee 100644 --- a/package/kodi/Config.in +++ b/package/kodi/Config.in @@ -66,6 +66,7 @@ menuconfig BR2_PACKAGE_KODI depends on BR2_PACKAGE_PYTHON3 depends on !BR2_PACKAGE_PYTHON3_PYC_ONLY select BR2_NEEDS_HOST_JAVA + select BR2_HOST_CMAKE_AT_LEAST_3_24 select BR2_PACKAGE_FFMPEG select BR2_PACKAGE_FFMPEG_GPL select BR2_PACKAGE_FFMPEG_POSTPROC -- 2.39.2 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot