commit:     f3945e03f09a91f63c9a4068457580d1195a5841
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 18 06:34:01 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Jul 18 06:34:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3945e03

dev-tcltk/snack: fix type mismatch

Closes: https://bugs.gentoo.org/858263
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-tcltk/snack/files/snack-2.2.10-lto.patch | 28 ++++++++++++++++++++++++++++
 dev-tcltk/snack/snack-2.2.10-r9.ebuild       |  1 +
 2 files changed, 29 insertions(+)

diff --git a/dev-tcltk/snack/files/snack-2.2.10-lto.patch 
b/dev-tcltk/snack/files/snack-2.2.10-lto.patch
new file mode 100644
index 000000000000..27c6b6c9126f
--- /dev/null
+++ b/dev-tcltk/snack/files/snack-2.2.10-lto.patch
@@ -0,0 +1,28 @@
+--- a/generic/sound.c  2022-07-18 08:21:20.492977432 +0200
++++ b/generic/sound.c  2022-07-18 08:21:44.720698702 +0200
+@@ -120,9 +120,9 @@
+ int littleEndian = 0;
+ 
+ #ifdef __cplusplus
+-extern "C" SnackStubs *snackStubs;
++extern "C" SnackStubs snackStubs;
+ #else
+-extern SnackStubs *snackStubs;
++extern SnackStubs snackStubs;
+ #endif
+ 
+ extern Tcl_HashTable *filterHashTable;
+--- a/generic/snack.c  2022-07-18 08:21:29.953868734 +0200
++++ b/generic/snack.c  2022-07-18 08:22:05.978453035 +0200
+@@ -203,9 +203,9 @@
+ int littleEndian = 0;
+ 
+ #ifdef __cplusplus
+-extern "C" SnackStubs *snackStubs;
++extern "C" SnackStubs snackStubs;
+ #else
+-extern SnackStubs *snackStubs;
++extern SnackStubs snackStubs;
+ #endif
+ 
+ extern Tcl_HashTable *filterHashTable;

diff --git a/dev-tcltk/snack/snack-2.2.10-r9.ebuild 
b/dev-tcltk/snack/snack-2.2.10-r9.ebuild
index 4466b95ddb31..d95bd49e31da 100644
--- a/dev-tcltk/snack/snack-2.2.10-r9.ebuild
+++ b/dev-tcltk/snack/snack-2.2.10-r9.ebuild
@@ -37,6 +37,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-test.patch
        "${FILESDIR}"/${PN}${PV}-seektell-fix.patch
        "${FILESDIR}"/tcl-${P}-python3.patch
+       "${FILESDIR}"/${P}-lto.patch
 )
 
 HTML_DOCS="${WORKDIR}/${PN}${PV}/doc/*"

Reply via email to