Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620244 - dev-db/postgresql: Slot-Specific Symlinks to man Pages Broken
Summary: dev-db/postgresql: Slot-Specific Symlinks to man Pages Broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-31 08:16 UTC by Frank Limpert
Modified: 2017-07-13 19:14 UTC (History)
1 user (show)

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


Attachments
emerge --info dev-db/postgresql:9.6 (emerge-info.bz2,2.70 KB, application/x-bzip)
2017-05-31 08:16 UTC, Frank Limpert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Limpert 2017-05-31 08:16:14 UTC
Created attachment 474730 [details]
emerge --info dev-db/postgresql:9.6

symlinks in /usr/share/man/man7 for dev-db/postgresql-9.6.3 are dead

example:
# ls -l /usr/share/man/man7/VALUES*
/usr/share/man/man7/VALUES.7.bz2 -> ../../postgresql-9.6/man/man7/VALUES.7.bz2
/usr/share/man/man7/VALUES95.7.bz2 -> ../../postgresql-9.5/man/man7/VALUES.7.bz2
/usr/share/man/man7/VALUES96.7 -> ../../postgresql-9.6/man/man7/VALUES.7

ok for postgresql-9.5.7:
# ls -l /usr/share/postgresql-9.5/man/man7/VAL*
/usr/share/postgresql-9.5/man/man7/VALUES.7.bz2

but broken here:
# ls -l /usr/share/postgresql-9.6/man/man7/VAL*
/usr/share/postgresql-9.6/man/man7/VALUES.7.bz2

my guess: In the ebuild, the order of compressing and symlinking of those man pages got reversed somehow.
Comment 1 Frank Limpert 2017-05-31 08:34:50 UTC
Not only symlinks in man7 are affected.
After re-emerging dev-db/postgresql:9.6 and switching back and forth eselect postgresql, I found also symlinks in /usr/share/man/man1 and /usr/share/man/man3 dead for the same reason: pointing to the un-compressed man pages.

# equery l 'eselect*'
app-admin/eselect-1.4.8
app-eselect/eselect-blas-0.1
app-eselect/eselect-ctags-1.18
app-eselect/eselect-fontconfig-1.1
app-eselect/eselect-java-0.3.0
app-eselect/eselect-postgresql-2.1
app-eselect/eselect-python-20160516
app-eselect/eselect-vi-1.1.9
app-eselect/eselect-wxwidgets-20140423
Comment 2 Aaron W. Swenson gentoo-dev 2017-05-31 19:03:21 UTC
Hmm, this is a problem.

On my desktop and laptop, the symlinks are fine. (The laptop's man pages didn't get compressed, though....)

However, on the server, all broken.

The ebuilds do a doins, followed by docompress, then it creates the symlinks.

At the moment, I have no inkling as to the inconsistency as my desktop has the same version of everything the server uses, as far as I know.
Comment 3 Aaron W. Swenson gentoo-dev 2017-07-13 19:14:51 UTC
commit 099885d492e52d178f6d8b6bb27e747f83d29b65
Author: Aaron W. Swenson <titanofold@gentoo.org>
Date:   Thu Jul 13 15:07:35 2017 -0400

    dev-db/postgresql: Spinlocks, pushd, and man

    All versions now generate slotted man pages instead of using
        symlinks. This is cleaner, and won’t result in broken
        links. You can
            now run ‘man psql96’ (or similar) and actually get the man
        page for
            psql, version 9.6.x.

    10_beta2 and 9999 now dies if it can’t pushd into the directory it
        needs to be in when generating the man pages.

    Re-disabled spinlocks for versions 9.5 and after. Somehow this got
        excluded from the 9.6 release.

    Package-Manager: Portage-2.3.6, Repoman-2.3.1