Bug 213762

Summary: makewhatis (mdocml) does not produce reproducible files for /usr/share/man or /usr/share/openssl/man
Product: Base System Reporter: Derek Schrock <dereks>
Component: binAssignee: Ed Maste <emaste>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: dch, emaste
Priority: --- Flags: emaste: mfc-stable11?
emaste: mfc-stable10-
emaste: mfc-stable9-
Version: 11.0-STABLE   
Hardware: Any   
OS: Any   

Description Derek Schrock 2016-10-24 23:30:22 UTC
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.
Comment 1 Ed Maste freebsd_committer freebsd_triage 2016-10-26 15:39:18 UTC
This was fixed in r307003 and will be merged to stable/11 in due course. An errata notice for 11.0 is TBD.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:40:41 UTC
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.