community/abook: fix build with gcc 14

This commit is contained in:
mio 2024-08-19 14:25:39 +00:00 committed by Celeste
parent f3aa0376f5
commit 23ab2889e5
2 changed files with 15 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=abook
pkgver=0.6.1
pkgrel=7
pkgrel=8
pkgdesc="Text-based addressbook designed for use with Mutt"
url="https://abook.sourceforge.net/"
license="GPL-2.0-or-later"
@ -11,6 +11,7 @@ makedepends="ncurses-dev readline-dev automake autoconf gettext-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://abook.sourceforge.net/devel/abook-$pkgver.tar.gz
gcc6.patch
gcc14.patch
"
prepare() {
@ -41,4 +42,5 @@ package() {
sha512sums="
993895ef2fd6d98d50db610699f8f0a28112778065ac56484373eb814afd8ab7371201fc21506c090514f4b29570ec229dc62c606ab068301152567e2c47fe66 abook-0.6.1.tar.gz
21ab6475512ea9baae1a6509749628d6b610e96e77c64139d09697d272d66556875058e91c9b948c4ebaf65795a97d8532bae25e5d7e71cc4a20af49897cd867 gcc6.patch
fdcce9c273c20a063f45682abf7f0e10fcbc3650f2cc34c333ca1c8408aaef07e0a2d7a928b77bf92010bbd1f40c44b83db0cf8a9fee3b79d806034a10ff7ef5 gcc14.patch
"

View File

@ -0,0 +1,12 @@
Fix -Wimplicit-function-declaration error with gcc 14.
--- abook-0.6.1-origin/getopt.c
+++ abook-0.6.1/getopt.c
@@ -110,6 +110,7 @@
GNU application programs can use a third alternative mode in which
they can distinguish the relative order of options and other arguments. */
+#include <string.h>
#include "getopt.h"
/* For communication from `getopt' to the caller.