Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2024 01:45:30 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 52371ce420c7 - main - games/xmoto: fix sqlite related startup crash
Message-ID:  <202405140145.44E1jUTI080229@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=52371ce420c779e73cd2feb68bd8627508fde655

commit 52371ce420c779e73cd2feb68bd8627508fde655
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2024-05-06 13:07:33 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2024-05-14 01:44:10 +0000

    games/xmoto: fix sqlite related startup crash
    
    PR:             278669
    Submitted by:   dave@vasilevsky.ca
    Upstream PR:    https://github.com/xmoto/xmoto/pull/188/files
---
 games/xmoto/Makefile                          |  2 +-
 games/xmoto/files/patch-src_db_xmDatabase.cpp | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/games/xmoto/Makefile b/games/xmoto/Makefile
index 7dcc488863a4..acd6e9bba988 100644
--- a/games/xmoto/Makefile
+++ b/games/xmoto/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	xmoto
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.6.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	games
 
 MAINTAINER=	amdmi3@FreeBSD.org
diff --git a/games/xmoto/files/patch-src_db_xmDatabase.cpp b/games/xmoto/files/patch-src_db_xmDatabase.cpp
new file mode 100644
index 000000000000..bf49c52bfef4
--- /dev/null
+++ b/games/xmoto/files/patch-src_db_xmDatabase.cpp
@@ -0,0 +1,13 @@
+--- src/db/xmDatabase.cpp.orig	2024-04-30 19:43:06 UTC
++++ src/db/xmDatabase.cpp
+@@ -58,6 +58,10 @@ void xmDatabase::openIfNot(const std::string &i_dbFile
+                     ") : " + sqlite3_errmsg(m_db));
+   }
+ 
++#ifdef SQLITE_DBCONFIG_DQS_DML
++  sqlite3_db_config(m_db, SQLITE_DBCONFIG_DQS_DML, 1, NULL);
++#endif
++
+   sqlite3_busy_timeout(m_db, DB_BUSY_TIMEOUT);
+   sqlite3_trace(m_db, sqlTrace, NULL);
+   createUserFunctions();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405140145.44E1jUTI080229>