Under 11.0-RELEASE when periodic weekly runs makewhatis is ran to rebuild man whatis dbs and in turn mandoc.db files are also created. After a fresh install or updated to 11.0-RELEASE letting 'periodic weekly' or running on makewhatis on the problematic directories (/usr/share/man and /usr/share/openssl/man) and running 'freebsd-update fetch' freebsd-update attempt to update the mandoc.db files. This repeats if you update via 'freebsd-update install' the next time 320.whatis is ran (weekly). root@mandoc:~ # freebsd-update fetch src component not installed, skipped Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 11.0-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 11.0-RELEASE-p1. root@mandoc:~ # makewhatis /usr/share/man/ root@mandoc:~ # makewhatis /usr/share/openssl/man/ root@mandoc:~ # freebsd-update fetch src component not installed, skipped Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 11.0-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. Fetching 1 files... done. The following files will be updated as part of updating to 11.0-RELEASE-p1: /usr/share/man/mandoc.db /usr/share/openssl/man/mandoc.db It appears mdocml is producing different files because of the AUTOINCREMENT fields in the macdoc.db files.
This was fixed in r307003 and will be merged to stable/11 in due course. An errata notice for 11.0 is TBD.
batch change: For bugs that match the following - Status Is In progress AND - Untouched since 2018-01-01. AND - Affects Base System OR Documentation DO: Reset to open status. Note: I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Fixed by https://svnweb.freebsd.org/base?view=revision&revision=307003 Reviewed https://reviews.freebsd.org/D8213 HEAD: https://svnweb.freebsd.org/base/head/contrib/mdocml/mandocdb.c?view=markup 11.1: https://svnweb.freebsd.org/base/release/11.1.0/contrib/mdocml/mandocdb.c?view=markup