From f7557b5422a11a722789b6c18d3dc1fce30d810f Mon Sep 17 00:00:00 2001 From: Vladislav Mikhailikov Date: Mon, 24 Nov 2025 23:15:53 +0300 Subject: [PATCH] sci-libs/dlib: fix misssing include, support GCC 15.x Closes: https://bugs.gentoo.org/939094 Signed-off-by: Vladislav Mikhailikov Part-of: https://github.com/gentoo/gentoo/pull/44760 Closes: https://github.com/gentoo/gentoo/pull/44760 Signed-off-by: Nowa Ammerlaan --- sci-libs/dlib/dlib-19.24.2.ebuild | 7 +++++- .../dlib/files/dlib-missing-include.patch | 22 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 sci-libs/dlib/files/dlib-missing-include.patch 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 <45853521+pfeatherstone@users.noreply.github.com> +Date: Thu, 18 May 2023 13:03:15 +0100 +Subject: [PATCH] missing include (#2798) + +Co-authored-by: pf +--- + 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 ++#include + + namespace dlib + {