Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956485 - dev-games/godot-4.4.1: mbedtls/ctr_drbg.h: no such file or directory
Summary: dev-games/godot-4.4.1: mbedtls/ctr_drbg.h: no such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-23 10:22 UTC by setun.90
Modified: 2025-05-23 11:13 UTC (History)
5 users (show)

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


Attachments
build.log (dev-games_godot-4.4.1.build.log,861.58 KB, text/x-log)
2025-05-23 10:23 UTC, setun.90
Details
emerge --info '=dev-games/godot-4.4.1::gentoo' output (dev-games_godot-4.4.1.emerge-info.log,20.32 KB, text/x-log)
2025-05-23 10:23 UTC, setun.90
Details
emerge -pqv '=dev-games/godot-4.4.1::gentoo' output (dev-games_godot-4.4.1.emerge-pqv.log,169 bytes, text/x-log)
2025-05-23 10:24 UTC, setun.90
Details

Note You need to log in before you can comment on or make changes to this bug.
Description setun.90 2025-05-23 10:22:00 UTC
g++ fails to compile modules/mbedtls/dtls_server_mbedtls.cpp because it cannot find /usr/include/mbedtls3/mbedtls/ctr_drbg.h.

Reproducible: Always

Steps to Reproduce:
1. emerge net-libs/mbedtls
2. emerge godot
Actual Results:  
g++: modules/mbedtls/crypto_mbedtls.h:36:10: fatal error: mbedtls/ctr_drbg.h: No such file or directory

Expected Results:  
Compilation succeeds.

This practically the exact same error as https://bugs.gentoo.org/947592 - maybe something from there could be reused?
Comment 1 setun.90 2025-05-23 10:23:03 UTC
Created attachment 929348 [details]
build.log
Comment 2 setun.90 2025-05-23 10:23:43 UTC
Created attachment 929349 [details]
emerge --info '=dev-games/godot-4.4.1::gentoo' output
Comment 3 setun.90 2025-05-23 10:24:28 UTC
Created attachment 929350 [details]
emerge -pqv '=dev-games/godot-4.4.1::gentoo' output
Comment 4 Ionen Wolkens gentoo-dev 2025-05-23 10:56:04 UTC
It is unrelated to that other bug, seems this got broken by https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dba0ce0f7c9

It's looking for the old pkg-config names right now, so the -I/usr/include/mbedtls3 is not being added.

I'll try to adjust so it works with both.

This may possibly have broken more packages, CC'ing mbedtls maintainer for the record.
Comment 5 Larry the Git Cow gentoo-dev 2025-05-23 11:13:24 UTC
The bug has been closed via the following commit(s):

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

commit fd42e686491a13a0829d47bbe34cb9206b78c204
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2025-05-23 11:09:42 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2025-05-23 11:13:00 +0000

    dev-games/godot: update for renamed mbedtls:3 .pc files
    
    Haven't tested a full build, but -I is being added again
    so it should hopefully be fine.
    
    Was thinking to make it work with old mbedlts3.pc too, but
    simpler to just add a lower bound to get mbedtls-3.pc.
    
    Closes: https://bugs.gentoo.org/956485
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-games/godot/godot-4.4.1.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)