Re: BUG #14117: psql and pg_dump commands should use ENV perl - Mailing list pgsql-bugs

From Christoph Berg
Subject Re: BUG #14117: psql and pg_dump commands should use ENV perl
Date
Msg-id 20160501191221.GA10870@msg.df7cb.de
Whole thread Raw
In response to BUG #14117: psql and pg_dump commands should use ENV perl  (jsteffee@bepress.com)
List pgsql-bugs
Re: jsteffee@bepress.com 2016-04-27 <20160427202409.19109.81530@wrigleys.postgresql.org>
> The following bug has been logged on the website:
>
> Bug reference:      14117
> Logged by:          Joe Steffee
> Email address:      jsteffee@bepress.com
> PostgreSQL version: 9.5.2
> Operating system:   Ubuntu 14.04.2
> Description:
>
> We have multiple systems which use non-system perl for various tasks,
> including perl scripts which test some pg_dump commands. These break because
> psql and pg_dump are hard-coded with #!/usr/bin/perl instead of
> #!/usr/bin/env perl. The PERL5LIB is set up with libraries based on the perl
> called with ENV, where /usr/bin/perl has libraries compiled differently.

Hi,

the usage of `#!/usr/bin/perl' is mandated by the Debian policy and
the Perl sub policy, so it is not going to change. If you need a
different Perl, you'll need to dpkg-divert /usr/bin/perl away and
install your version there, I'm afraid.

Christoph

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #14103: stored function encryption
Next
From: kangjoni76@gmail.com
Date:
Subject: BUG #14123: Build failed pg952 on vs2015