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 07E82EB64DD for ; Tue, 18 Jul 2023 20:59:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A67E660D58; Tue, 18 Jul 2023 20:59:32 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A67E660D58 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 XFfIJ4gQLsjK; Tue, 18 Jul 2023 20:59:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id C171B6103B; Tue, 18 Jul 2023 20:59:30 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org C171B6103B Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BBE0B1BF20B for ; Tue, 18 Jul 2023 20:59:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A11A64162C for ; Tue, 18 Jul 2023 20:59:28 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A11A64162C 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 02OqXBPz2c4Z for ; Tue, 18 Jul 2023 20:59:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0A0EB41625 Received: from dd20012.kasserver.com (dd20012.kasserver.com [85.13.140.57]) by smtp4.osuosl.org (Postfix) with ESMTPS id 0A0EB41625 for ; Tue, 18 Jul 2023 20:59:26 +0000 (UTC) Received: from fli4l.lan.fli4l (p54a1b341.dip0.t-ipconnect.de [84.161.179.65]) by dd20012.kasserver.com (Postfix) with ESMTPSA id D27A6A4C0FE9; Tue, 18 Jul 2023 22:59:10 +0200 (CEST) Received: from bruckner.lan.fli4l ([192.168.1.1]:50096) by fli4l.lan.fli4l with esmtp (Exim 4.96) (envelope-from ) id 1qLrmo-0004Rb-1m; Tue, 18 Jul 2023 22:59:10 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Tue, 18 Jul 2023 22:59:09 +0200 Message-Id: <20230718205910.2667726-2-bernd@kuhls.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230718205910.2667726-1-bernd@kuhls.net> References: <20230718205910.2667726-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=1689713950; bh=ZwzPSA8fU5lFO6AatWoSbnR7DhUmkC4E9iPRfXY6tuk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t+BrwiX4AohYxoPKojLEbKd3KU6tdNSoKmAOCYuYKKPxmZ3jseRcOZ5BuRF6SJgFk t2uJbJQXcSpmjsbM+Fdd+6Edb4UNwWC1xBRmA6xhrmD0PamYeUm6FzZy92vrg7BugE Hq8okdka/USshiz4tY06z0PG3WITcggtyZnyLgYZqyx5/Dj9cXClizff3oXpXy2yav 6mxPf/h3mw0tkxS5ptFcpsJi2XW9vewJsKfCZFtnF5BZ6M7ySTURcDBmEPXOorIm0y yjBSzMZsDPY0C2+dqxhMMTqJFHkRs5+erjtX5z3RCzEoVA6qTJydrW8CWuG1jM/R7U IrILmZbvvXBgQ== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=kuhls.net header.i=@kuhls.net header.a=rsa-sha256 header.s=kas202306131828 header.b=t+BrwiX4 Subject: [Buildroot] [PATCH v2 2/3] 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 --- v2: removed 0002-cmake-modules-fix-python-detection.patch ...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 710add0568..6b68e6d504 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