From nobody Sun Feb 04 19:30:57 2024 X-Original-To: dev-commits-ports-main@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 4TSfkV0zCmz58dnc; Sun, 4 Feb 2024 19:30:58 +0000 (UTC) (envelope-from git@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 4TSfkV0WbFz44js; Sun, 4 Feb 2024 19:30:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707075058; 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=mhUUob+2LROuGmSAvq4APfRAbett/cPeUfvLylk44nY=; b=EuYudQScSa1RJCMwdc5lCjhcnvwFjx+lURMvFzxh+w+VmAphjnzvEsBOOvqh6Ptz3lnVWz omTj6xF5UxOTjFB89V1JZGB1zypL58D3VIdXgBVOVFzfyfWA6GTawTc6IPK7oMRhpRL9XE UQU9HZ8jUGcTjp0qmf0GEST5rP1ULfowMuTvQxjaciIzygRiTb2PCxfblly/+FThVfZSRz XzJg5fEpcBWzi08qWMN0EQmsrHg7h7bHYikljPmDRz1/VZcOxUFnhyvfFrksUFyu2CtgOG TlTwa2FQVRJOok2j70o1e+Aq4XNL5eUQrfS/ZjJ657HY6Kv7Eg6H1caYY0ClTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707075058; 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=mhUUob+2LROuGmSAvq4APfRAbett/cPeUfvLylk44nY=; b=kstPdP872/FADSFbIkuGVTJNCfAzmyUJD4TPpyGWPqdz8zOoZz3LOFiV4o7OIG0/89VguQ vfS8+U0JKZg8A2I7AJ3zm8XprFOqi8F67pS/Pl9V8urTcOFM2pF825/y5wvRsMxkNW62Vd UGMjYZmKuDTp5xhogNMVryADe8CsALRbpJnbjwD0jc08a/d9LhjNgD879e+gDmanz4vGj7 7vwcTeirSG15WLgP/7p8SHmq80qcZ51BdYXL9XmNhiFou9S45J5k+88N2yhlSZzBhJ8iHt 9eetxrrpa3JWcdXHIpnc53Vb/TPLqAJgi20X2FUr+Pcfrc/MLV+2TeMrz0p1+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707075058; a=rsa-sha256; cv=none; b=ugAteaV3jM4yPoYz3PQKt3L2mIl4v6ItG07OzeTmmCf/HT+mOib5OQvCGgdfOx5oE2KF+X MjhAt3oGDNdalOS2xAMB2WxgsTgJtvfiTasLnT7V5E5C05j86HUbCZ+EL6OME0TGwjsT9X 91RT80WuwE6/Iag1hKJxoOjd47+PC8w94bCPl30kJSLd6sSq0JljkoufN3JbhPWIxSBTkJ 0QstjpkWsY2rjBBR+8xogJmvElyaHZuZcz4OBA2BGRhqSdNowyTLWyYpSl1CbkIvRLsOuJ pissH09deIkcaBpHgB5w+90kWWoTf5wM0Zqc5QIsDTKORYjPkn+Nib3jt1FbhQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4TSfkT6jZ9z17sp; Sun, 4 Feb 2024 19:30:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 414JUvLE042813; Sun, 4 Feb 2024 19:30:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 414JUvrw042810; Sun, 4 Feb 2024 19:30:57 GMT (envelope-from git) Date: Sun, 4 Feb 2024 19:30:57 GMT Message-Id: <202402041930.414JUvrw042810@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Charlie Li Subject: git: 5b0b801228eb - main - lang/python311: Fix build on armv7 with LLVM 17 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vishwin X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5b0b801228eba3d1dfc39b9b595b3a089e118dc1 Auto-Submitted: auto-generated The branch main has been updated by vishwin: URL: https://cgit.FreeBSD.org/ports/commit/?id=5b0b801228eba3d1dfc39b9b595b3a089e118dc1 commit 5b0b801228eba3d1dfc39b9b595b3a089e118dc1 Author: Benjamin Jacobs AuthorDate: 2024-02-04 18:13:23 +0000 Commit: Charlie Li CommitDate: 2024-02-04 19:30:27 +0000 lang/python311: Fix build on armv7 with LLVM 17 Reported by: brd PR: 276249 --- lang/python311/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lang/python311/Makefile b/lang/python311/Makefile index 9b8d5e69df96..6685942472ff 100644 --- a/lang/python311/Makefile +++ b/lang/python311/Makefile @@ -109,6 +109,15 @@ EXTRA_PATCHES+= ${PATCHDIR}/libressl CONFIGURE_ENV+= ac_cv_working_openssl_hashlib=yes .endif +.include + +# llvm17 with -flto=thin makes Programs/_freeze_module crash on armv7; workaround +# cf. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276249 +.if ${ARCH} == armv7 && ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 170 && \ + ${COMPILER_VERSION} < 180 +CONFIGURE_ARGS:= ${CONFIGURE_ARGS:N${LTO_CONFIGURE_ON}} +.endif + post-patch: # disable the detection of includes and library from e2fsprogs-libuuid, # which introduces hidden dependency and breaks build @@ -150,4 +159,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/Tools/gdb/libpython.py \ ${STAGEDIR}${PREFIX}/lib/libpython${PYTHON_VER}${ABIFLAGS}.so.1.0-gdb.py -.include +.include