commit: 8d38aaad1a7e20f4877768e6a665a7b9bc29ed05 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Mon Aug 12 00:10:10 2024 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Mon Aug 12 19:42:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d38aaad
sci-libs/kineto: backport libfmt-11 build fix Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> .../files/kineto-0.4.0_p20240525-libfmt-11.patch | 91 ++++++++++++++++++++++ sci-libs/kineto/kineto-0.4.0_p20240525.ebuild | 1 + 2 files changed, 92 insertions(+) diff --git a/sci-libs/kineto/files/kineto-0.4.0_p20240525-libfmt-11.patch b/sci-libs/kineto/files/kineto-0.4.0_p20240525-libfmt-11.patch new file mode 100644 index 000000000000..d9ad7a3dbae9 --- /dev/null +++ b/sci-libs/kineto/files/kineto-0.4.0_p20240525-libfmt-11.patch @@ -0,0 +1,91 @@ +https://github.com/pytorch/kineto/commit/eb34f147f2af821da931c18457c26b076c8491dd +https://github.com/pytorch/kineto/pull/959 +https://github.com/pytorch/kineto/issues/958 + +From eb34f147f2af821da931c18457c26b076c8491dd Mon Sep 17 00:00:00 2001 +From: Aaron Gokaslan <[email protected]> +Date: Fri, 12 Jul 2024 09:23:33 -0700 +Subject: [PATCH] Update libfmt to 11-0-0. Closes #958. (#959) + +Summary: +Fixes https://github.com/pytorch/kineto/issues/958 + +Pull Request resolved: https://github.com/pytorch/kineto/pull/959 + +Reviewed By: davidberard98, yoyoyocmu + +Differential Revision: D59637583 + +Pulled By: aaronenyeshi + +fbshipit-source-id: 48def339ed3097ecb4746d7870203040ac535858 +--- a/src/Config.cpp ++++ b/src/Config.cpp +@@ -12,6 +12,7 @@ + + #include <fmt/chrono.h> + #include <fmt/format.h> ++#include <fmt/ranges.h> + #include <chrono> + #include <fstream> + #include <functional> +--- a/src/CuptiRangeProfilerConfig.cpp ++++ b/src/CuptiRangeProfilerConfig.cpp +@@ -12,6 +12,7 @@ + #include <stdlib.h> + + #include <fmt/format.h> ++#include <fmt/ranges.h> + #include <ostream> + + +--- a/src/DeviceProperties.cpp ++++ b/src/DeviceProperties.cpp +@@ -9,6 +9,7 @@ + #include "DeviceProperties.h" + + #include <fmt/format.h> ++#include <fmt/ranges.h> + #include <vector> + + #if defined(HAS_CUPTI) +--- a/src/EventProfiler.cpp ++++ b/src/EventProfiler.cpp +@@ -10,6 +10,7 @@ + + #include <assert.h> + #include <fmt/format.h> ++#include <fmt/ranges.h> + #include <time.h> + #include <algorithm> + #include <cmath> +--- a/test/CuptiActivityProfilerTest.cpp ++++ b/test/CuptiActivityProfilerTest.cpp +@@ -7,6 +7,7 @@ + */ + + #include <fmt/format.h> ++#include <fmt/ranges.h> + #include <folly/json/json.h> + #include <gmock/gmock.h> + #include <gtest/gtest.h> +--- a/test/CuptiRangeProfilerConfigTest.cpp ++++ b/test/CuptiRangeProfilerConfigTest.cpp +@@ -10,6 +10,7 @@ + #include "src/CuptiRangeProfilerConfig.h" + + #include <fmt/format.h> ++#include <fmt/ranges.h> + #include <gtest/gtest.h> + #include <time.h> + #include <chrono> +--- a/test/CuptiRangeProfilerTest.cpp ++++ b/test/CuptiRangeProfilerTest.cpp +@@ -16,6 +16,9 @@ + #include <fcntl.h> + #endif + ++#include <fmt/format.h> ++#include <fmt/ranges.h> ++ + #include "include/libkineto.h" diff --git a/sci-libs/kineto/kineto-0.4.0_p20240525.ebuild b/sci-libs/kineto/kineto-0.4.0_p20240525.ebuild index ecabcbb39cff..bf65eb454709 100644 --- a/sci-libs/kineto/kineto-0.4.0_p20240525.ebuild +++ b/sci-libs/kineto/kineto-0.4.0_p20240525.ebuild @@ -32,6 +32,7 @@ RESTRICT="!test? ( test )" PATCHES=( "${FILESDIR}"/${PN}-0.4.0-gcc13.patch + "${FILESDIR}"/kineto-0.4.0_p20240525-libfmt-11.patch ) src_prepare() {
