pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14117: psql and pg_dump commands should use ENV perl
6+ messages / 5 participants
[nested] [flat]
* BUG #14117: psql and pg_dump commands should use ENV perl
@ 2016-04-27 20:24 jsteffee@bepress.com
2016-04-27 22:27 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Tom Lane <tgl@sss.pgh.pa.us>
2016-05-01 19:12 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Christoph Berg <myon@debian.org>
0 siblings, 2 replies; 6+ messages in thread
From: jsteffee@bepress.com @ 2016-04-27 20:24 UTC (permalink / raw)
To: pgsql-bugs
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.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #14117: psql and pg_dump commands should use ENV perl
2016-04-27 20:24 BUG #14117: psql and pg_dump commands should use ENV perl jsteffee@bepress.com
@ 2016-04-27 22:27 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-04-27 22:30 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Andres Freund <andres@anarazel.de>
1 sibling, 1 reply; 6+ messages in thread
From: Tom Lane @ 2016-04-27 22:27 UTC (permalink / raw)
To: jsteffee@bepress.com; +Cc: pgsql-bugs
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.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #14117: psql and pg_dump commands should use ENV perl
2016-04-27 20:24 BUG #14117: psql and pg_dump commands should use ENV perl jsteffee@bepress.com
2016-04-27 22:27 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-04-27 22:30 ` Andres Freund <andres@anarazel.de>
2016-04-27 22:47 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Joe Steffee <jsteffee@bepress.com>
0 siblings, 1 reply; 6+ messages in thread
From: Andres Freund @ 2016-04-27 22:30 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: jsteffee@bepress.com, pgsql-bugs@postgresql.org, Christoph Berg <cb@df7cb.de>
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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #14117: psql and pg_dump commands should use ENV perl
2016-04-27 20:24 BUG #14117: psql and pg_dump commands should use ENV perl jsteffee@bepress.com
2016-04-27 22:27 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Tom Lane <tgl@sss.pgh.pa.us>
2016-04-27 22:30 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Andres Freund <andres@anarazel.de>
@ 2016-04-27 22:47 ` Joe Steffee <jsteffee@bepress.com>
2016-04-27 23:25 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Joe Steffee <jsteffee@bepress.com>
0 siblings, 1 reply; 6+ messages in thread
From: Joe Steffee @ 2016-04-27 22:47 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-bugs@postgresql.org, Christoph Berg <cb@df7cb.de>
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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #14117: psql and pg_dump commands should use ENV perl
2016-04-27 20:24 BUG #14117: psql and pg_dump commands should use ENV perl jsteffee@bepress.com
2016-04-27 22:27 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Tom Lane <tgl@sss.pgh.pa.us>
2016-04-27 22:30 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Andres Freund <andres@anarazel.de>
2016-04-27 22:47 ` Re: BUG #14117: psql and pg_dump commands should use ENV perl Joe Steffee <jsteffee@bepress.com>
@ 2016-04-27 23:25 ` Joe Steffee <jsteffee@bepress.com>
0 siblings, 0 replies; 6+ messages in thread
From: Joe Steffee @ 2016-04-27 23:25 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-bugs@postgresql.org, Christoph Berg <cb@df7cb.de>
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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #14117: psql and pg_dump commands should use ENV perl
2016-04-27 20:24 BUG #14117: psql and pg_dump commands should use ENV perl jsteffee@bepress.com
@ 2016-05-01 19:12 ` Christoph Berg <myon@debian.org>
1 sibling, 0 replies; 6+ messages in thread
From: Christoph Berg @ 2016-05-01 19:12 UTC (permalink / raw)
To: jsteffee@bepress.com; +Cc: 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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2016-05-01 19:12 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-27 20:24 BUG #14117: psql and pg_dump commands should use ENV perl jsteffee@bepress.com
2016-04-27 22:27 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-04-27 22:30 ` Andres Freund <andres@anarazel.de>
2016-04-27 22:47 ` Joe Steffee <jsteffee@bepress.com>
2016-04-27 23:25 ` Joe Steffee <jsteffee@bepress.com>
2016-05-01 19:12 ` Christoph Berg <myon@debian.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox