Fix searchpath for modern Perl for genbki.pl
authorAndrew Dunstan <[email protected]>
Tue, 5 Feb 2019 14:59:46 +0000 (09:59 -0500)
committerAndrew Dunstan <[email protected]>
Thu, 19 Jan 2023 16:53:19 +0000 (11:53 -0500)
This was fixed for MSVC tools by commit 1df92eeafefac4, but per
buildfarm member bowerbird genbki.pl needs the same treatment.

Backpatch to all live branches.

(cherry picked from commit 51884fa16a179852ec851172a72588d8e84ec05e)

src/backend/catalog/genbki.pl

index b138aa6d03c554f2e909b1a8c2a9cfdf276ffb76..71e1adfb89dad0b8f80fd5dc1b7629192e7487a8 100644 (file)
 #
 #----------------------------------------------------------------------
 
+use File::Basename;
+use File::Spec;
+BEGIN  { use lib File::Spec->rel2abs(dirname(__FILE__)); }
+
 use Catalog;
 
 use strict;