public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: First results from running build without python2
Date: Tue, 03 Aug 2021 17:11:49 +0200	[thread overview]
Message-ID: <1D0E54D9-C82B-408B-9000-10C070DCA8F6@ipfire.org> (raw)
In-Reply-To: <62e63a94-e841-ec71-c7af-6043f38264c9@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1678 bytes --]

Hello,

Thank you for looking into this.

This is a third-party script that came from either Mozilla or RedHat. Maybe they have ported it. If not, it should not be rocket science to do it ourselves. 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 find 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 <adolf.belka(a)ipfire.org> wrote:
> 
> 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.
> 
> 


  reply	other threads:[~2021-08-03 15:11 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-03 11:31 Adolf Belka
2021-08-03 15:11 ` Michael Tremer [this message]
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=1D0E54D9-C82B-408B-9000-10C070DCA8F6@ipfire.org \
    --to=michael.tremer@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