Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package lua-editorconfig-core-lua for
openSUSE:Factory checked in at 2025-10-06 18:08:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-editorconfig-core-lua (Old)
and /work/SRC/openSUSE:Factory/.lua-editorconfig-core-lua.new.11973 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lua-editorconfig-core-lua"
Mon Oct 6 18:08:28 2025 rev:5 rq:1309200 version:0.3.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/lua-editorconfig-core-lua/lua-editorconfig-core-lua.changes
2022-05-16 18:11:28.281419115 +0200
+++
/work/SRC/openSUSE:Factory/.lua-editorconfig-core-lua.new.11973/lua-editorconfig-core-lua.changes
2025-10-06 18:09:01.957549832 +0200
@@ -1,0 +2,6 @@
+Sun Oct 5 21:48:42 UTC 2025 - Matej Cepl <[email protected]>
+
+- Add build-with-lua51.patch to make it possible to build with
+ Lua 5.1 (gh#editorconfig/editorconfig-core-lua!5).
+
+-------------------------------------------------------------------
New:
----
_scmsync.obsinfo
build-with-lua51.patch
build.specials.obscpio
----------(New B)----------
New:
- Add build-with-lua51.patch to make it possible to build with
Lua 5.1 (gh#editorconfig/editorconfig-core-lua!5).
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ lua-editorconfig-core-lua.spec ++++++
--- /var/tmp/diff_new_pack.ERi9mF/_old 2025-10-06 18:09:02.529573850 +0200
+++ /var/tmp/diff_new_pack.ERi9mF/_new 2025-10-06 18:09:02.533574018 +0200
@@ -26,6 +26,9 @@
Group: Development/Libraries/Other
URL: https://github.com/editorconfig/editorconfig-core-lua
Source:
https://github.com/editorconfig/%{mod_name}/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM build-with-lua51.patch
gh#editorconfig/editorconfig-core-lua!5 [email protected]
+# make package building with Lua 5.1
+Patch0: build-with-lua51.patch
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-luafilesystem
BuildRequires: %{flavor}-penlight
@@ -52,7 +55,7 @@
as the Editorconfig C Core library.
%prep
-%setup -q -n %{mod_name}-%{version}
+%autosetup -p1 -n %{mod_name}-%{version}
%build
%cmake -DECL_LIBDIR:PATH=%{lua_archdir} \
++++++ _multibuild ++++++
--- /var/tmp/diff_new_pack.ERi9mF/_old 2025-10-06 18:09:02.565575362 +0200
+++ /var/tmp/diff_new_pack.ERi9mF/_new 2025-10-06 18:09:02.569575530 +0200
@@ -1,4 +1,5 @@
<multibuild>
+<package>lua51</package>
<package>lua53</package>
<package>lua54</package>
</multibuild>
++++++ _scmsync.obsinfo ++++++
mtime: 1759701928
commit: e66f4a61bf9bf90b5d875f01b5d650a018ce0056d4f1d0c01b351a05ccf936dd
url: https://src.opensuse.org/lua/lua-editorconfig-core-lua.git
revision: e66f4a61bf9bf90b5d875f01b5d650a018ce0056d4f1d0c01b351a05ccf936dd
projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git
++++++ build-with-lua51.patch ++++++
---
CMakeLists.txt | 2 +-
editorconfig_lua.c | 34 ++++++++++++++++++++++++++++------
2 files changed, 29 insertions(+), 7 deletions(-)
Index: editorconfig-core-lua-0.3.0/CMakeLists.txt
===================================================================
--- editorconfig-core-lua-0.3.0.orig/CMakeLists.txt 2019-10-04
19:06:29.000000000 +0200
+++ editorconfig-core-lua-0.3.0/CMakeLists.txt 2025-10-05 23:46:24.364066893
+0200
@@ -35,7 +35,7 @@
include(GNUInstallDirs)
find_package(EditorConfig REQUIRED)
-set(Lua_FIND_VERSION 5.2) # minimum Lua version
+set(Lua_FIND_VERSION 5.1) # minimum Lua version
find_package(Lua REQUIRED)
set(CMAKE_C_STANDARD 99)
Index: editorconfig-core-lua-0.3.0/editorconfig_lua.c
===================================================================
--- editorconfig-core-lua-0.3.0.orig/editorconfig_lua.c 2019-10-04
19:06:29.000000000 +0200
+++ editorconfig-core-lua-0.3.0/editorconfig_lua.c 2025-10-05
23:46:58.750059153 +0200
@@ -6,10 +6,10 @@
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
+ * this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -36,6 +36,28 @@
#error "LEC_VERSION is not defined."
#endif
+#if LUA_VERSION_NUM < 502
+/*
+ * Lua 5.1 compatibility functions.
+ * Adapted from Lua 5.2.x source.
+ */
+static void
+luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup)
+{
+ luaL_checkstack(L, nup, "too many upvalues");
+ for (; l->name; l++) {
+ int i;
+ for (i = 0; i < nup; i++)
+ lua_pushvalue(L, -nup);
+ lua_pushcclosure(L, l->func, nup);
+ lua_setfield(L, -(nup + 2), l->name);
+ }
+ lua_pop(L, nup);
+}
+
+#define luaL_newlib(L, l) (lua_newtable(L), luaL_setfuncs(L, l, 0))
+#endif
+
/***
* Lua bindings to the EditorConfig C Core library.
* @module editorconfig
@@ -94,7 +116,7 @@
editorconfig_handle eh;
int name_value_count;
const char *name, *value;
- lua_Integer idx = 1;
+ lua_Number idx = 1; /* Use lua_Number for Lua 5.1 compatibility */
eh = open_ec_handle(L);
assert(eh != NULL);
@@ -108,7 +130,7 @@
lua_pushstring(L, name);
lua_pushstring(L, value);
lua_settable(L, 1);
- lua_pushinteger(L, idx);
+ lua_pushnumber(L, idx); /* Use lua_pushnumber for Lua 5.1
compatibility */
lua_pushstring(L, name);
lua_settable(L, 2);
idx += 1;
@@ -149,4 +171,4 @@
luaL_newlib(L, editorconfig_reg);
add_version(L);
return 1;
-}
+}
\ No newline at end of file
++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore 2025-10-06 00:05:46.000000000 +0200
@@ -0,0 +1 @@
+.osc