Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937997 - net-libs/gnutls-3.8.7.1 fails to compile: brotlienc.h:11:10: fatal error: encode.h: No such file or directory
Summary: net-libs/gnutls-3.8.7.1 fails to compile: brotlienc.h:11:10: fatal error: enc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
: 938016 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-08-16 05:52 UTC by Agostino Sarubbo
Modified: 2024-08-16 23:28 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,35.44 KB, application/x-xz)
2024-08-16 05:52 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-08-16 05:52:06 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/gnutls-3.8.7.1 fails to compile.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-08-16 05:52:07 UTC
Created attachment 900237 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-08-16 05:52:07 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


*** The DNSSEC root key file in /etc/dnssec/root-anchors.txt was not found.
/var/tmp/portage/net-libs/gnutls-3.8.7.1/work/gnutls-3.8.7/lib/dlwrap/brotlidec.h:11:10: fatal error: brotli/decode.h: No such file or directory
/var/tmp/portage/net-libs/gnutls-3.8.7.1/work/gnutls-3.8.7/lib/dlwrap/brotlienc.h:11:10: fatal error: brotli/encode.h: No such file or directory
/var/tmp/portage/net-libs/gnutls-3.8.7.1/work/gnutls-3.8.7/lib/dlwrap/brotlienc.h:11:10: fatal error: brotli/encode.h: No such file or directory
Comment 3 Holger Hoffstätte 2024-08-16 07:40:56 UTC
Not sure if we should mask 3.8.7 for now since it seems it completely ignores (or botched) the "--without-brotli" configuration. Probably a bug due to https://gitlab.com/gnutls/gnutls/-/commit/3e5be1315a15ac6e1e33e08f28030b8215b6d234
Comment 4 Holger Hoffstätte 2024-08-16 07:53:19 UTC
Turns out there's a PR for that:

https://gitlab.com/gnutls/gnutls/-/merge_requests/1867

With that patch it builds when configured --without-brotli or brotli is not installed.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-16 23:21:28 UTC
*** Bug 938016 has been marked as a duplicate of this bug. ***
Comment 6 Larry the Git Cow gentoo-dev 2024-08-16 23:28:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2af3693a618cef6ede54b783d048767482ae21a6

commit 2af3693a618cef6ede54b783d048767482ae21a6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-08-16 23:24:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-16 23:25:12 +0000

    net-libs/gnutls: fix configure handling of brotli args
    
    Revbump given it could be automagic.
    
    Closes: https://bugs.gentoo.org/937997
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gnutls-3.8.7.1-configure-brotli.patch    | 156 +++++++++++++++++++++
 ...tls-3.8.7.1.ebuild => gnutls-3.8.7.1-r1.ebuild} |  11 +-
 2 files changed, 165 insertions(+), 2 deletions(-)