From owner-freebsd-ports@freebsd.org Mon May 10 22:49:24 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 33703644F72 for ; Mon, 10 May 2021 22:49:24 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from maybe.home.utahime.org (gate.home.utahime.org [183.180.29.210]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4FfGSz0cgRz4bnF for ; Mon, 10 May 2021 22:49:22 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by maybe.home.utahime.org (Postfix) with ESMTPS id 0B3DF2C025 for ; Tue, 11 May 2021 07:49:19 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1620686959; bh=6a2dx0EMxtdPIqkUnz32u98V+gh4yqvUku+BLeOYqxU=; h=Date:To:Subject:From:In-Reply-To:References; b=pX8C1vV6mSuUO5iVFLhYb7QOXFRBTMSlWvywJyhFFKcIq97m3t23AqV/UPmO+9TaC 5Chp5SXtnmfWobXP9b38L8XaCkgPZlTlPnWfshem3QOUj24uNIGP9epR6h38tZSPiR tUTwn6sYD2pZ2m1VKV7sU5mpEZlBLaitMtqNWOn3x8Tktq7ep35QqgcRicy6ObVUof xzK/8iuzDAsvwuILu6WGM1bOE0aPldNtX+ul1c687lI6tOMNmkkNX6JqdIBY7ViHCB HgRHrhodkAkTe1hEmgOnl26jgB4xgiyeLc28Tx4NNXZvhvNU4+aqlmaOxtXCEPfT5M afgWwZpWkc0Tg== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id E620938117; Tue, 11 May 2021 07:49:17 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.2 at eastasia.home.utahime.org Date: Tue, 11 May 2021 07:49:07 +0900 (JST) Message-Id: <20210511.074907.1412377303751995160.yasu@utahime.org> To: freebsd-ports@freebsd.org Subject: Re: Build of Python 3.8.10/3.9.5 fails on 12.2-RELEASE From: Yasuhiro Kimura In-Reply-To: <20210510.162903.380143401307101301.yasu@utahime.org> References: <20210510.162903.380143401307101301.yasu@utahime.org> X-Mailer: Mew version 6.8 on Emacs 27.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FfGSz0cgRz4bnF X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.b=pX8C1vV6; dmarc=none; spf=pass (mx1.freebsd.org: domain of yasu@utahime.org designates 183.180.29.210 as permitted sender) smtp.mailfrom=yasu@utahime.org X-Spamd-Result: default: False [-0.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:spf-authorized.utahime.org]; TO_DN_NONE(0.00)[]; HFILTER_HELO_IP_A(1.00)[maybe.home.utahime.org]; HFILTER_HELO_NORES_A_OR_MX(0.30)[maybe.home.utahime.org]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[utahime.org:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[183.180.29.210:from]; ASN(0.00)[asn:2519, ipnet:183.180.0.0/16, country:JP]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[utahime.org:s=maybe2019112701]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[utahime.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[183.180.29.210:from:127.0.2.255]; MID_CONTAINS_FROM(1.00)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2021 22:49:24 -0000 From: Yasuhiro Kimura Subject: Build of Python 3.8.10/3.9.5 fails on 12.2-RELEASE Date: Mon, 10 May 2021 16:29:03 +0900 (JST) > I submitted patches to update lang/python3[89] to 3.8.10/3.9.5 > respectively. > > Bug 255729 - lang/python38: Update to 3.8.10 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255729 > Bug 255730 - lang/python39: Update to 3.9.5 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255730 > > I created them on 13.0-RELEASE. But after submitting them I found > build of them fail on 12.2-RELEASE as following. > > ---------------------------------------------------------------------- > /wrkdirs/usr/ports/lang/python38/work/Python-3.8.10/Modules/_ssl.c:3118:27: error: implicit declaration of function 'SSLv3_method' is invalid in C99 [-Werror,-Wimplicit-function-declaration] > ctx = SSL_CTX_new(SSLv3_method()); > ^ > /wrkdirs/usr/ports/lang/python38/work/Python-3.8.10/Modules/_ssl.c:3118:27: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const SSL_METHOD *' (aka 'const struct ssl_method_st *') [-Wint-conversion] > ctx = SSL_CTX_new(SSLv3_method()); > ^~~~~~~~~~~~~~ > /usr/include/openssl/ssl.h:1503:47: note: passing argument to parameter 'meth' here > __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); > ^ > 2 warnings and 1 error generated. > ---------------------------------------------------------------------- > > Full build logs. > > 3.8.10 on 12.2-RELEASE: > https://www.utahime.org/FreeBSD/poudriere/data/logs/bulk/122amd64-default-python/2021-05-10_11h21m50s/logs/python38-3.8.10.log > 3.8.10 on 13.0-RELEASE: > https://www.utahime.org/FreeBSD/poudriere/data/logs/bulk/130amd64-default-python/2021-05-10_11h24m03s/logs/python38-3.8.10.log > 3.9.5 on 12.2-RELEASE: > https://www.utahime.org/FreeBSD/poudriere/data/logs/bulk/122amd64-default-python/2021-05-10_11h26m11s/logs/python39-3.9.5.log > 3.9.5 on 13.0-RELEASE: > https://www.utahime.org/FreeBSD/poudriere/data/logs/bulk/130amd64-default-python/2021-05-10_11h28m01s/logs/python39-3.9.5.log > > Futher, build also succeeds with 14-CURRENT and 11.4-RELEASE. So it > fails only with 12.2-RELEASE. > > Since FreeBSD 12 or later use OpenSSL 1.1.1, it means build fails with > OpenSSL 1.1.1 in one case but succeeds in other cases. It seems quite > strange for me. > > Any suggestions? I investigated repository of Python and found following commits (bpo-43799) are the source of the problem. [3.8] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25383) https://github.com/python/cpython/commit/b71aaa0df0f3a9640b034b4774651cd8c54d2fb9 [3.9] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25382) https://github.com/python/cpython/commit/7d9d5bf863bb0af26b74b0732ab89b2053d2fbec I created patches to revert these commits and added them to both ports. Then they can be built fine with 12.2-RELEASE. --- Yasuhiro Kimura