[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pgsql-bugs
Subject:    Re: [BUGS] BUG #14117: psql and pg_dump commands should use ENV perl
From:       Joe Steffee <jsteffee () bepress ! com>
Date:       2016-04-27 23:25:03
Message-ID: CA+RgOL-hpz2h3G6cA1J5Pz2N_=ZyDtQzCBv9e3nuT-Xvb0ncSg () mail ! gmail ! com
[Download RAW message or body]

You're right. /usr/bin/psql is a wrapper for the actual psql command being
called. You can close this bug.

On Wed, Apr 27, 2016 at 3:47 PM, Joe Steffee <jsteffee@bepress.com> wrote:

> pg_dump and psql are perl programs.
>
> They were installed from http://apt.postgresql.org/pub/repos/apt/
>
> Who maintains apt.postgresql.org?
>
>
> On Wed, Apr 27, 2016 at 3:30 PM, Andres Freund <andres@anarazel.de> wrote:
>
>> On 2016-04-27 18:27:07 -0400, Tom Lane wrote:
>> > jsteffee@bepress.com writes:
>> > > 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.
>> >
>> > Uh, what?  Neither of those programs use perl at all.
>> >
>> > We do have hard-wired uses of /usr/bin/perl in some scripts that might
>> get
>> > used at build time, but those shouldn't really be an issue, especially
>> not
>> > if you're using prebuilt packages, or even just building from a tarball.
>>
>> I guess the OP is using the debian/ubuntu packages which have a wrapper
>> around most postgres binariers which tries to use the correct version of
>> the binary.
>>
>> Joe, you might have more success opening a bug-report against either
>> Debian's
>> or Ubuntu's packages.
>>
>> Andres
>>
>
>
>
> --
> Joe Steffee
> Linux Systems Administrator
> bepress
>



-- 
Joe Steffee
Linux Systems Administrator
bepress

[Attachment #3 (text/html)]

<div dir="ltr">You&#39;re right. /usr/bin/psql is a wrapper for the actual psql \
command being called. You can close this bug.</div><div class="gmail_extra"><br><div \
class="gmail_quote">On Wed, Apr 27, 2016 at 3:47 PM, Joe Steffee <span \
dir="ltr">&lt;<a href="mailto:jsteffee@bepress.com" \
target="_blank">jsteffee@bepress.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">pg_dump and psql are perl \
programs.<div><br></div><div>They were installed from  <a \
href="http://apt.postgresql.org/pub/repos/apt/" \
target="_blank">http://apt.postgresql.org/pub/repos/apt/</a></div><div><br></div><div>Who \
maintains <a href="http://apt.postgresql.org" \
target="_blank">apt.postgresql.org</a>?<br><div><br></div></div></div><div \
class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Apr 27, \
2016 at 3:30 PM, Andres Freund <span dir="ltr">&lt;<a \
href="mailto:andres@anarazel.de" target="_blank">andres@anarazel.de</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">On 2016-04-27 18:27:07 -0400, Tom Lane wrote:<br> &gt; \
<a href="mailto:jsteffee@bepress.com" target="_blank">jsteffee@bepress.com</a> \
writes:<br> &gt; &gt; We have multiple systems which use non-system perl for various \
tasks,<br> &gt; &gt; including perl scripts which test some pg_dump commands. These \
break because<br> &gt; &gt; psql and pg_dump are hard-coded with #!/usr/bin/perl \
instead of<br> &gt; &gt; #!/usr/bin/env perl. The PERL5LIB is set up with libraries \
based on the perl<br> &gt; &gt; called with ENV, where /usr/bin/perl has libraries \
compiled differently.<br> &gt;<br>
&gt; Uh, what?   Neither of those programs use perl at all.<br>
&gt;<br>
&gt; We do have hard-wired uses of /usr/bin/perl in some scripts that might get<br>
&gt; used at build time, but those shouldn&#39;t really be an issue, especially \
not<br> &gt; if you&#39;re using prebuilt packages, or even just building from a \
tarball.<br> <br>
I guess the OP is using the debian/ubuntu packages which have a wrapper<br>
around most postgres binariers which tries to use the correct version of<br>
the binary.<br>
<br>
Joe, you might have more success opening a bug-report against either Debian&#39;s<br>
or Ubuntu&#39;s packages.<br>
<span><font color="#888888"><br>
Andres<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span \
class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr">Joe Steffee<div>Linux \
Systems Administrator</div><div>bepress</div></div></div> </font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="gmail_signature"><div dir="ltr">Joe Steffee<div>Linux Systems \
Administrator</div><div>bepress</div></div></div> </div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic