Re: Portability report: ninja

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Portability report: ninja
Date: 2021-11-01 20:27:17
Message-ID: CA+hUKGLbxN2WB+xwrTSCWnWQRkmYF1MLgYm7=b+a-2V64XRYsg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 2, 2021 at 8:25 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> 6. While configure.py thinks it knows what to do on AIX, it fails
> on AIX 7.1 and 7.2:
>
> Traceback (most recent call last):
> File "./configure.py", line 544, in <module>
> if platform.is_aix() and not platform.is_os400_pase():
> File "./configure.py", line 103, in is_os400_pase
> return self._platform == 'os400' or os.uname().sysname.startswith('OS400')
> AttributeError: 'tuple' object has no attribute 'sysname'

Yeah, the result type changed: os.uname()[0] works on python2 AND python3.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2021-11-01 20:56:10 Re: Portability report: ninja
Previous Message Mark Dilger 2021-11-01 20:23:23 Re: Delegating superuser tasks to new security roles (Was: Granting control of SUSET gucs to non-superusers)