From owner-freebsd-python@freebsd.org Sat May 22 00:42:32 2021 Return-Path: Delivered-To: freebsd-python@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 7C64E63EEEB for ; Sat, 22 May 2021 00:42:32 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Fn4SS1Mfzz3KLR for ; Sat, 22 May 2021 00:42:32 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 2232563F5DD; Sat, 22 May 2021 00:42:32 +0000 (UTC) Delivered-To: python@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 1D37E63F767; Sat, 22 May 2021 00:42:32 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fn4SR0lNYz3KT7; Sat, 22 May 2021 00:42:30 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pl1-x62d.google.com with SMTP id s4so10281762plg.12; Fri, 21 May 2021 17:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:message-id:date:mime-version:user-agent:reply-to:subject :content-language:to:references:cc:from:in-reply-to :content-transfer-encoding; bh=iBZAmNxmmHACyqFhU7zzxwLpXVHcTZ6NBste3/zu9cI=; b=sch6267bDo2igOPhHxD1kJV4drjvmxzOQEGaL2+CH+IYb1UYYQa2M/7WdDXGxv7sm2 /WLZjDCfxVW4MH3xmmSSV1vpkUoDY9HYCXqVE+zXo5REkbBOf4Wa6C0AGeL1IiDgsxep FXQP7Cwq3uNId63+DvLOd3x3O+wemyRqPApPgEb4pPhY90maINoFN1N0WoIOBgZDEAvF Qr+xnquvqg1du1et+cxP2RKDRjC6PT57rrgPcAopzD6D7ODXultKawIYxSy/U/jgQuG5 xzLKv73WUJSNSrtdNoCu6hZyrQ6T/3gBbesGN1t9PblflFtIvnCXbJy27Vwrtrm9fSCg T8lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :reply-to:subject:content-language:to:references:cc:from:in-reply-to :content-transfer-encoding; bh=iBZAmNxmmHACyqFhU7zzxwLpXVHcTZ6NBste3/zu9cI=; b=IvZ/rqS+pqKjpXQLxrx3wqmrcYqcJOxBK53zrjiOzMYAZsL77jVxvmI83HMmshbM3i 1712GS3EnlghnOAS3Fy9pXvDV8qg3bV+zsA2/75D+uiXQFRWHvZq1fzyzysV3vkSl3PF vcEuk7x0p1MiJFsoX+dY+8bq1Mh0950oRj7Gh0Scy2xbuvK/EOhas9UYCr+97Koifvsg iQf3y5ajoBPOtJRxUKHYvbR9wikjWRL0WcjzYAOy55pa3obNclL7WCrplUcKqFSfsn1i +CsCgigoRzZMDclOCBXbjQ8haW6tepXi6i6V4jShXNFT6q7KBh23VYZL6Ckx7GT9XZFx gzww== X-Gm-Message-State: AOAM533dPPzgS6xRLkT6O7+28IBWicmqn2hYVkkDmriHkjsYNbwTMYYD eHqHJLUirH9v09jqZO2Gled6aoJlC7ZYWQ== X-Google-Smtp-Source: ABdhPJxVI7YG+cdeYupOHlKFE3co/OEJlWrudBiD9ub1PowptUZB1iCkYkad0gmDHWK+qL0Mukkflg== X-Received: by 2002:a17:902:c409:b029:f0:d31d:4877 with SMTP id k9-20020a170902c409b02900f0d31d4877mr14782180plk.74.1621644149508; Fri, 21 May 2021 17:42:29 -0700 (PDT) Received: from ?IPV6:2403:5800:7500:3601:24aa:728b:e6cd:8b5a? (2403-5800-7500-3601-24aa-728b-e6cd-8b5a.ip6.aussiebb.net. [2403:5800:7500:3601:24aa:728b:e6cd:8b5a]) by smtp.gmail.com with UTF8SMTPSA id p17sm5148813pfw.202.2021.05.21.17.42.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 May 2021 17:42:28 -0700 (PDT) Sender: Kubilay Kocak Message-ID: <721b436f-7832-d40d-f349-74e152862822@FreeBSD.org> Date: Sat, 22 May 2021 10:42:24 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Thunderbird/90.0a1 Reply-To: koobs@FreeBSD.org Subject: Re: Problem building py-cryptography Content-Language: en-US To: Dan Langille References: <0c8fc81e-e45b-2d9b-8005-ef5c504aa275@gmx.net> <448a5d09-ec17-43b8-17ba-6536e4f70cfd@FreeBSD.org> <27430757-7722-016c-9aab-0ffe5a035366@gmx.net> <756eb112-2db9-5c29-45f3-4b84955d9953@FreeBSD.org> <610fa374-37ad-4e3c-91c5-d42abf2eaccf@wright.net.ph> <807f12d5-e4ea-4cfb-958a-cd7d6a10bbff@www.fastmail.com> <5038436c-d29e-4a1d-ad83-22545229c56d@www.fastmail.com> Cc: freebsd-ports , python , vishwin@freebsd.org From: Kubilay Kocak In-Reply-To: <5038436c-d29e-4a1d-ad83-22545229c56d@www.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Fn4SR0lNYz3KT7 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=sch6267b; dmarc=none; spf=pass (mx1.freebsd.org: domain of koobsfreebsd@gmail.com designates 2607:f8b0:4864:20::62d as permitted sender) smtp.mailfrom=koobsfreebsd@gmail.com X-Spamd-Result: default: False [-1.21 / 15.00]; HAS_REPLYTO(0.00)[koobs@FreeBSD.org]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::62d:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.06)[-0.058]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_NEQ_ENVFROM(0.00)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[FreeBSD.org]; R_BAD_CTE_7BIT(1.05)[7bit,utf8]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::62d:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::62d:from]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-ports,python] X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 00:42:32 -0000 On 22/05/2021 12:31 am, Dan Langille wrote: > On Fri, May 21, 2021, at 10:29 AM, Dan Langille wrote: >> On Thu, May 20, 2021, at 7:18 PM, Simon Wright wrote: >>> Thanks Kubs, I'm travelling at the moment and will check further when I'm >>> back home. The original build log was with libressl and ccache. I'll >>> repeat without both and attach a new build log. >> >> FYI, I have build failures here today, based on FreeBSD 11.4. Builds >> fine on 12.2 though. >> >> https://services.unixathome.org/poudriere/data/114R-dvl/2021-05-21_13h56m56s/logs/errors/py38-cryptography-2.9.2.log >> >> ===> FAILED Applying FreeBSD patch-Fix-build-with-LibreSSL-3.3.2-5988 >> ===> FAILED to apply cleanly FreeBSD patch(es) >> patch-Fix-build-with-LibreSSL-3.3.2-5988 >> >> For me, on 11.4, fixed with: >> >> rm py-cryptography/files/patch-Fix-build-with-LibreSSL-3.3.2-5988 >> >> With that file removed, 12.2 does not build. > > Correction. It builds on 12.2. I was wrong, sorry. > If there are any remaining issues with cryptography and libressl or regressions, please re-open https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255241 >> >> hope this helps. >> >>> >>> Apologies for the top post. >>> >>> Regards, >>> >>> Simon. >>> >>> 20 May 2021 13:50:54 Kubilay Kocak : >>> >>>> On 20/05/2021 2:17 pm, Simon Wright wrote: >>>>> On 20/05/2021 12:00 pm, Kubilay Kocak wrote: >>>>>> On 20/05/2021 1:21 pm, Simon Wright wrote: >>>>>>> Hi all, >>>>>>> >>>>>>> I've been unable to build security/py-cryptography for about 10 days >>>>>>> now. The build in Poudriere under 12.2 and 13.0 fail with a >>>>>>> "Bad_C++_code" error. >>>>>>> >>>>>>> I tried removing the libressl dependency but that made no >>>>>>> difference. Is >>>>>>> anyone else seeing this and can anyone point me in the right >>>>>>> direction >>>>>>> to get this fixed please? >>>>>>> >>>>>>> Below is my make.conf, list of poudriere-built ports and the full >>>>>>> poudriere log for py-cryptography >>>>>>> >>>>>> >>>>>> Hi Simon, >>>>>> >>>>>> Is the issue reproducible without ccache? >>>>>> >>>>>> Also, make.conf still shows: >>>>>> >>>>>> DEFAULT_VERSIONS+=ssl=libressl >>>>>> >>>>> Thanks Kubs. When I tested I removed libressl, tried the build again >>>>> and >>>>> it failed so I replaced libressl after the test. >>>>> Removing ccache (and with libressl) made no difference - still the >>>>> same >>>>> error. I then removed the libressl dependency and I reran the build - >>>>> no >>>>> ccache and no libressl - the build still failed, same error message. >>>>> Since no-one else has reported this I suppose it should be something >>>>> in >>>>> my environment . . . . But what? :) >>>> >>>> While the build error *with libressl* is known, matching that reported >>>> in: >>>> >>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255241 >>>> >>>> Failing to build without libressl is unexpected. >>>> >>>> Jump into the poudriere jail to confirm (or not) its libressl that's >>>> being installed and used.  Could be: >>>> >>>>   - Custom WRKDIRPREFIX? >>>>   - An overriding jail or set (-z) specific poudriere foo-make.conf? >>>> >>>> Note, the OP build log contains: >>>> >>>> [pkg.home.santos-wright.net] |   |   `-- Installing libressl-3.3.3... >>>> [pkg.home.santos-wright.net] |   |   `-- Extracting libressl-3.3.3: >>>> >>>> With defaults, base openssl will be used, and you wont see libressl as >>>> a dependency in the build. >>>> >>>> [1] build/temp.freebsd-13.0-RELEASE-amd64-3.8/_openssl.c:2172:19: >>>> error: >>>> expected identifier or '(' >>>> static const long SSL_OP_NO_DTLSv1 = 0; >>>> >>>>> Regards, >>>>> Simon. >>>>> >>>>>>> ============================================ >>>>>>> >>>>>>> make.conf >>>>>>> >>>>>>> WRKDIRPREFIX=/usr/tmp >>>>>>> OPTIONS_SET=GECKO CUPS >>>>>>> NOI4B=1 >>>>>>> OPTIONS_SET+=NO-X11 >>>>>>> CUPS_OVERWRITE_BASE=YES >>>>>>> WITH_VIM_OPTIONS=yes >>>>>>> DEFAULT_VERSIONS+=ssl=libressl bdb=5 >>>>>>> VALID_CATEGORIES+=local >>>>>>> SVN=svnlite >>>>>>> >>>>>>> >>>>>>> Poudriere ports list: >>>>>>> >>>>>>> devel/git@lite >>>>>>> dns/bind916 >>>>>>> emulators/open-vm-tools@nox11 >>>>>>> ftp/curl >>>>>>> graphics/cairo >>>>>>> local/vmserver-baseline >>>>>>> mail/postfix >>>>>>> print/hplip >>>>>>> sysutils/facter >>>>>>> sysutils/puppet6 >>>>>>> sysutils/rsyslog8 >>>>>>> sysutils/rubygem-puppetserver-ca >>>>>>> www/apt-cacher-ng >>>>>>> www/mod_log_sql >>>>>>> >>>>>>>