sci-libs/dlib: fix misssing include, support GCC 15.x

Closes: https://bugs.gentoo.org/939094
Signed-off-by: Vladislav Mikhailikov <vmikhailikov@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44760
Closes: https://github.com/gentoo/gentoo/pull/44760
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
Vladislav Mikhailikov 2025-11-24 23:15:53 +03:00 committed by Nowa Ammerlaan
parent 72595fc1f9
commit f7557b5422
No known key found for this signature in database
GPG Key ID: A2E2304370447E8E
2 changed files with 28 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -45,6 +45,11 @@ BDEPEND="
DOCS=( docs/README.txt )
PATCHES=(
# Bug 939094
"${FILESDIR}/${PN}-missing-include.patch"
)
src_prepare() {
use cuda && cuda_src_prepare
cmake_src_prepare

View File

@ -0,0 +1,22 @@
From dab9aa1fa5ae245c2f8becf1396205f7655b1c01 Mon Sep 17 00:00:00 2001
From: pfeatherstone <45853521+pfeatherstone@users.noreply.github.com>
Date: Thu, 18 May 2023 13:03:15 +0100
Subject: [PATCH] missing include (#2798)
Co-authored-by: pf <pf@me>
---
dlib/type_traits.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlib/type_traits.h b/dlib/type_traits.h
index 8391050699..a5bb863278 100644
--- a/dlib/type_traits.h
+++ b/dlib/type_traits.h
@@ -10,6 +10,7 @@
*/
#include <type_traits>
+#include <cstdint>
namespace dlib
{