Bug 291342 - devel/autogen install does not distribute identity format converters
Summary: devel/autogen install does not distribute identity format converters
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-02 04:38 UTC by Dave Hart
Modified: 2025-12-02 04:39 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hart 2025-12-02 04:38:52 UTC
Attempting to modify ntpd/ntpdbase-opts.def and rebuild the resulting output files with Autogen 5.18.16 built from ports r2025Q4, I got an error message:

cd ../../ntpd &&        env PATH=[...] AUTOGEN_DNE_DATE=-D    autogen -L ../sntp/include -L ../sntp/ag-tpl --writable -DMAN_SECTION=1ntpdmdoc -Tagmdoc-cmd.tpl ntpd-opts.def
Error in template /usr/local/share/autogen/cmd-doc.tlib, line 219
        DEFINITIONS ERROR in /usr/local/share/autogen/cmd-doc.tlib line 219 for ntpd-opts.mdoc:
        Cannot locate converter for mdoc
Failing Guile command:  = = = = =

(define sec-type (string-upcase (get "ds-type")))
    (define sec-name (name-to-fname sec-type))
    (define cvt-fn (find-file (string-append
         (get "ds-format" "man") "2mdoc")))
    (if (not (defined? 'cvt-fn))
        (error (sprintf "Cannot locate converter for %s"
               (get "ds-format" "man"))))

    (define sec-file (string-append tmp-dir "/SEC/" sec-name))
    (access? sec-file R_OK)

=================================
*** Error code 2

I asked Autogen author Bruce Korb and ntpd's Autogen expert Harlan Stenn for guidance after determining by comparing with an Autogen 5.18.16 install that worked that ${prefix}/share/autogen was missing man2man, mdoc2mdoc, and texi2texi files.

Harlan provided the patch he's been using to correct this autoopts Makefile bug:

-=-=-=-
--- autoopts/Makefile.fcs       2022-07-07 22:31:27.965133000 -0700
+++ autoopts/Makefile.in        2022-07-07 22:43:49.749353000 -0700
@@ -457,8 +457,9 @@
      strneqvcmp.3                  strtransform.3

  nodist_pkgdata_DATA = $(libsrc) \
-    tpl/man2mdoc        tpl/man2texi        tpl/mdoc2man \
-    tpl/mdoc2texi       tpl/texi2man        tpl/texi2mdoc \
+    tpl/man2man         tpl/man2mdoc        tpl/man2texi \
+    tpl/mdoc2man        tpl/mdoc2mdoc       tpl/mdoc2texi \
+    tpl/texi2man        tpl/texi2mdoc       tpl/texi2texi \
      tpl/tpl-config.tlib

  nodist_libdata_DATA = tpl/tpl-config.tlib
-=-=-=-

I'd appreciate getting this fix into devel/autogen as it may be some time yet before Bruce has time to prepare another release.