summaryrefslogtreecommitdiff
path: root/dev-lua
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-20 03:01:54 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-20 03:01:54 -0500
commitb8e997d669f2779a6f954a9ce5cfb887d0ee91e8 (patch)
treec20220a94b4fc7a65b110c2ab41765671acc5530 /dev-lua
parentfd47b082ab0da4bc79447a8e2bfb7e77dd71874d (diff)
downloadbaldeagleos-repo-b8e997d669f2779a6f954a9ce5cfb887d0ee91e8.tar.gz
baldeagleos-repo-b8e997d669f2779a6f954a9ce5cfb887d0ee91e8.tar.xz
baldeagleos-repo-b8e997d669f2779a6f954a9ce5cfb887d0ee91e8.zip
Adding metadata
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/lgi/files/lgi-0.9.2-skip_tests_5-1.patch32
-rw-r--r--dev-lua/lgi/lgi-0.9.2_p20251219.ebuild1
-rw-r--r--dev-lua/lgi/lgi-0.9.2_p20260407.ebuild1
3 files changed, 34 insertions, 0 deletions
diff --git a/dev-lua/lgi/files/lgi-0.9.2-skip_tests_5-1.patch b/dev-lua/lgi/files/lgi-0.9.2-skip_tests_5-1.patch
new file mode 100644
index 000000000000..a4f17772ca66
--- /dev/null
+++ b/dev-lua/lgi/files/lgi-0.9.2-skip_tests_5-1.patch
@@ -0,0 +1,32 @@
+See https://bugs.gentoo.org/836839 and https://github.com/lgi-devs/lgi/issues/353
+FP conversion in Lua 5.1/32bit cannot represent exactly large unsigned integers
+Skip tests w/ large unsigned if lua-5.1
+--- a/tests/gireg.lua
++++ b/tests/gireg.lua
+@@ -143,7 +150,10 @@ function gireg.type_uint32()
+ if not nativeIntegers then
+ checkv(R.test_uint32(1.1), 1, 'number')
+ end
+- checkv(R.test_uint32(0xffffffff), 0xffffffff, 'number')
++ -- skip large unsigned on Lua 5.1
++ if not (_VERSION == "Lua 5.1" and not jit) then
++ checkv(R.test_uint32(0xffffffff), 0xffffffff, 'number')
++ end
+ check(not pcall(R.test_uint32, 0x100000000))
+ check(not pcall(R.test_uint32, -1))
+ check(not pcall(R.test_uint32))
+@@ -815,9 +823,12 @@ function gireg.enum()
+ check(R.test_enum_param(-1) == 'value3')
+
+ check(R.TestEnumUnsigned.VALUE1 == 1)
+- check(R.TestEnumUnsigned.VALUE2 == 0x80000000)
+ check(R.TestEnumUnsigned[1] == 'VALUE1')
+- check(R.TestEnumUnsigned[0x80000000] == 'VALUE2')
++ -- skip large unsigned enum on Lua 5.1
++ if not (_VERSION == "Lua 5.1" and not jit) then
++ check(R.TestEnumUnsigned.VALUE2 == 0x80000000)
++ check(R.TestEnumUnsigned[0x80000000] == 'VALUE2')
++ end
+ check(R.TestEnumUnsigned[-1] == -1)
+ end
+
diff --git a/dev-lua/lgi/lgi-0.9.2_p20251219.ebuild b/dev-lua/lgi/lgi-0.9.2_p20251219.ebuild
index 79eb9887037e..aba759ab00f9 100644
--- a/dev-lua/lgi/lgi-0.9.2_p20251219.ebuild
+++ b/dev-lua/lgi/lgi-0.9.2_p20251219.ebuild
@@ -53,6 +53,7 @@ DEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-0.9.2-multi_lua_impl.patch
"${FILESDIR}"/${PN}-0.9.2-fix_tests.patch
+ "${FILESDIR}"/${PN}-0.9.2-skip_tests_5-1.patch
)
lua_src_prepare() {
diff --git a/dev-lua/lgi/lgi-0.9.2_p20260407.ebuild b/dev-lua/lgi/lgi-0.9.2_p20260407.ebuild
index 7f0c72008432..f60e63bb6a88 100644
--- a/dev-lua/lgi/lgi-0.9.2_p20260407.ebuild
+++ b/dev-lua/lgi/lgi-0.9.2_p20260407.ebuild
@@ -54,6 +54,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-0.9.2-multi_lua_impl.patch
"${FILESDIR}"/${PN}-0.9.2-fix_tests.patch
"${FILESDIR}"/${PN}-0.9.2-fix_glib287.patch
+ "${FILESDIR}"/${PN}-0.9.2-skip_tests_5-1.patch
)
lua_src_prepare() {