forked from pool/lua-luasql
Compare commits
8 Commits
Author | SHA256 | Date | |
---|---|---|---|
f322383e27
|
|||
b2c08ecdf1
|
|||
9ae1d6dbbf
|
|||
3fe9d7502e
|
|||
59b721af2e
|
|||
493c0409af
|
|||
e8a4644ffb
|
|||
5a9d23248e
|
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1 +1,6 @@
|
|||||||
|
*.obscpio
|
||||||
.osc
|
.osc
|
||||||
|
_scmsync.obsinfo
|
||||||
|
.assets/
|
||||||
|
_build*
|
||||||
|
.pbuild
|
||||||
|
4
_service
4
_service
@@ -6,8 +6,8 @@
|
|||||||
<param name="changesgenerate">enable</param>
|
<param name="changesgenerate">enable</param>
|
||||||
<param name="changesauthor">mcepl@cepl.eu</param>
|
<param name="changesauthor">mcepl@cepl.eu</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="tar" mode="buildtime"/>
|
<service name="tar" mode="manual"/>
|
||||||
<service name="recompress" mode="buildtime">
|
<service name="recompress" mode="manual">
|
||||||
<param name="file">*.tar</param>
|
<param name="file">*.tar</param>
|
||||||
<param name="compression">gz</param>
|
<param name="compression">gz</param>
|
||||||
</service>
|
</service>
|
||||||
|
30
add_missing_cur_gc.patch
Normal file
30
add_missing_cur_gc.patch
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
From 10ed75b36bf909f57b3c1a070dd87669c323cff0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Tom=C3=A1s=20Guisasola?= <tomas@puc-rio.br>
|
||||||
|
Date: Mon, 7 Jul 2025 20:59:39 -0300
|
||||||
|
Subject: [PATCH] Solving issue #178, missing cur_gc
|
||||||
|
|
||||||
|
---
|
||||||
|
src/ls_odbc.c | 10 ++++++++++
|
||||||
|
1 file changed, 10 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/ls_odbc.c b/src/ls_odbc.c
|
||||||
|
index 1a7f768..565b216 100644
|
||||||
|
--- a/src/ls_odbc.c
|
||||||
|
+++ b/src/ls_odbc.c
|
||||||
|
@@ -483,6 +483,16 @@ static int cur_fetch (lua_State *L)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+/*
|
||||||
|
+** Cursor object collector function
|
||||||
|
+*/
|
||||||
|
+static int cur_gc (lua_State *L) {
|
||||||
|
+ cur_data *cur = (cur_data *) luaL_checkudata (L, 1, LUASQL_CURSOR_ODBC);
|
||||||
|
+ if (cur != NULL && !(cur->closed))
|
||||||
|
+ cur_shut(L, cur);
|
||||||
|
+ return 0;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
** Closes a cursor.
|
||||||
|
*/
|
@@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 8 15:05:21 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Update to 2.7.0:
|
||||||
|
* LuaSQL is adapted to Lua version 5.4 and all the drivers are
|
||||||
|
compatible with To-be-closed variables.
|
||||||
|
* The :close() method now returns false and a string with
|
||||||
|
appropriate message instead of raising an error when there
|
||||||
|
are related open objects.
|
||||||
|
- Add add_missing_cur_gc.patch adding missing cur_gc symbol
|
||||||
|
(gh#lunarmodules/luasql#178).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 5 10:25:55 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
Tue Nov 5 10:25:55 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
@@ -21,14 +21,17 @@
|
|||||||
%define flavor_dec $(c=%{flavor}; echo ${c:0:-1}.${c: -1})
|
%define flavor_dec $(c=%{flavor}; echo ${c:0:-1}.${c: -1})
|
||||||
%define flavor_ver %{lua:ver, ok = string.gsub(rpm.expand("%{flavor}"), "lua(%{d})(%{d})", "%{1}.%{2}"); print(ver)}
|
%define flavor_ver %{lua:ver, ok = string.gsub(rpm.expand("%{flavor}"), "lua(%{d})(%{d})", "%{1}.%{2}"); print(ver)}
|
||||||
%define mod_name luasql
|
%define mod_name luasql
|
||||||
Version: 2.6.0+git.1724375068.d60f8b2
|
Version: 2.7.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Simple interface from Lua to a DBMS
|
Summary: Simple interface from Lua to a DBMS
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
URL: https://github.com/lunarmodules/luasql
|
URL: https://github.com/lunarmodules/luasql
|
||||||
# Source0: https://github.com/lunarmodules/luasql/archive/refs/tags/%%{version}/%%{mod_name}-%%{version}.tar.gz
|
Source0: https://github.com/lunarmodules/luasql/archive/refs/tags/%{version}/%{mod_name}-%{version}.tar.gz
|
||||||
Source0: %{mod_name}-%{version}.tar.gz
|
# Source0: %%{mod_name}-%%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM add_missing_cur_gc.patch gh#lunarmodules/luasql#178 mcepl@suse.com
|
||||||
|
# add missing definition of cur_gc function
|
||||||
|
Patch0: add_missing_cur_gc.patch
|
||||||
BuildRequires: %{flavor}-devel
|
BuildRequires: %{flavor}-devel
|
||||||
BuildRequires: libiodbc-devel
|
BuildRequires: libiodbc-devel
|
||||||
BuildRequires: libmysqlclient-devel
|
BuildRequires: libmysqlclient-devel
|
||||||
|
BIN
luasql-2.6.0+git.1724375068.d60f8b2.obscpio
(Stored with Git LFS)
BIN
luasql-2.6.0+git.1724375068.d60f8b2.obscpio
(Stored with Git LFS)
Binary file not shown.
BIN
luasql-2.7.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
luasql-2.7.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
19
luasql-fix-configuration.patch
Normal file
19
luasql-fix-configuration.patch
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
config | 7 +++----
|
||||||
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
--- a/config
|
||||||
|
+++ b/config
|
||||||
|
@@ -46,9 +46,8 @@ DRIVER_LIBS_firebird ?= -L/usr/local/fir
|
||||||
|
DRIVER_INCS_firebird ?=
|
||||||
|
|
||||||
|
# general compilation parameters
|
||||||
|
-WARN = -Wall -Wmissing-prototypes -Wmissing-declarations -pedantic
|
||||||
|
+WARN= -fPIC $(OPTFLAGS) -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic
|
||||||
|
INCS = -I$(LUA_INC)
|
||||||
|
-DEFS =
|
||||||
|
-CFLAGS = -O2 -std=gnu99 $(WARN) -fPIC $(DRIVER_INCS) $(INCS) \
|
||||||
|
- -DLUASQL_VERSION_NUMBER='"$V"' $(DEFS)
|
||||||
|
+DEFS = -std=gnu99 -fPIC
|
||||||
|
+CFLAGS=$(WARN) $(DRIVER_INCS) $(INCS) -DLUASQL_VERSION_NUMBER='"$V"' $(DEFS)
|
||||||
|
CC= gcc
|
Reference in New Issue
Block a user