From nobody Mon Feb 21 22:37:15 2022 X-Original-To: ports-bugs@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 5F47819CC0F9 for ; Mon, 21 Feb 2022 22:37:16 +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 4K2ccX0sTVz4r7H for ; Mon, 21 Feb 2022 22:37:16 +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 EE715185F4 for ; Mon, 21 Feb 2022 22:37:15 +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 21LMbFcF060618 for ; Mon, 21 Feb 2022 22:37:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21LMbFdH060617 for ports-bugs@FreeBSD.org; Mon, 21 Feb 2022 22:37:15 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: ports-bugs@FreeBSD.org Subject: [Bug 262109] Mk/Uses/python.mk: coddle cmake with more hints Date: Mon, 21 Feb 2022 22:37:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jbeich@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645483036; 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; bh=QbCag8v/lyku4gEtEqQWjjzK+yyNHGauoeelQMmkbk8=; b=gq95sNZMkydnoU/3avsVkMJWFS1xDY2KOoJxUsVBwaFqy2vjNsyOhGysAgfo2rmbbMhuZb GtICvHrnUO06NE0wa01DMrXirxEc8Pk8kFdkm1mBDWjZ1UD238G8j5nV10EzaoI8cYcfCo 9HLV7R9R0OYna2vfCYr/9YSpCBeaPJ202MNPdVZVn/d2gnBnUvJLYKRqt+76YLNbGQzwHT Y+MWeECLFCySP8bZgjwqL/OoaTZs8qYcPQfdBZkoptTA727FFUVQHmZziK1ouH8vbGyZFy ovsph58iiH2qs3DatFqFAauXsGbCjRA9sGjSM2LlZozpmf97pnbpiBSPBvYfNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645483036; a=rsa-sha256; cv=none; b=aWM9ZxSRx9bToD4VlYD66MNNSXn/sTSXEgyKL5SsTPHeiclztXLFc2WtJppY+sMzNq4uwV RQGy9ceyXzL8Bd2K6FpnRkd3JRNopeGgl7nOD2AM0vlSSt8O7CTQsJ2v3xpgRKDAaaKyj7 cfZO7lcc/W0fglbCrYtML2z3RmPiHohCn+oU2s4UerHpcq9cF0mMrC0qbBNloMy6d29urJ TVzZURfRRsnzDbNTgoVwDuP6+mhvSNXbgnhAsnGNdvf4RB/LadtvA4ux9Ba72/stivCUHZ 0tM0uIz2S8Tu0Q2l/TyC+K7ostVymO+x+cEh0H5vPbi96i4Jl5y9p1z66hb9Wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262109 Bug ID: 262109 Summary: Mk/Uses/python.mk: coddle cmake with more hints Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: jbeich@FreeBSD.org Reporter: jcfyecrayz@liamekaens.com Assignee: jbeich@FreeBSD.org Flags: maintainer-feedback?(jbeich@FreeBSD.org) Created attachment 231998 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231998&action= =3Dedit [patch] suport FindPython.cmake, FindPython3.cmake, FindPython2.cmake modul= es cmake supports more than one way to search for python. Uses/python.mk passes -DPython_ADDITIONAL_VERSIONS=3D${PYTHON_VER} to help = cmake "find" the version of python that a port build wants to use. The FindPython{,2,3}.cmake modules don't know anything about Python_ADDITIONAL_VERSIONS. The FindPython{Interp,Libs}.cmake modules do. = The former use Python{,2,3}_EXECUTABLE as the hint. I didn't do the archeology= to see which flavor of FindPython*.cmake came first, but of course it makes se= nse in the bizarre world of cmake that you would not make a later flavor compatible. Oh cmake, how do I hate thee? Let me count the ways. Recently a couple ports broke when a newer version of python is installed in addition to the default version of python (currently 3.8). For instance, if python3.10 was installed in addition to python3.8 (and many packages installed in the lib/python3.8/site-packages area), multimedia/one= vpl broke before ports/0378719b21c61d5a5d3dc8f31be7781fd7ff11ef. See bug 26141= 5. Now graphics/libjxl has the same problem. I did not open a bug for graphics/libjxl yet. Instead it seems that we need to appease cmake's additional python support modules by adding more knobs to tell cmake what version of python to use in case the port uses a different flavor of FindPy= thon than the one that wants Python_ADDITIONAL_VERSIONS. Attached is a patch for Uses/python.mk that does that. Feedback please. --=20 You are receiving this mail because: You are the assignee for the bug.=