Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cad10a18b3dad12b42f1a6487344868302363397
Ticket: 426679ef7d4da6bbfa209450ca2870e6ecc4f155
Having man.macros after .TH breaks rendering on OpenBSD and possibly others.
User & Date: stwo on 2013-11-04 14:53:46
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    On OpenBSD and possibly other systems, the .TH macro causes local macros to be loaded, overwriting some macros defined in man.macros, resulting in incorrectly rendered man pages.
    One fix is to move '.so man.macros' to after the .TH in all affected .n files.
    Another fix is to flip them around in unix/installManPage, similar to what is being done on OpenBSD.
    This also affects Tk and probably doctools, others.
    
    See http://marc.info/?l=openbsd-ports&m=138326304909098&w=2 for more information.
    Excerpt:
    "This is also explicitly encouraged by groff_man(7):
       FILES
         an-ext.tmac
           Note that the definitions for these macros are read after the
           call of TH, so they will replace macros of the same names
           given at the beginning of your file.  If you must use your
           own definitions for these macros, they must be given after
           calling TH.
    
    Yes, that will cause a bit of churn on their side because all manuals need a patch, but this doesn't affect only OpenBSD, all operating systems using a modern groff that has an-ext.tmac enabled by default will suffer from the same clash."
    
  5. foundin changed to: "all"
  6. is_private changed to: "0"
  7. login: "stwo"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "36034badbf4fa68e1e6f55bc81729916152660a8"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "stwo"
  14. subsystem changed to: "53. Configuration and Build Tools"
  15. title changed to:
    Having man.macros after .TH breaks rendering on OpenBSD and possibly others.
    
  16. type changed to: "Bug"