Re: pgindent fails with perl 5.40

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Erik Wienhold <ewie(at)ewie(dot)name>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgindent fails with perl 5.40
Date: 2024-10-08 20:56:58
Message-ID: EA0F1D7D-9260-45DB-A6ED-47EF5EC94E4C@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 8 Oct 2024, at 22:24, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>
> On 2024-10-08 Tu 5:26 AM, Daniel Gustafsson wrote:
>>> On 8 Oct 2024, at 03:50, Erik Wienhold <ewie(at)ewie(dot)name> wrote:
>>>> Calling the import method of an unknown package produces a warning
>>>> [...]
>>>> It will also detect cases where a user passes an argument when using a
>>>> package that does not provide its own import
>>>> [...]
>>> Because we use fatal warnings, pgindent fails.
>> I'm far from fluent in Perl, but my reading of this is that File::Spec doesn't
>> provide an import() function so explicitly listing devnull does nothing here.
>> Your diff should thus be a safe fix. The devnull function existed already in
>> 3.00 which was released just a hair over 2 decades ago so I think we can safely
>> assume any File::Spec we use to have it.
>
> The patch looks fine, and should be backpatched. Looks like this is a 12 year old thinko. AFAICT File::Spec doesn't export anything.

Thanks for confirming, I'll go do that in the morning when I've had coffee
unless you beat me to it.

--
Daniel Gustafsson

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2024-10-08 21:28:37 Re: Avoid possible overflow (src/port/bsearch_arg.c)
Previous Message Thomas Munro 2024-10-08 20:56:05 Re: BitmapHeapScan streaming read user and prelim refactoring