Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916327 - app-eselect/eselect-postgresql: wrongly reports "Clients only"
Summary: app-eselect/eselect-postgresql: wrongly reports "Clients only"
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-10-27 09:59 UTC by fariouche
Modified: 2024-09-24 19:22 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix for incorrect "Clients Only" label (0001-Fix-clients-only-check-for-PostgreSQL-16-and-later.patch,1.31 KB, patch)
2024-09-20 00:21 UTC, Torbjörn Lönnemark
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fariouche 2023-10-27 09:59:23 UTC
Since (at least) version 16 of postgresql, postmaster does not exist.
This makes the eselect report this:
Available PostgreSQL Slots
  14                        14.9
  16 *                      16.0 (Clients Only)

This is a minor bug as it seem to be display only
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-27 12:21:55 UTC
I imagine this is because USE=server was dropped.
Comment 2 Karl Hakimian 2023-11-17 13:24:12 UTC
This same thing is happening to me. Looks like eselect is looking for postmaster in the bin directory which in earlier releases was a link pointing to postgres. No such link exists in 16.
Comment 3 Aaron W. Swenson gentoo-dev 2024-02-28 03:21:02 UTC
(In reply to Karl Hakimian from comment #2)
> This same thing is happening to me. Looks like eselect is looking for
> postmaster in the bin directory which in earlier releases was a link
> pointing to postgres. No such link exists in 16.

You nailed it.

Much longer time ago it wasn't a symlink. It just wasn't thought about until now.
Comment 4 Torbjörn Lönnemark 2024-09-20 00:21:19 UTC
Created attachment 903398 [details, diff]
Fix for incorrect "Clients Only" label

Attaching patch with a fix. Applies against https://gitweb.gentoo.org/proj/postgresql/eselect.git/.

See commit message for full details.