From nobody Wed Feb 23 22:15:01 2022 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 80DC119CB88A for ; Wed, 23 Feb 2022 22:15:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K3r1x2WgYz4chN for ; Wed, 23 Feb 2022 22:15:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3703620481 for ; Wed, 23 Feb 2022 22:15:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 21NMF1RA043148 for ; Wed, 23 Feb 2022 22:15:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21NMF18g043147 for python@FreeBSD.org; Wed, 23 Feb 2022 22:15:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 262109] Mk/Uses/python.mk: Improve CMake/Python integration Date: Wed, 23 Feb 2022 22:15:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? exp-run? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645654501; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fNimyedUgiyEpltsRuFpUUITZ01uFObVqEvijGktbUs=; b=WZI+9e2fLbDIruKZvbmeAKr3b+cpP675ulYqAoIwg1GBKa5WaJcUcCCQIthowIWVgH5DI4 khEJASmCItTSdqgoNbDRQRkr+Lrg3747DyHub81rDFEnaJ5mQpMrEcL5cUTiHhNNip4lZe shuKZc2Kc/ZXvTixjbIFcvVa4TWA3wrRCqqr0qfG1f0aYsetyJuYYvFF51yb5aeWOkOBnQ cSz3AmcMqbshW5wScmgNIA67CmmHte9Bphbs7lxkdDehpP6xJUtUJu4L2RNNjZHh1bSKo4 qKUC+jWytYyq09M3EVoY2d1K8zTAUSMaApc78/juWrN9cRE2U83693sAZGvQ6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645654501; a=rsa-sha256; cv=none; b=xwpU0GKMuaL4ZfJpAAVwcDUeKaAAPwpqLu01WYP3kID5K/sVH0OC5Amv2jicwsdA2N5MbT Zh3LiqwLbPjuJEUxhBVgum7n5sDngKTxXuReKsEhR5uRP2EO8zXcWlT1dUF3CEFdlObKjk sAA3dKFhXQOO12S5LqPKr47o6YNtUImD04REit3AyumPSxtPbzts5GB8CqLx3dAMEIYOMm jhqTnF2VjHGyhTSkVKRlMRSgO0PtYlqzVZcq+oYKZbWq3NN5kHv5EmQZkoAy/LIJUjaf3m 9Bn3Jb1ZGXynu1Cp/1UxmK/f8RgLy5c9jDPGit9GYwa9QfV1ziLthrhMH5wFOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262109 --- Comment #4 from John Hein --- (In reply to Kubilay Kocak from comment #3) No, I am not aware of anything. The FindPython{2,3,}.cmake modules use different hint variables. And the CMakeLists.txt file in a particular soft= ware package could use any of them. In the case of graphics/libjxl, for instance, it conditionally uses any of = them depending on what it dynamically sees in the shebang header for a2x. In the case of multimedia/onevpl, it uses FindPython{Interp,Libs}.cmake (wh= ich wants the Python_ADDITIONAL_VERSIONS knob or FindPython.cmake (wants Python_EXECUTABLE) conditionally depending on detected cmake version. And = it expresses a preference for python3 by using FindPython3.cmake as a hint bef= ore trying the others. The modules that cmake bundles do a poor job of enforcing any sort of consistency. It's just a fact of life for that tool. And it _can_ change = in a later version of cmake without careful consideration for backward compatibility. Some of the main tool core features have a somewhat rigorous feature compatibility infrastructure, but many of the bundled modules are n= ot nearly as well... considered. --=20 You are receiving this mail because: You are on the CC list for the bug.=