forked from pool/conky
Add reproducible.patch for deterministic output of toluapp (boo#1047218) an upgrade to 1.19.5 would also bring this, but needs some changes to .spec OBS-URL: https://build.opensuse.org/request/show/1117129 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/conky?expand=0&rev=114
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
https://github.com/brndnmtthws/conky/pull/1619
|
|
Author: Bernhard M. Wiedemann
|
|
Date: 2023-09-08
|
|
|
|
Patch toluapp for reproducible output
|
|
|
|
Index: conky-1.13.1/3rdparty/toluapp/src/bin/lua/package.lua
|
|
===================================================================
|
|
--- conky-1.13.1.orig/3rdparty/toluapp/src/bin/lua/package.lua
|
|
+++ conky-1.13.1/3rdparty/toluapp/src/bin/lua/package.lua
|
|
@@ -108,7 +108,7 @@ end
|
|
function classPackage:preamble ()
|
|
output('/*\n')
|
|
output('** Lua binding: '..self.name..'\n')
|
|
- output('** Generated automatically by '..TOLUA_VERSION..' on '..date()..'.\n')
|
|
+ output('** Generated automatically by '..TOLUA_VERSION..'.\n')
|
|
output('*/\n\n')
|
|
|
|
output('#ifndef __cplusplus\n')
|
|
@@ -133,7 +133,7 @@ function classPackage:preamble ()
|
|
output('\n')
|
|
output('/* function to release collected object via destructor */')
|
|
output('#ifdef __cplusplus\n')
|
|
- for i,v in pairs(_collect) do
|
|
+ for i,v in ipairs(_collect) do
|
|
output('\nstatic int '..v..' (lua_State* tolua_S)')
|
|
output('{')
|
|
output(' '..i..'* self = ('..i..'*) tolua_tousertype(tolua_S,1,0);')
|
|
@@ -152,7 +152,7 @@ function classPackage:preamble ()
|
|
if flags.t then
|
|
output("#ifndef Mtolua_typeid\n#define Mtolua_typeid(L,TI,T)\n#endif\n")
|
|
end
|
|
- for n,v in pairs(_usertype) do
|
|
+ for n,v in ipairs(_usertype) do
|
|
if (not _global_classes[v]) or _global_classes[v]:check_public_access() then
|
|
output(' tolua_usertype(tolua_S,"',v,'");')
|
|
if flags.t then
|