community/sylpheed: fix build with gcc 14

This commit is contained in:
mio 2024-08-28 05:04:31 +00:00 committed by Natanael Copa
parent aebbb26cc7
commit d788f3b0e3
2 changed files with 43 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sylpheed
pkgver=3.7.0
pkgrel=6
pkgrel=7
pkgdesc="Lightweight and user-friendly e-mail client"
url="http://sylpheed.sraoss.jp/en/"
arch="all"
@ -10,9 +10,9 @@ license="GPL-3.0-only"
depends="pinentry-gtk gnupg"
makedepends="gtk+2.0-dev openldap-dev openssl-dev>3 gpgme-dev"
subpackages="$pkgname-dev $pkgname-lang"
# curl: (60) SSL certificate problem: certificate has expired
# source="https://osdn.net/dl/sylpheed/$pkgname-$pkgver.tar.xz"
source="https://dev.alpinelinux.org/archive/sylpheed/sylpheed-$pkgver.tar.xz"
source="https://sylpheed.sraoss.jp/sylpheed/v${pkgver%.*}/sylpheed-$pkgver.tar.gz
gcc14-fix-ftbfs.patch
"
prepare() {
default_prepare
@ -39,4 +39,7 @@ package() {
make DESTDIR="$pkgdir" install
}
sha512sums="1f3255dd61878e9f52f78cd68a76712835c376296ddfa72034a0415f17843eaa334fb6019900b2fa18ccc600d918945febd7ffdfde91990a4e9f5c05a1609c76 sylpheed-3.7.0.tar.xz"
sha512sums="
1647cea0367fe47ed3447b3a83ca36078234c796a7af5d3bbe94b3d845d8fc3ae86a488610e25e48494fb760056bc39ee15f6a9e13b5b2e06d3f6e9fc1b8c14c sylpheed-3.7.0.tar.gz
234d3d0b4b3d235220aba33b2aa4052131d9f57b9bfa38828670d6b1c66b04525fd2d59c2a4aeaf7c33cc89479437055428154e05a3fd97641624efadbf98c42 gcc14-fix-ftbfs.patch
"

View File

@ -0,0 +1,35 @@
Source: https://github.com/user-attachments/files/16588718/0013-fix-FTBFS-GCC-14.patch.txt
Fails to build with GCC 14
https://github.com/sylpheed-mail/sylpheed/issues/41
---
From: Ricardo Mones <mones@debian.org>
Subject: fix FTBFS with GCC 14 compiler
Last-Update: 2024-08-12
Bug-Debian: https://bugs.debian.org/1075546
Forwarded: no
diff --git a/libsylph/utils.c b/libsylph/utils.c
index aabce066..68ba2827 100644
--- a/libsylph/utils.c
+++ b/libsylph/utils.c
@@ -4254,7 +4254,7 @@ gint execute_open_file(const gchar *file, const gchar *content_type)
log_print("opening %s - %s\n", file, content_type ? content_type : "");
argv[1] = file;
- execute_async(argv);
+ execute_async((gchar * const*) argv);
#else
const gchar *argv[3] = {"xdg-open", NULL, NULL};
@@ -4263,7 +4263,7 @@ gint execute_open_file(const gchar *file, const gchar *content_type)
log_print("opening %s - %s\n", file, content_type ? content_type : "");
argv[1] = file;
- execute_async(argv);
+ execute_async((gchar * const*) argv);
#endif
return 0;