mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-tcltk/mysqltcl: fix c23 build
Closes: https://bugs.gentoo.org/946987 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
--- a/generic/mysqltcl.c 2022-12-24 18:24:12.451620838 +0100
|
||||
+++ b/generic/mysqltcl.c 2022-12-24 18:24:24.075438534 +0100
|
||||
@@ -911,7 +911,7 @@
|
||||
#if (MYSQL_VERSION_ID>=32350)
|
||||
if(mysql_options_reconnect)
|
||||
{
|
||||
- my_bool reconnect = 1;
|
||||
+ bool reconnect = 1;
|
||||
mysql_options(handle->connection, MYSQL_OPT_RECONNECT, &reconnect);
|
||||
}
|
||||
mysql_options(handle->connection,MYSQL_READ_DEFAULT_GROUP,groupname);
|
||||
#if (MYSQL_VERSION_ID>=32350)
|
||||
if(mysql_options_reconnect)
|
||||
{
|
||||
- my_bool reconnect = 1;
|
||||
+ bool reconnect = 1;
|
||||
mysql_options(handle->connection, MYSQL_OPT_RECONNECT, &reconnect);
|
||||
}
|
||||
mysql_options(handle->connection,MYSQL_READ_DEFAULT_GROUP,groupname);
|
||||
|
||||
22
dev-tcltk/mysqltcl/files/mysqltcl-3.052-c23.patch
Normal file
22
dev-tcltk/mysqltcl/files/mysqltcl-3.052-c23.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- a/generic/mysqltcl.c 2025-04-06 09:16:50.402168333 +0200
|
||||
+++ b/generic/mysqltcl.c 2025-04-06 09:17:26.718696196 +0200
|
||||
@@ -2642,8 +2642,7 @@
|
||||
#ifdef _WINDOWS
|
||||
__declspec( dllexport )
|
||||
#endif
|
||||
-int Mysqltcl_Init(interp)
|
||||
- Tcl_Interp *interp;
|
||||
+int Mysqltcl_Init(Tcl_Interp *interp)
|
||||
{
|
||||
char nbuf[MYSQL_SMALL_SIZE];
|
||||
MysqltclState *statePtr;
|
||||
@@ -2763,8 +2762,7 @@
|
||||
#ifdef _WINDOWS
|
||||
__declspec( dllexport )
|
||||
#endif
|
||||
-int Mysqltcl_SafeInit(interp)
|
||||
- Tcl_Interp *interp;
|
||||
+int Mysqltcl_SafeInit(Tcl_Interp *interp)
|
||||
{
|
||||
return Mysqltcl_Init(interp);
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit edos2unix
|
||||
|
||||
DESCRIPTION="TCL MySQL Interface"
|
||||
HOMEPAGE="http://www.xdobry.de/mysqltcl/"
|
||||
@@ -23,10 +24,12 @@ QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.05-ldflags.patch
|
||||
"${FILESDIR}"/${PN}-3.05-API.patch
|
||||
"${FILESDIR}"/${P}-c23.patch
|
||||
)
|
||||
HTML_DOCS=( doc/mysqltcl.html )
|
||||
|
||||
src_prepare() {
|
||||
edos2unix generic/mysqltcl.c
|
||||
default_src_prepare
|
||||
sed -i 's/-pipe//g;s/-O2//g;s/-fomit-frame-pointer//g' configure || die
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user