From nobody Mon Jun 05 17:20:40 2023 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 4QZgNm5XHdz4ZcVZ; Mon, 5 Jun 2023 17:20:40 +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 4QZgNm542wz3Mwy; Mon, 5 Jun 2023 17:20:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685985640; 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=y/xzIJvyc3syxg1nrq5babnIpD32SBPRQ7o+NooQnFA=; b=mF0jw+zlKK0TjqyIe0gwZepvDTOGfH8rNALrf3CQP1tBu+NASVd2mOTMkAAvEYjh5jsrKx EaAc0+W4NlzeT9g+qLEXHFMHMi4mUhJ5p7FyNGyQZxQ48r/RWCIYaOXNAG68ofGFc0e9/S 6rWUKQy8KOCgd+CUxNJCS/zn0s/IAxR8F1TLMD84L5MCEgmg162ggpOFtsGkyVr3nKSgdA bfUPICNPYM7PU/w2gFxR8SNAoiIG5Lg+nmtIHDP/D96d505KKAz3A9B4Kq45z5lcGuWMNB LTsI1VAlnLZml8vg3rmhxk4GIQv6PV5ZVjapPZUG1iNDx+t/iXIDNhYqcaaFLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685985640; 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=y/xzIJvyc3syxg1nrq5babnIpD32SBPRQ7o+NooQnFA=; b=f2PoiXnVOeVWD3eLmSWuVF04+P7MocDqtNh08wPIA+twI+HRsH5E26tZOi1XU1gSp/TZwF Vtnd3xmehwB27I1W5XiUUwgUBFn/5iyHltJM2FyCYOMprbDpnjhnj9lNVPw2FFGXw3i3LK B05Lr84pRvN3iCpN9ts8/vAKDl41gDG5ruOJ5XHKD5mvBI4Eb0YnbetVceIxhJjJHbI5la QzNnC8jMmQOXJh27tv5EXIWPva+PGhQkli4OQE3uQTbmVLTzHppMTz7qBYxXTRb7z+dJcy 4LJ1Htzi308CZ2kDhFI18OhZQQCu8rPYe5Yfx+s1UCaxNzpopxtIhZlzRfLW+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685985640; a=rsa-sha256; cv=none; b=cHJvz+25XIvjCO6Q7E4KonN+/AlLoYZBtT5zVL3YORkDatiwV3uPtOUiRyqDRhkOV4n2QH 3i8m9cjaAuypIUohmlRhrvOVLvg2dk/bK67gt2Dxy24IZ+A1pv/pGeFA0jRcegQTKA5Iru mUpaEcoPLwByCS6yfdScCPX6d4vyOn7A0CxdoMKr4qbd0g6u62H/z9tEmzP9mTCT6EoGis 5KnlKM/70wF3pcwfBomZjlqeYpb3migRDBxYCTQjEVReFk3/406YCLybdP4scUb4gaa6Cw wIRtbPiC0wScyTj3e97MKjd6+IPWxCQOXH13Giqlaluv7FFGo7li42TwBb7Jow== 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 4QZgNm46Ywzwhm; Mon, 5 Jun 2023 17:20:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 355HKenW092940; Mon, 5 Jun 2023 17:20:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 355HKe1I092939; Mon, 5 Jun 2023 17:20:40 GMT (envelope-from git) Date: Mon, 5 Jun 2023 17:20:40 GMT Message-Id: <202306051720.355HKe1I092939@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: e13b0edc8bb2 - main - devel/py-greenlet: fix build with clang 16 on i386 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: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e13b0edc8bb2f696676715abd54d65b9c0403b66 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=e13b0edc8bb2f696676715abd54d65b9c0403b66 commit e13b0edc8bb2f696676715abd54d65b9c0403b66 Author: Dimitry Andric AuthorDate: 2023-05-29 18:22:34 +0000 Commit: Dimitry Andric CommitDate: 2023-06-05 17:19:29 +0000 devel/py-greenlet: fix build with clang 16 on i386 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because devel/py-greenlet's build infrastructure does not explicitly set its C++ standard, this leads to several errors: In file included from src/greenlet/greenlet.cpp:21: In file included from src/greenlet/greenlet_slp_switch.hpp:82: In file included from src/greenlet/slp_platformselect.h:18: src/greenlet/platform/switch_x86_unix.h:54:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register int *stackref, stsizediff; ^~~~~~~~~ src/greenlet/platform/switch_x86_unix.h:54:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register int *stackref, stsizediff; ^~~~~~~~~ The register keyword has already been removed from the similar switch_amd64_unix.h header, which is why the above problem does not occur on amd64. To work around the errors, define the register keyword away using CPPFLAGS. PR: 271712 Approved by: sunpoet (maintainer) MFH: 2023Q2 --- devel/py-greenlet/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devel/py-greenlet/Makefile b/devel/py-greenlet/Makefile index bf0be9f0ad5a..e433e84e57fa 100644 --- a/devel/py-greenlet/Makefile +++ b/devel/py-greenlet/Makefile @@ -1,5 +1,6 @@ PORTNAME= greenlet PORTVERSION= 2.0.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -17,6 +18,8 @@ NOT_FOR_ARCHS_REASON= greenlet needs to be ported to this platform USES= python:3.5+ USE_PYTHON= autoplist concurrent distutils +CPPFLAGS+= -Dregister= + post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +