From 58e66ffa7df63a6b4c2fb7351ec5ccc50a7365e1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 8 Sep 2024 14:14:03 -0700 Subject: [PATCH] community/tinyfugue: fix build with GCC 14 --- community/tinyfugue/APKBUILD | 4 +++- community/tinyfugue/gcc14.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 community/tinyfugue/gcc14.patch diff --git a/community/tinyfugue/APKBUILD b/community/tinyfugue/APKBUILD index d2706f63e9c..9011d706670 100644 --- a/community/tinyfugue/APKBUILD +++ b/community/tinyfugue/APKBUILD @@ -9,7 +9,8 @@ arch="all" options="!check" # no testsuite license="GPL-2.0-or-later" makedepends="openssl-dev ncurses-dev pcre-dev icu-dev python3-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/ingwarsw/tinyfugue/archive/refs/tags/$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/ingwarsw/tinyfugue/archive/refs/tags/$pkgver.tar.gz + gcc14.patch" build() { ./configure \ @@ -32,4 +33,5 @@ package() { sha512sums=" 5732b3f96bc5e09e1eadd89994a25161d765ecaa0c72e5fd1d546b12028eb873faeb178fefbe3262aa790660a509fbf5de6dc74a50c23040005ab42d4a46ae14 tinyfugue-5.1.4.tar.gz +fa5bbbcb236aeff6095a9bbac2975d78e72e73abd88260c41fccddd0e7b33e5cb50a77cf5661e9efab952e2076e76792a616c59552c25d8dce9e0bb21372ad46 gcc14.patch " diff --git a/community/tinyfugue/gcc14.patch b/community/tinyfugue/gcc14.patch new file mode 100644 index 00000000000..41f7371d8c7 --- /dev/null +++ b/community/tinyfugue/gcc14.patch @@ -0,0 +1,11 @@ +--- tinyfugue-5.1.4.orig/src/tfpython.c ++++ tinyfugue-5.1.4/src/tfpython.c +@@ -201,7 +201,7 @@ + { + struct Value *rc; + char *cstr; +- int len; // Py_ssize_t len; ++ Py_ssize_t len; + + // can be null if exception was thrown + if( !pRc ) {