summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-05-17 06:58:15 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-05-17 06:58:15 +0000
commitf767356f836788e2bb2843072155579fe8d8d214 (patch)
tree7ed4bc0347769cc58f966a3ab53cae3e75399b50 /dev-cpp
parent7d8a02204b7c59272f37d78bce96892db4bcb5e1 (diff)
downloadbaldeagleos-repo-f767356f836788e2bb2843072155579fe8d8d214.tar.gz
baldeagleos-repo-f767356f836788e2bb2843072155579fe8d8d214.tar.xz
baldeagleos-repo-f767356f836788e2bb2843072155579fe8d8d214.zip
Adding metadata
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/sol2/files/sol2-3.5.0-iterend.patch58
-rw-r--r--dev-cpp/sol2/sol2-3.5.0-r1.ebuild (renamed from dev-cpp/sol2/sol2-3.5.0.ebuild)1
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-cpp/sol2/files/sol2-3.5.0-iterend.patch b/dev-cpp/sol2/files/sol2-3.5.0-iterend.patch
new file mode 100644
index 000000000000..b7e8a1c4fcbf
--- /dev/null
+++ b/dev-cpp/sol2/files/sol2-3.5.0-iterend.patch
@@ -0,0 +1,58 @@
+https://github.com/ThePhD/sol2/pull/1676
+https://bugs.gentoo.org/955999
+
+From 8f80cd79f60613b96c877cec2bba3efee2a78225 Mon Sep 17 00:00:00 2001
+From: martin nylin <martin.nylin@gmail.com>
+Date: Tue, 11 Mar 2025 20:58:43 +0100
+Subject: [PATCH 1/2] Change end() to sen() in usertype_container.hpp
+
+---
+ include/sol/usertype_container.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/sol/usertype_container.hpp b/include/sol/usertype_container.hpp
+index 6d25d2a8..3ff81724 100644
+--- a/include/sol/usertype_container.hpp
++++ b/include/sol/usertype_container.hpp
+@@ -1189,7 +1189,7 @@ namespace sol {
+ static int next_associative(std::true_type, lua_State* L_) {
+ iter& i = stack::unqualified_get<user<iter>>(L_, 1);
+ auto& it = i.it();
+- auto& end = i.end();
++ auto& end = i.sen();
+ if (it == end) {
+ return stack::push(L_, lua_nil);
+ }
+
+From a6872ef46b08704b9069ebf83161f4637459ce63 Mon Sep 17 00:00:00 2001
+From: martin nylin <martin.nylin@gmail.com>
+Date: Tue, 11 Mar 2025 21:28:44 +0100
+Subject: [PATCH 2/2] Fix array index out of bounds in stack_field.hpp
+
+---
+ include/sol/stack_field.hpp | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/include/sol/stack_field.hpp b/include/sol/stack_field.hpp
+index 9dd66e2e..3b815225 100644
+--- a/include/sol/stack_field.hpp
++++ b/include/sol/stack_field.hpp
+@@ -113,7 +113,17 @@ namespace sol { namespace stack {
+ lua_getglobal(L, &key[0]);
+ }
+ else {
+- lua_getfield(L, tableindex, &key[0]);
++ if constexpr (std::is_same_v<std::decay_t<Key>, const char*>) {
++ // Handle const char* case
++ if (key != nullptr) {
++ lua_getfield(L, tableindex, key);
++ } else {
++ push(L, lua_nil);
++ }
++ } else {
++ // Handle std::string case
++ lua_getfield(L, tableindex, key.c_str());
++ }
+ }
+ }
+ else if constexpr (std::is_same_v<T, meta_function>) {
diff --git a/dev-cpp/sol2/sol2-3.5.0.ebuild b/dev-cpp/sol2/sol2-3.5.0-r1.ebuild
index 3d483db70d0e..131485c7116f 100644
--- a/dev-cpp/sol2/sol2-3.5.0.ebuild
+++ b/dev-cpp/sol2/sol2-3.5.0-r1.ebuild
@@ -32,6 +32,7 @@ PATCHES=(
"${FILESDIR}"/sol2-3.5.0-luajit-pkgconf.patch
"${FILESDIR}"/sol2-3.5.0-catch-depend.patch
"${FILESDIR}"/sol2-3.3.0-dont-install-tests.patch
+ "${FILESDIR}"/sol2-3.5.0-iterend.patch
)
src_configure() {