Bug 264298 - security/libu2f-host: Build fails when DOCS is turned off
Summary: security/libu2f-host: Build fails when DOCS is turned off
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Craig Leres
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-27 20:40 UTC by Craig Leres
Modified: 2022-06-05 20:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer freebsd_triage 2022-05-27 20:40:43 UTC
libu2f-host fails to configure when DOCS is off:

    ===>  Configuring for libu2f-host-1.1.10_1
    /bin/sh: /usr/local/bin/gtkdocize: not found
    ===>  Mk/Uses/autoreconf.mk: Error running gtkdocize
    *** Error code 1

The issue seems to be that the configure script assumes gtk-doc is always available. I see two main options to fix this. One is to patch things to allow building without gtk-doc. The other is to remove the DOCS option.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-06-05 20:49:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6bcbed3a624c056ec373410b1eef68c3163886f0

commit 6bcbed3a624c056ec373410b1eef68c3163886f0
Author:     Craig Leres <leres@FreeBSD.org>
AuthorDate: 2022-06-05 20:47:54 +0000
Commit:     Craig Leres <leres@FreeBSD.org>
CommitDate: 2022-06-05 20:47:54 +0000

    security/libu2f-host: Unbreak build with DOCS disabled

    libu2f-host does not successfully configure unless gtk-doc is present
    and enabled:

        ===>  Configuring for libu2f-host-1.1.10_1
        /bin/sh: /usr/local/bin/gtkdocize: not found
        ===>  Mk/Uses/autoreconf.mk: Error running gtkdocize
        *** Error code 1

    So: always enable gtk-doc and build DOCS things just don't install
    them.

    PR:             264298

 security/libu2f-host/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)