Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 May 2021 10:29:17 -0400
From:      "Dan Langille" <dan@langille.org>
To:        "Simon Wright" <simon@wright.net.ph>, "Kubilay Kocak" <koobs@FreeBSD.org>
Cc:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: Problem building py-cryptography
Message-ID:  <807f12d5-e4ea-4cfb-958a-cd7d6a10bbff@www.fastmail.com>
In-Reply-To: <610fa374-37ad-4e3c-91c5-d42abf2eaccf@wright.net.ph>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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=20
> back home. The original build log was with libressl and ccache. I'll=20=

> repeat without both and attach a new build log.

FYI, I have build failures here today, based on FreeBSD 11.4.  Builds fi=
ne on 12.2 though.

https://services.unixathome.org/poudriere/data/114R-dvl/2021-05-21_13h56=
m56s/logs/errors/py38-cryptography-2.9.2.log

=3D=3D=3D>  FAILED Applying FreeBSD patch-Fix-build-with-LibreSSL-3.3.2-=
5988
=3D=3D=3D> FAILED to apply cleanly FreeBSD patch(es)  patch-Fix-build-wi=
th-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.


hope this helps.

>=20
> Apologies for the top post.
>=20
> Regards,
>=20
> Simon.
>=20
> 20 May 2021 13:50:54 Kubilay Kocak <koobs@FreeBSD.org>:
>=20
> > 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 d=
ays
> >>>> 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=20
> >>>> difference. Is
> >>>> anyone else seeing this and can anyone point me in the right=20
> >>>> 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+=3Dssl=3Dlibressl
> >>>
> >> Thanks Kubs. When I tested I removed libressl, tried the build agai=
n=20
> >> and
> >> it failed so I replaced libressl after the test.
> >> Removing ccache (and with libressl) made no difference - still the=20=

> >> same
> >> error. I then removed the libressl dependency and I reran the build=
 -=20
> >> no
> >> ccache and no libressl - the build still failed, same error message=
.
> >> Since no-one else has reported this I suppose it should be somethin=
g=20
> >> in
> >> my environment . . . . But what? :)
> >
> > While the build error *with libressl* is known, matching that report=
ed=20
> > in:
> >
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255241
> >
> > Failing to build without libressl is unexpected.
> >
> > Jump into the poudriere jail to confirm (or not) its libressl that's=
=20
> > being installed and used.=C2=A0 Could be:
> >
> > =C2=A0 - Custom WRKDIRPREFIX?
> > =C2=A0 - An overriding jail or set (-z) specific poudriere foo-make.=
conf?
> >
> > Note, the OP build log contains:
> >
> > [pkg.home.santos-wright.net] |=C2=A0=C2=A0 |=C2=A0=C2=A0 `-- Install=
ing libressl-3.3.3...
> > [pkg.home.santos-wright.net] |=C2=A0=C2=A0 |=C2=A0=C2=A0 `-- Extract=
ing libressl-3.3.3:
> >
> > With defaults, base openssl will be used, and you wont see libressl =
as=20
> > a dependency in the build.
> >
> > [1] build/temp.freebsd-13.0-RELEASE-amd64-3.8/_openssl.c:2172:19:=20=

> > error:
> > expected identifier or '('
> > static const long SSL_OP_NO_DTLSv1 =3D 0;
> >
> >> Regards,
> >> Simon.
> >>
> >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>>>
> >>>> make.conf
> >>>>
> >>>> WRKDIRPREFIX=3D/usr/tmp
> >>>> OPTIONS_SET=3DGECKO CUPS
> >>>> NOI4B=3D1
> >>>> OPTIONS_SET+=3DNO-X11
> >>>> CUPS_OVERWRITE_BASE=3DYES
> >>>> WITH_VIM_OPTIONS=3Dyes
> >>>> DEFAULT_VERSIONS+=3Dssl=3Dlibressl bdb=3D5
> >>>> VALID_CATEGORIES+=3Dlocal
> >>>> SVN=3Dsvnlite
> >>>>
> >>>>
> >>>> 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
> >>>>
> >>>>
> > _______________________________________________
> > freebsd-ports@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to=20
> > "freebsd-ports-unsubscribe@freebsd.org"
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.or=
g"
>=20


--=20
  Dan Langille
  dan@langille.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?807f12d5-e4ea-4cfb-958a-cd7d6a10bbff>