[PATCH RESEND 0/1] SB: More reliably recognize distribution

Chris Johns chrisj at rtems.org
Fri Nov 17 00:30:08 UTC 2023


Hi Michael,

Thanks for the updated patch. I have tested a build of riscv on rocky and it was
fine.

Thanks
Chris

On 14/11/2023 9:19 am, Michael South wrote:
> (Hopefully avoid line wrap this time.)
> 
> Fix #4966: SB doesn't recognize distros Python 3.8
> 
> If build host has Python >= 3.8 then Source builder could not very
> reliably determine paths for OS utilities such as bzip2. Problem was that
> "package.dist()", formerly used to determine the Linux distribution,
> was removed in Python 3.8. Patch makes sb/linux.py now prefer to use the
> "distro" package if it's available. "distro" is avail since python 3.6,
> was also back-ported for 2.6.
> 
> Michael South (1):
>   sb/linux.py: More reliably recognize distribution
> 
>  source-builder/sb/linux.py | 89 +++++++++++++++++++++++++-------------
>  1 file changed, 59 insertions(+), 30 deletions(-)
> 


More information about the devel mailing list