[Buildroot] [PATCH] utils/genrandconfig: fix runtime issue with Python 3

Arnout Vandecappelle arnout at mind.be
Wed Dec 4 12:52:48 UTC 2019

On 03/12/2019 20:58, Thomas Petazzoni wrote:
> Hello,
> On Tue, 3 Dec 2019 20:36:17 +0100
> Arnout Vandecappelle <arnout at mind.be> wrote:
>>  Just guessing here, but: originally this file was downloaded with
>> urlopen_closing() instead of being read from a local file.
> Ah, that must be it!
>> Since we only use genrandconfig in the autobuilders in python2 (cfr.
>> the shebang)
> I'm not sure why you say "in python2" ? The shebang in genrandconfig is:
> #!/usr/bin/env python

 Almost all distros resolve this to Python2. I think even now only Arch and
Fedora 31 resolve it to Python3.

> and I indeed noticed the issue with Python 3.x because I started using
> genrandconfig on my updated Fedora system, which now uses Python 3.x as
> "python".
>> , nobody noticed that this broke when I switched to
>> reading from file instead of URL two years ago (84929a53a4).
> Indeed. I'll update the commit log and resend.

 Didn't I mention that I already merged it?


More information about the buildroot mailing list