Bug 262145 - dns/unbound: Fails to link (and fails to run) with lbnghttp2 with DOH=ON: warning: Unbound is not compiled with nghttp2
Summary: dns/unbound: Fails to link (and fails to run) with lbnghttp2 with DOH=ON: war...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kevin Bowling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-23 09:57 UTC by freebsd
Modified: 2022-02-26 22:33 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback+
koobs: merge-quarterly?


Attachments
compilation log of the port (120.96 KB, text/plain)
2022-02-23 09:57 UTC, freebsd
no flags Details
patch to fix the problem (667 bytes, patch)
2022-02-23 15:50 UTC, Jaap Akkerhuis
jaap: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd 2022-02-23 09:57:33 UTC
Created attachment 232035 [details]
compilation log of the port

Unbound 1.15, Whern starting it I get :
Feb 23 10:49:40 ice unbound[27499]: [27499:0] warning: Unbound is not compiled with nghttp2. This is required to use DNS-over-HTTPS.
Feb 23 10:49:40 ice syslogd: last message repeated 1 times


pkg info unbound is :

unbound-1.15.0
Name           : unbound
Version        : 1.15.0
Installed on   : Wed Feb 23 10:49:03 2022 CET
Origin         : dns/unbound
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : dns
Licenses       : BSD3CLAUSE
Maintainer     : jaap@NLnetLabs.nl
WWW            : https://www.nlnetlabs.nl/projects/unbound
Comment        : Validating, recursive, and caching DNS resolver
Options        :
        DEP-RSA1024    : off
        DNSCRYPT       : off
        DNSTAP         : off
        DOCS           : on
        DOH            : on
        ECDSA          : on
        EVAPI          : off
        FILTER_AAAA    : off
        GOST           : on
        HIREDIS        : off
        LIBEVENT       : on
        MUNIN_PLUGIN   : off
        PYTHON         : off
        SUBNET         : off
        TFOCL          : off
        TFOSE          : off
        THREADS        : on
Shared Libs required:
        libexpat.so.1
        libssl.so.11
        libcrypto.so.11
        libevent-2.1.so.7
Shared Libs provided:
        libunbound.so.8
Annotations    :
        FreeBSD_version: 1300139
        cpe            : cpe:2.3:a:nlnetlabs:unbound:1.15.0:::::freebsd13:x64
        repo_type      : binary
        repository     : poudriere
Flat size      : 7.73MiB

Compilation log shows the dependency on libnghttp2, but I did not find the linking phase (log attached)
Comment 1 Jaap Akkerhuis 2022-02-23 15:50:24 UTC
Created attachment 232047 [details]
patch to fix the problem
Comment 2 freebsd 2022-02-24 07:46:27 UTC
Thanks, Patch tested and it works
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-02-26 22:31:51 UTC
A commit in branch main references this bug:

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

commit ed63185054966d4432d27dfd5b8a6954450c31b1
Author:     Jaap Akkerhuis <jaap@NLnetLabs.nl>
AuthorDate: 2022-02-26 22:29:48 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2022-02-26 22:29:48 +0000

    dns/unbound: Fix DoH compilation

    PR:             262145
    Reported by:    freebsd@rail.eu.org
    Tested by:      freebsd@rail.eu.org

 dns/unbound/Makefile | 2 ++
 1 file changed, 2 insertions(+)