Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jun 2026 10:05:19 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 116f2c2eece4 - main - devel/level-zero: try to unbreak the port's build on 32-bit arches
Message-ID:  <6a1d595f.3af25.409ef29b@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=116f2c2eece4145e98f4130eab85d2838ba255e8

commit 116f2c2eece4145e98f4130eab85d2838ba255e8
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2026-06-01 10:04:00 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2026-06-01 10:04:00 +0000

    devel/level-zero: try to unbreak the port's build on 32-bit arches
    
    There's no point to provide a `size_t' overload in the presence of
    both `uint32_t' and `uint64_t' ones, since one of them will clash.
    
    Reported by:    pkg-fallout
---
 .../files/patch-source_utils_ze__to__string.h      | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/devel/level-zero/files/patch-source_utils_ze__to__string.h b/devel/level-zero/files/patch-source_utils_ze__to__string.h
new file mode 100644
index 000000000000..fd99525b7ead
--- /dev/null
+++ b/devel/level-zero/files/patch-source_utils_ze__to__string.h
@@ -0,0 +1,25 @@
+--- source/utils/ze_to_string.h.orig	2026-05-11 20:15:36 UTC
++++ source/utils/ze_to_string.h
+@@ -128,9 +128,6 @@ inline std::string to_string(uint8_t value) { return s
+ inline std::string to_string(uint16_t value) { return std::to_string(value); }
+ inline std::string to_string(int32_t value) { return std::to_string(value); }
+ inline std::string to_string(int64_t value) { return std::to_string(value); }
+-#if SIZE_MAX != UINT64_MAX
+-inline std::string to_string(size_t value) { return std::to_string(value); }
+-#endif
+ inline std::string to_string(double value) { return std::to_string(value); }
+ inline std::string to_string(const char* str) {
+     if (!str) return "nullptr";
+@@ -162,12 +159,6 @@ inline std::string to_string(const int64_t* ptr) {
+     if (!ptr) return "nullptr";
+     return to_string(*ptr);
+ }
+-#if SIZE_MAX != UINT64_MAX
+-inline std::string to_string(const size_t* ptr) {
+-    if (!ptr) return "nullptr";
+-    return to_string(*ptr);
+-}
+-#endif
+ inline std::string to_string(const double* ptr) {
+     if (!ptr) return "nullptr";
+     return to_string(*ptr);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1d595f.3af25.409ef29b>