From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Subject: First results from running build without python2
Date: Tue, 03 Aug 2021 13:31:40 +0200 [thread overview]
Message-ID: <62e63a94-e841-ec71-c7af-6043f38264c9@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 969 bytes --]
Hi All,
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 flagged up.
ca-certificates was flagged up.
There is a python2 script, certdata2pem.py, which fails if python2 is not present. Running that script with python3 flags up some invalid syntax, unsurprisingly.
I found some patches in Debian from 2015 for certdata2pem.py to provide python3 compatibility. Unfortunately looking at the patch approx half could not be applied because the lines don't exist in the IPFire version of certdata2pem.py (sections to do with blacklisted certs)
I then ran the 2to3 converter on certdata2pem.py and tried that in the build but it came up with the following error.
TypeError: a bytes-like object is required, not 'str'
I don't know how to further move forward with this as I am totally unfamiliar with the python language.
Regards,
Adolf.
next reply other threads:[~2021-08-03 11:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-03 11:31 Adolf Belka [this message]
2021-08-03 15:11 ` Michael Tremer
2021-08-03 21:38 ` Adolf Belka
2021-08-04 11:40 ` Adolf Belka
2021-08-04 14:45 ` Michael Tremer
2021-08-07 13:54 ` Adolf Belka
2021-08-08 12:47 ` Adolf Belka
2021-08-11 10:43 ` Michael Tremer
2021-08-11 14:03 ` Adolf Belka
2021-08-12 9:17 ` Michael Tremer
2021-08-12 11:36 ` Adolf Belka
2021-08-12 12:10 ` Adolf Belka
2021-08-12 13:38 ` Michael Tremer
2021-08-12 19:23 ` Adolf Belka
2021-08-12 19:30 ` Adolf Belka
2021-08-18 21:08 ` Adolf Belka
2021-08-19 13:54 ` Michael Tremer
2021-08-19 16:28 ` Adolf Belka
2021-08-19 20:54 ` Adolf Belka
2021-08-20 10:17 ` Adolf Belka
2021-08-20 16:38 ` Michael Tremer
2021-08-20 20:17 ` Adolf Belka
2021-08-23 10:36 ` Michael Tremer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62e63a94-e841-ec71-c7af-6043f38264c9@ipfire.org \
--to=adolf.belka@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox