Bug 276887 - man pages missing
Summary: man pages missing
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-08 08:20 UTC by Martin Birgmeier
Modified: 2024-02-08 20:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2024-02-08 08:20:35 UTC
Scenario:
- FreeBSD main at 63007e46110d7f7a1f9d48fbac99f8a5bc166456 + some minor local patches
- Building in a VM running main at faa9839aee95 using 'make buildworld buildkernel ...'
- Installing using 'make installkernel installworld ... DESTDIR=/usr/tmp/x ...'

Result:
- Many man pages in /usr/share/man/man2 are missing, e.g., accept.2

Hint:
- It seems they are related to libsys, although they should be in libc (according to what the man page says).

-- Martin
Comment 1 Martin Birgmeier 2024-02-08 09:46:33 UTC
(The faa9839aee95 above should be 9bbe06b004e2cadb55a3792c77991ee640bf0f52 + minor local changes.)
Comment 2 Brooks Davis freebsd_committer freebsd_triage 2024-02-08 18:08:38 UTC
I see what I got wrong and will fix it shortly.

Which library should install the manages is debatable. On one hand, libsys does provide the implementation for dynamically linked programs, other the other, libc also exposes the symbols and linking with libc is the primarily way to obtain them.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-02-08 19:54:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=d5677b0b8b8a1505edeaafab5606c4f890c1a42d

commit d5677b0b8b8a1505edeaafab5606c4f890c1a42d
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-02-08 18:21:56 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-02-08 19:53:29 +0000

    libsys: actually install manpages

    In initial hacking I'd bluntly disabled manpage installation in libsys,
    then later disabled them for libc, but forgot to fix the former leading
    to no syscall manapages.

    PR:             276887
    Reported by:    Martin Birgmeier <d8zNeCFG@aon.at>

 lib/libsys/Makefile | 8 --------
 1 file changed, 8 deletions(-)
Comment 4 Brooks Davis freebsd_committer freebsd_triage 2024-02-08 20:13:37 UTC
Should be fixed now. Thanks for the report!