summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-11-15 17:02:20 +0100
committerConrad Kostecki <conikost@gentoo.org>2020-11-15 17:02:20 +0100
commitd39544820ac34032579eede76d9b8fa37967c2a0 (patch)
tree8ad02f0e5587d12e031924a5f61b61a4d855ebf3 /dev-lua/luadbi/files
parentapp-text/vgrep: bump to v2.5.1 (diff)
downloadgentoo-d39544820ac34032579eede76d9b8fa37967c2a0.tar.gz
gentoo-d39544820ac34032579eede76d9b8fa37967c2a0.tar.bz2
gentoo-d39544820ac34032579eede76d9b8fa37967c2a0.zip
dev-lua/luadbi: drop old version
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua/luadbi/files')
-rw-r--r--dev-lua/luadbi/files/luadbi-0.5-makefile.patch47
-rw-r--r--dev-lua/luadbi/files/luadbi-0.5-mysql-8.patch78
2 files changed, 0 insertions, 125 deletions
diff --git a/dev-lua/luadbi/files/luadbi-0.5-makefile.patch b/dev-lua/luadbi/files/luadbi-0.5-makefile.patch
deleted file mode 100644
index 98e4988b281..00000000000
--- a/dev-lua/luadbi/files/luadbi-0.5-makefile.patch
+++ /dev/null
@@ -1,47 +0,0 @@
---- a/Makefile 2013-02-01 13:34:54.490898002 +0400
-+++ b/Makefile 2013-02-01 13:44:25.927772130 +0400
-@@ -1,5 +1,6 @@
- CC=gcc
--CFLAGS=-g -pedantic -Wall -O2 -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I .
-+INCLUDES=-I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I .
-+CFLAGS+=-pedantic -shared -fpic $(INCLUDES)
- AR=ar rcu
- RANLIB=ranlib
- RM=rm -rf
-@@ -27,6 +27,14 @@
- DB2_OBJS=$(OBJS) build/dbd_db2_main.o build/dbd_db2_connection.o build/dbd_db2_statement.o
- ORACLE_OBJS=$(OBJS) build/dbd_oracle_main.o build/dbd_oracle_connection.o build/dbd_oracle_statement.o
-
-+INSTALL = install
-+INSTALL_PROGRAM = $(INSTALL)
-+INSTALL_DATA = $(INSTALL) -m 644
-+LUA_INC_DIR=/usr/include/lua5.1
-+LUA_LIB_DIR=/usr/lib
-+INSTALL_DIR_LUA=/usr/share/lua/5.1
-+INSTALL_DIR_BIN=/usr/lib/lua/5.1
-+
- free: mysql psql sqlite3
-
- all: mysql psql sqlite3 db2 oracle
-@@ -90,3 +98,21 @@
- build:
- $(MKDIR) ${BUILDDIR}
-
-+install_lua:
-+ $(INSTALL_DATA) -D DBI.lua $(DESTDIR)$(INSTALL_DIR_LUA)/DBI.lua
-+
-+install_mysql: install_lua
-+ $(INSTALL_PROGRAM) -D $(DBDMYSQL) $(DESTDIR)$(INSTALL_DIR_BIN)/$(DBDMYSQL)
-+
-+install_psql: install_lua
-+ $(INSTALL_PROGRAM) -D $(DBDPSQL) $(DESTDIR)$(INSTALL_DIR_BIN)/$(DBDPSQL)
-+
-+install_sqlite3: install_lua
-+ $(INSTALL_PROGRAM) -D $(DBDSQLITE3) $(DESTDIR)$(INSTALL_DIR_BIN)/$(DBDSQLITE3)
-+
-+install_db2: install_lua
-+ $(INSTALL_PROGRAM) -D $(DBDDB2) $(DESTDIR)$(INSTALL_DIR_BIN)/$(DBDDB2)
-+
-+install_oracle: install_lua
-+ $(INSTALL_PROGRAM) -D $(DBDORACLE) $(DESTDIR)$(INSTALL_DIR_BIN)/$(DBDORACLE)
-+
diff --git a/dev-lua/luadbi/files/luadbi-0.5-mysql-8.patch b/dev-lua/luadbi/files/luadbi-0.5-mysql-8.patch
deleted file mode 100644
index a75c9d46d07..00000000000
--- a/dev-lua/luadbi/files/luadbi-0.5-mysql-8.patch
+++ /dev/null
@@ -1,78 +0,0 @@
---- a/dbd/mysql/statement.c 2020-03-09 15:55:43.212010825 +0100
-+++ b/dbd/mysql/statement.c 2020-03-09 15:57:37.703464570 +0100
-@@ -200,7 +200,10 @@
- switch(type) {
- case LUA_TNIL:
- bind[i].buffer_type = MYSQL_TYPE_NULL;
-+#if MYSQL_VERSION_ID >= 80000
-+#else
- bind[i].is_null = (my_bool*)1;
-+#endif
- break;
-
- case LUA_TBOOLEAN:
-@@ -209,7 +213,11 @@
- *boolean = lua_toboolean(L, p);
-
- bind[i].buffer_type = MYSQL_TYPE_LONG;
-- bind[i].is_null = (my_bool*)0;
-+#if MYSQL_VERSION_ID >= 80000
-+ bind[i].is_null = (bool*) 0;
-+#else
-+ bind[i].is_null = (my_bool*)0;
-+#endif
- bind[i].buffer = (char *)boolean;
- bind[i].length = 0;
- break;
-@@ -224,7 +232,11 @@
- *num = lua_tonumber(L, p);
-
- bind[i].buffer_type = MYSQL_TYPE_DOUBLE;
-- bind[i].is_null = (my_bool*)0;
-+#if MYSQL_VERSION_ID >= 80000
-+ bind[i].is_null = (bool*) 0;
-+#else
-+ bind[i].is_null = (my_bool*)0;
-+#endif
- bind[i].buffer = (char *)num;
- bind[i].length = 0;
- break;
-@@ -235,7 +247,11 @@
- str = lua_tolstring(L, p, str_len);
-
- bind[i].buffer_type = MYSQL_TYPE_STRING;
-- bind[i].is_null = (my_bool*)0;
-+#if MYSQL_VERSION_ID >= 80000
-+ bind[i].is_null = (bool*) 0;
-+#else
-+ bind[i].is_null = (my_bool*)0;
-+#endif
- bind[i].buffer = (char *)str;
- bind[i].length = str_len;
- break;
-@@ -385,7 +385,7 @@
-
- if (fields[i].type == MYSQL_TYPE_TIMESTAMP || fields[i].type == MYSQL_TYPE_DATETIME) {
- char str[20];
-- struct st_mysql_time *t = bind[i].buffer;
-+ MYSQL_TIME *t = bind[i].buffer;
-
- snprintf(str, 20, "%d-%02d-%02d %02d:%02d:%02d", t->year, t->month, t->day, t->hour, t->minute, t->second);
-
-@@ -396,7 +396,7 @@
- }
- } else if (fields[i].type == MYSQL_TYPE_TIME) {
- char str[9];
-- struct st_mysql_time *t = bind[i].buffer;
-+ MYSQL_TIME *t = bind[i].buffer;
-
- snprintf(str, 9, "%02d:%02d:%02d", t->hour, t->minute, t->second);
-
-@@ -407,7 +407,7 @@
- }
- } else if (fields[i].type == MYSQL_TYPE_DATE) {
- char str[20];
-- struct st_mysql_time *t = bind[i].buffer;
-+ MYSQL_TIME *t = bind[i].buffer;
-
- snprintf(str, 11, "%d-%02d-%02d", t->year, t->month, t->day);