From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: First results from running build without python2 Date: Tue, 03 Aug 2021 17:11:49 +0200 Message-ID: <1D0E54D9-C82B-408B-9000-10C070DCA8F6@ipfire.org> In-Reply-To: <62e63a94-e841-ec71-c7af-6043f38264c9@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5066084746734372024==" List-Id: --===============5066084746734372024== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, Thank you for looking into this. This is a third-party script that came from either Mozilla or RedHat. Maybe t= hey have ported it. If not, it should not be rocket science to do it ourselve= s. If we do it, we should of course upstream it. However, can you comment out this package and continue the build? This should= be required until you reach the cdrom stage. If this is the only thing that flags up, we should port the script. If we fin= d another, stronger reason to keep Python 2 around, we do not need to bother = and can keep the script this way. -Michael > On 3 Aug 2021, at 13:31, Adolf Belka wrote: >=20 > Hi All, >=20 > So with crda and the remaining python2 modules removed the question was if = removing python2 from the build ran without any problem or if something was f= lagged up. >=20 >=20 > ca-certificates was flagged up. >=20 > There is a python2 script, certdata2pem.py, which fails if python2 is not p= resent. Running that script with python3 flags up some invalid syntax, unsurp= risingly. >=20 > I found some patches in Debian from 2015 for certdata2pem.py to provide pyt= hon3 compatibility. Unfortunately looking at the patch approx half could not = be applied because the lines don't exist in the IPFire version of certdata2pe= m.py (sections to do with blacklisted certs) >=20 > I then ran the 2to3 converter on certdata2pem.py and tried that in the buil= d but it came up with the following error. >=20 > TypeError: a bytes-like object is required, not 'str' >=20 >=20 > I don't know how to further move forward with this as I am totally unfamili= ar with the python language. >=20 >=20 > Regards, >=20 > Adolf. >=20 >=20 --===============5066084746734372024==--