Accepting request 1131639 from home:Andreas_Schwab:Factory
- execresult.patch: Inspect errno only after failure OBS-URL: https://build.opensuse.org/request/show/1131639 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua54?expand=0&rev=90
This commit is contained in:
parent
ff3da38434
commit
b5aa338636
15
execresult.patch
Normal file
15
execresult.patch
Normal 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 */
|
@ -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>
|
Tue Nov 14 15:10:19 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -46,6 +46,8 @@ Patch6: shared_link.patch
|
|||||||
# PATCH-FIX-UPSTREAM skip-tests_big-endian.patch bsc#1216930 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM skip-tests_big-endian.patch bsc#1216930 mcepl@suse.com
|
||||||
# patch out little-endian-only test
|
# patch out little-endian-only test
|
||||||
Patch7: skip-tests_big-endian.patch
|
Patch7: skip-tests_big-endian.patch
|
||||||
|
# PATCH-FIX-UPSTREAM inspect errno only after failure
|
||||||
|
Patch8: execresult.patch
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Provides: lua = %{version}
|
Provides: lua = %{version}
|
||||||
|
Loading…
Reference in New Issue
Block a user