Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
postgresql-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PostgreSQL
postgresql-common
Commits
66ba5daf
Commit
66ba5daf
authored
13 years ago
by
Martin Pitt
Browse files
Options
Downloads
Patches
Plain Diff
pg_wrapper: Find libreadline in multiarch directory, too.
(Closes: #640520)
parent
270898e7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+2
-0
2 additions, 0 deletions
debian/changelog
pg_wrapper
+7
-1
7 additions, 1 deletion
pg_wrapper
with
9 additions
and
1 deletion
debian/changelog
+
2
−
0
View file @
66ba5daf
...
...
@@ -3,6 +3,8 @@ postgresql-common (122) UNRELEASED; urgency=low
* debian/control: Fix duplicate package description. (Closes: #639562)
* debian/control: Add lsb-release dependency to -server-dev-all, as the
pg_buildext tool needs it.
* pg_wrapper: Find libreadline in multiarch directory, too.
(Closes: #640520)
-- Martin Pitt <mpitt@debian.org> Sun, 28 Aug 2011 17:19:28 +0200
...
...
This diff is collapsed.
Click to expand it.
pg_wrapper
+
7
−
1
View file @
66ba5daf
...
...
@@ -99,7 +99,13 @@ my $cmd = get_program_path ($cmdname, $version);
# libreadline is a lot better than libedit, so prefer that
if
(
$cmdname
eq
'
psql
')
{
my
@readlines
=
sort
(
<
/lib/li
breadline
.
so
.*>
);
my
@readlines
;
my
$multiarch
=
`
dpkg-architecture -qDEB_HOST_MULTIARCH
`;
chomp
$multiarch
;
if
(
$multiarch
)
{
push
@readlines
,
sort
(
<
/lib/
$multiarch
/
libreadline
.
so
.*>
);
}
push
@readlines
,
sort
(
<
/lib/li
breadline
.
so
.*>
);
if
(
@readlines
)
{
$ENV
{'
LD_PRELOAD
'}
=
(
$ENV
{'
LD_PRELOAD
'}
or
'')
.
'
:
'
.
$readlines
[
-
1
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment