Page MenuHomeFreeBSD

libpathconv: Document library in the man pages
ClosedPublic

Authored by tembun_bk.ru on Dec 13 2025, 4:59 PM.
Referenced Files
Unknown Object (File)
Tue, Jan 20, 8:13 AM
Unknown Object (File)
Tue, Jan 20, 5:25 AM
Unknown Object (File)
Mon, Jan 19, 7:06 PM
Unknown Object (File)
Sun, Jan 18, 10:27 AM
Unknown Object (File)
Thu, Jan 15, 10:13 AM
Unknown Object (File)
Thu, Jan 1, 9:20 PM
Unknown Object (File)
Tue, Dec 30, 2:15 PM
Unknown Object (File)
Dec 19 2025, 10:51 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

@ziaee I'm sorry, but I'm not sure, whom should I also request the review from?

contrib/mandoc/lib.in
95 ↗(On Diff #167971)

What does this enable?

whom should I also request the review from?

I use git log on the file or directory in question and see who's been working on the logic. In this case, nobody's really touched it since Julian over half a decade ago. So, src-comitters (like you did) is probably a good move.

contrib/mandoc/lib.in
95 ↗(On Diff #167971)

It puts additional text in the library section, but the library section was deprecated by upstream

lib/libpathconv/abs2rel.3
33

The library section is deprecated, upstream is saying to put the Lb macro at the top of SYNOPSIS.

lib/libpathconv/rel2abs.3
32

The library section is deprecated, upstream is saying to put the Lb macro at the top of SYNOPSIS.

I use git log on the file or directory in question and see who's been working on the logic. In this case, nobody's really touched it since Julian over half a decade ago. So, src-comitters (like you did) is probably a good move.

OK, thanks for the advice!

contrib/mandoc/lib.in
95 ↗(On Diff #167971)

Does it mean that information (library descriptions) from this file is not needed anymore? So, as I can see, if we put .Lb in SYNOPSIS section, it will print /* -lname */ and nothing else. If that's enough, then OK, I'm just not sure.

contrib/mandoc/lib.in
95 ↗(On Diff #167971)

Hm, that's not clear yet.

Reposting here for visibility, from another thread. This is everything I know:

This advice comes from the mdoc(7) manual [^0]. I imported this change from upstream mdoc.7 version 1.298 [^1] which says:

LIBRARY
The name of the library containing the documented functions.  Using this section is no longer recommended. If any Lb macro is needed, put it at the beginning of the SYNOPSIS section instead.

It seems to have first been proposed on the groff mailing list [^2].

I tried to notify everyone with a mail to freebsd-current@ [^3] in June when when I imported the change in commit 4c07abdbacf4 [^4], but nobody said anything.

[^0]: https://man.freebsd.org/cgi/man.cgi?query=mdoc&apropos=0&sektion=0&manpath=FreeBSD+16.0-CURRENT&arch=default&format=html
[^1]: https://cvsweb.bsd.lv/mandoc/mdoc.7?rev=1.298&content-type=text/x-cvsweb-markup&sortby=date
[^2]: https://lists.gnu.org/archive/html/groff/2025-06/msg00004.html
[^3]: https://lists.freebsd.org/archives/freebsd-current/2025-June/007907.html
[^4]: https://cgit.freebsd.org/src/log/?qt=range&q=4c07abdbacf4&showmsg=1

michaelo added a subscriber: michaelo.

I removed all committers from reviewers because most of us cannot contribute here.

contrib/mandoc/lib.in
95 ↗(On Diff #167971)

Yea. I asked because I thought it was obsolete. And also changes contrib. We have a complex history with mdoc and it struck me as unlikely to be accepted upstream. If it wasn't critical, i thought it would be best to drop it.

tembun_bk.ru edited the summary of this revision. (Show Details)
tembun_bk.ru removed a project: committers.

Move .Lb in SYNOPSIS section and do not change contrib/mandoc/lib.in.

This revision is now accepted and ready to land.Dec 16 2025, 5:30 PM
This revision was automatically updated to reflect the committed changes.