commit:     f7557b5422a11a722789b6c18d3dc1fce30d810f
Author:     Vladislav Mikhailikov <vmikhailikov <AT> gmail <DOT> com>
AuthorDate: Mon Nov 24 20:15:53 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Wed Nov 26 17:11:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7557b54

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

Closes: https://bugs.gentoo.org/939094
Signed-off-by: Vladislav Mikhailikov <vmikhailikov <AT> 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 <AT> gentoo.org>

 sci-libs/dlib/dlib-19.24.2.ebuild              |  7 ++++++-
 sci-libs/dlib/files/dlib-missing-include.patch | 22 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/sci-libs/dlib/dlib-19.24.2.ebuild 
b/sci-libs/dlib/dlib-19.24.2.ebuild
index f7967da999d3..eb0b0fea40a1 100644
--- a/sci-libs/dlib/dlib-19.24.2.ebuild
+++ b/sci-libs/dlib/dlib-19.24.2.ebuild
@@ -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

diff --git a/sci-libs/dlib/files/dlib-missing-include.patch 
b/sci-libs/dlib/files/dlib-missing-include.patch
new file mode 100644
index 000000000000..41b556d09d48
--- /dev/null
+++ b/sci-libs/dlib/files/dlib-missing-include.patch
@@ -0,0 +1,22 @@
+From dab9aa1fa5ae245c2f8becf1396205f7655b1c01 Mon Sep 17 00:00:00 2001
+From: pfeatherstone <[email protected]>
+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
+ {

Reply via email to