diff options
| author | Kostadin Shishmanov <kostadinshishmanov@protonmail.com> | 2025-03-13 13:37:40 +0200 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-03-13 12:04:44 +0000 |
| commit | ba2d0b8b9a1fd2ff95813a9b1a1b560e54bbf6a6 (patch) | |
| tree | 28877b8d9a538c8d1137abb35b1507aba05bcc23 /dev-cpp | |
| parent | 037da3a0849c3fd89171cebf4fd423f81f996b2b (diff) | |
| download | gentoo-ba2d0b8b9a1fd2ff95813a9b1a1b560e54bbf6a6.tar.gz gentoo-ba2d0b8b9a1fd2ff95813a9b1a1b560e54bbf6a6.tar.bz2 gentoo-ba2d0b8b9a1fd2ff95813a9b1a1b560e54bbf6a6.zip | |
dev-cpp/elfio: fix build with gcc 15, remove CMake variable
Backport upstream commit [1] to fix build with gcc 15 and get rid of
CMake variable that is obsolete and is not getting used.
[1] https://github.com/serge1/ELFIO/commit/34d2c64
Closes: https://bugs.gentoo.org/881859
Closes: https://bugs.gentoo.org/937460
Signed-off-by: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/41057
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp')
| -rw-r--r-- | dev-cpp/elfio/elfio-3.12.ebuild | 4 | ||||
| -rw-r--r-- | dev-cpp/elfio/files/elfio-3.12-gcc15.patch | 24 |
2 files changed, 26 insertions, 2 deletions
diff --git a/dev-cpp/elfio/elfio-3.12.ebuild b/dev-cpp/elfio/elfio-3.12.ebuild index eb255680b9c4..621f3eda2dc0 100644 --- a/dev-cpp/elfio/elfio-3.12.ebuild +++ b/dev-cpp/elfio/elfio-3.12.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2023 Gentoo Authors +# Copyright 2020-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -20,11 +20,11 @@ DEPEND="test? ( dev-cpp/gtest )" PATCHES=( "${FILESDIR}"/${PN}-3.12-gnuinstalldirs-docdir.patch + "${FILESDIR}"/${PN}-3.12-gcc15.patch ) src_configure() { local mycmakeargs=( - -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DELFIO_BUILD_TESTS=$(usex test) ) diff --git a/dev-cpp/elfio/files/elfio-3.12-gcc15.patch b/dev-cpp/elfio/files/elfio-3.12-gcc15.patch new file mode 100644 index 000000000000..805da1564891 --- /dev/null +++ b/dev-cpp/elfio/files/elfio-3.12-gcc15.patch @@ -0,0 +1,24 @@ +https://bugs.gentoo.org/937460 + +From 34d2c64237bb40f09879e7421db120e50e7e2923 Mon Sep 17 00:00:00 2001 +From: Orion Poplawski <orion@nwra.com> +Date: Fri, 31 Jan 2025 20:22:26 -0700 +Subject: [PATCH] Add missing #include <stdint.h> for gcc 15 + +--- + elfio/elf_types.hpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/elfio/elf_types.hpp b/elfio/elf_types.hpp +index 3a6850a..cd9aa7f 100644 +--- a/elfio/elf_types.hpp ++++ b/elfio/elf_types.hpp +@@ -23,6 +23,8 @@ THE SOFTWARE. + #ifndef ELFTYPES_H + #define ELFTYPES_H + ++#include <stdint.h> ++ + #ifdef __cplusplus + namespace ELFIO { + #endif |
