From nobody Thu May 8 11:37:26 2025 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 4ZtVVG6vWcz5wDJ2 for ; Thu, 08 May 2025 11:37:26 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZtVVG6LTdz4Pjr for ; Thu, 08 May 2025 11:37:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746704246; 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=VXiXaSK2Vf7OKrQEJ3Ft8wbV67mT5kyKhcCUQOZEKW0=; b=Ovwl6t/Xgj3wkH0N1PnKLtYSOzC6Ob7L13i+LCQ39BDuh0mJ0jx5iCaUU3+f20p2DC3BZz vXxTFtEWYyG/++aC8aOCnLw5d+TEZUq+r7gvPOFf6+KZuSAJ4Dlzlq00hdVDyqt2kcKLLU xqQlOthhzx+E+JyJd5w/N4DbipFD5TTBjsj9aOhxrGYJmjnxRja1s1MOdOyAzjE1/ww3Lk He02xoUKws+AjVw6tC+1NAoz5PK5I6VdQluDLsIOqWp3rf9NG9x8oaYfbFcHehLxahHOfz syX9YP6CvU/4plUUmzEttxR9iU0tPkUyaNaJTCDB5Ps6OkR36N2ea5NWsnv+cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746704246; 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=VXiXaSK2Vf7OKrQEJ3Ft8wbV67mT5kyKhcCUQOZEKW0=; b=tD6NE9eXzfUYMJXJwGyzJAzhJYu3nHC1aRjfkE7pU4+PLhrQC5CGvtl6Hx0T9AUSVjOkKT t2TFPf238lWGRnzjAlfUGbWQuJcoAz7ijpjNeooH2xYNYiIM4Gjso3jcsDAL06VgmPFJSR a/R6Gdl5JBLfmCXv2HeYI/5j7kqGeshXHyn7Rk9MSapmfWNKPQC7mvoPZcpSfe977RmdDC 6WJ7pKpG4BXntsZhrrz2ikMoTls7FesVH9xKEOGMMN+BV/SwAygqu1xoLtqdPTB4z9DLUZ AbshHlwC82bfquqqxC5ZDyatRUeqzeTKo7yD8sQwoHWR4MX6rHQpn3L3VCFp5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746704246; a=rsa-sha256; cv=none; b=TYvtVtxhqwyHHWgCuXl2ivowhSAUD80sqSfp0vagzE+neJ6wB+wMwI6kE4/RcWk4xtJh+Y qUsrUWVYQ/zWt/1JClf0Oo4T5fhEOE1GBzFP/cuQ9NlALxYXfIUGQ7xmxutX2pUYzG9jbu SK2AVl0fCLpoZmpgwcs1qMvj4/oL82tuESt5quDg7trxvrdjneO5wy0DlHaqu97w9owC6E 02eCbc0uYAZ1nk5UeSWamiYBkQP8WPSGDa113F1pfLcellHvjSOTD+eNL/hp45R3zIFuut lKwuNVXD+gY3MfsLO9sHWe1Xh7lZNeAWbUtf9FPgQrLNWh6G0gCTQdcyY/0wug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4ZtVVG5hNZz1Bmd for ; Thu, 08 May 2025 11:37:26 +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 548BbQZL068679 for ; Thu, 8 May 2025 11:37:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 548BbQGB068678 for python@FreeBSD.org; Thu, 8 May 2025 11:37:26 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 274099] lang/python27 fails to compile on 14.0-BETA2 Date: Thu, 08 May 2025 11:37:26 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed 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 Only Me X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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: X-BeenThere: freebsd-python@freebsd.org Sender: owner-freebsd-python@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274099 --- Comment #25 from John Hein --- (In reply to Muhammad Moinur Rahman from comment #23) (In reply to jwdevel from comment #24) Yes, the build with the 's|00907000|00000000|' substitution is still using include files from /usr/include. Try adding this little patch to print out= the search path for opensslv.h: @@ -889,6 +890,8 @@ class PyBuildExt(build_ext): # look for the openssl version header on the compiler search path. opensslv_h =3D find_file('openssl/opensslv.h', [], inc_dirs + search_for_ssl_incs_in) + print('opensslv_h: %s' % str(opensslv_h)) + print('inc_dirs: %s' % str(inc_dirs)) if opensslv_h: name =3D os.path.join(opensslv_h[0], 'openssl/opensslv.h') if host_platform =3D=3D 'darwin' and is_macosx_sdk_path(name): Then do a build and look for opensslv_h in the build output. And, yes, even if your build succeeds, you may be linking with the ports ssl library, but using the base version of opensslv.h at compile time. Will th= at work? It might - as long as the two opensslv.h files are compatible "enoug= h".=20 But it also may lead to subtle breakage. It's better to compile with the r= ight header that matches the library that is being linked. The 's|00907000|00000000|' version hack should probably be removed in favor= of the attachment 245256 patch in comment 16 (that patch does not remove the version hack, but that should probably be done). The ssl version hack is q= uite fragile and dependent on a specific version that may not be right with the passage of time. Despite the attitude in comment 18 from a couple years ago to not do anythi= ng to ports that may soon be removed, I think applying the more correct change should almost always be the right course of action, especially when it is fairly trivially implemented and verifiable. Even if it is removed "soon", this is low effort and improves the lives of users in the mean time. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=