Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618294 - app-eselect/eselect-postgresql-2.0 does not support noman feature
Summary: app-eselect/eselect-postgresql-2.0 does not support noman feature
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-12 14:24 UTC by Andrew Aladjev
Modified: 2017-05-19 14:38 UTC (History)
0 users

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


Attachments
check-man-dir.patch (check-man-dir.patch,697 bytes, patch)
2017-05-12 15:27 UTC, Aaron W. Swenson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Aladjev 2017-05-12 14:24:41 UTC
Hello. I've found a small nasty issue. Please open "/usr/share/eselect/modules/postgresql.eselect"

```
# Link man pages
local mandir mansec
for mandir in "${USR_PATH}"/share/postgresql-${slot}/man/man{1,3,7} ; do
    mansec=$(basename "${mandir}")
    linker "${mandir}" "" "${USR_PATH}/share/man/${mansec}"
done

# Default share path - use a relative link here by just specifying the
# base name
ln -s "postgresql-${slot}" "${USR_PATH}/share/postgresql"

echo "success!"
```

When you have no man directory "share/man" doesn't exist, so linker will fail. Postgresql ebuild itself will ignore this error. Why?

When you have no `/usr/share/postgresql` symlink eselect won't see any postgresql installed and postgresql become unusable.
Comment 1 Aaron W. Swenson gentoo-dev 2017-05-12 15:27:31 UTC
Created attachment 472406 [details, diff]
check-man-dir.patch

Please give the attached patch a go. I can get it committed today if it works.
Comment 2 Andrew Aladjev 2017-05-15 22:39:13 UTC
It works fine, thank you.
Comment 3 Aaron W. Swenson gentoo-dev 2017-05-19 14:38:15 UTC
commit c6e6dd540dd4b4b4197b776fcd2847ad69f1f471
Author: Aaron W. Swenson <titanofold@gentoo.org>
Date:   Fri May 19 10:37:04 2017 -0400

    app-eselect/eselect-postgresql: Support FEATURES="noman"
    
    Version bump to 2.1 brings support for FEATURES="noman".
    
    Bug: 618294
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1