gentoo/dev-libs/zxcvbn-c/files/zxcvbn-c-2.5-gcc15.patch
Alfred Wingate 4021747e65
dev-libs/zxcvbn-c: libcxx-19 fix
Use upstream patch for gcc-15 so that both apply cleanly.

Closes: https://bugs.gentoo.org/958181
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42603
Closes: https://github.com/gentoo/gentoo/pull/42603
Signed-off-by: Sam James <sam@gentoo.org>
2025-06-15 23:28:52 +01:00

22 lines
790 B
Diff

https://bugs.gentoo.org/957161
https://github.com/tsyrogit/zxcvbn-c/commit/b9f30993c88d9057d7d95a1b059989f7853fd1b0
https://src.fedoraproject.org/rpms/zxcvbn-c/blob/rawhide/f/gcc15-c++23_fix.patch
https://github.com/tsyrogit/zxcvbn-c/pull/34
From b9f30993c88d9057d7d95a1b059989f7853fd1b0 Mon Sep 17 00:00:00 2001
From: Mattia Verga <mattia.verga@tiscali.it>
Date: Mon, 20 Jan 2025 09:04:12 +0100
Subject: [PATCH] Fix for GCC15/c++23
GCC 15 default standard is C++23. This include is needed to build zxcvbn with that language level.
--- a/dict-generate.cpp
+++ b/dict-generate.cpp
@@ -23,6 +23,7 @@
**********************************************************************************/
#include <algorithm>
+#include <cstdint>
#include <iostream>
#include <string>
#include <fstream>