SHA256
1
0
forked from pool/lua54

Accepting request 1131660 from devel:languages:lua

OBS-URL: https://build.opensuse.org/request/show/1131660
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua54?expand=0&rev=27
This commit is contained in:
Dominique Leuenberger 2023-12-09 21:51:17 +00:00 committed by Git OBS Bridge
commit 0f17265cbf
3 changed files with 22 additions and 0 deletions

15
execresult.patch Normal file
View File

@ -0,0 +1,15 @@
Inspect errno only after failure
Index: lua-5.4.6/src/lauxlib.c
===================================================================
--- lua-5.4.6.orig/src/lauxlib.c
+++ lua-5.4.6/src/lauxlib.c
@@ -283,7 +283,7 @@ LUALIB_API int luaL_fileresult (lua_Stat
LUALIB_API int luaL_execresult (lua_State *L, int stat) {
- if (stat != 0 && errno != 0) /* error with an 'errno'? */
+ if (stat == -1) /* error with an 'errno'? */
return luaL_fileresult(L, 0, NULL);
else {
const char *what = "exit"; /* type of termination */

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Dec 7 15:03:40 UTC 2023 - Andreas Schwab <schwab@suse.de>
- execresult.patch: Inspect errno only after failure
-------------------------------------------------------------------
Tue Nov 14 15:10:19 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -46,6 +46,8 @@ Patch6: shared_link.patch
# PATCH-FIX-UPSTREAM skip-tests_big-endian.patch bsc#1216930 mcepl@suse.com
# patch out little-endian-only test
Patch7: skip-tests_big-endian.patch
# PATCH-FIX-UPSTREAM inspect errno only after failure
Patch8: execresult.patch
Requires(post): update-alternatives
Requires(postun):update-alternatives
Provides: lua = %{version}