diff --git a/srcpkgs/abook/patches/fix-ctype.patch b/srcpkgs/abook/patches/fix-ctype.patch new file mode 100644 index 00000000000000..0ce3c1b16688cf --- /dev/null +++ b/srcpkgs/abook/patches/fix-ctype.patch @@ -0,0 +1,19 @@ +--- a/database.c 2026-01-26 11:04:38.000000000 +0100 ++++ b/database.c 2026-03-01 02:11:46.310427997 +0000 +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + #ifdef HAVE_CONFIG_H + # include "config.h" + #endif +@@ -737,7 +738,7 @@ + { + char* p = str; + while (*str) { +- if (isalnum (*str)) *(p++) = *str; ++ if (isalnum((unsigned char)*str)) *(p++) = *str; + ++str; + } + *p = 0; diff --git a/srcpkgs/abook/patches/fix-musl-and-headers.patch b/srcpkgs/abook/patches/fix-musl-and-headers.patch new file mode 100644 index 00000000000000..525372386bb44d --- /dev/null +++ b/srcpkgs/abook/patches/fix-musl-and-headers.patch @@ -0,0 +1,10 @@ +--- a/getopt.c 2026-01-26 11:04:16.000000000 +0100 ++++ b/getopt.c 2026-03-01 02:30:21.706709907 +0000 +@@ -44,6 +44,7 @@ + + #include + #include ++#include + + /* Comment out all this code if we are using the GNU C Library, and are not + actually compiling the library itself. This code is part of the GNU C diff --git a/srcpkgs/abook/patches/fix-musl-and-strcpy-overflow.patch b/srcpkgs/abook/patches/fix-musl-and-strcpy-overflow.patch new file mode 100644 index 00000000000000..988a96ba2fca21 --- /dev/null +++ b/srcpkgs/abook/patches/fix-musl-and-strcpy-overflow.patch @@ -0,0 +1,11 @@ +--- a/filter.c 2026-01-26 11:04:38.000000000 +0100 ++++ b/filter.c 2026-03-01 02:21:59.530750295 +0000 +@@ -2184,7 +2184,7 @@ + mutt_alias_gengroups(int i) + { + char *groups, *res = NULL; +- char groupstr[7] = "-group "; ++ char groupstr[] = "-group "; + abook_list *list, *tmp; + + groups = db_fget(i, GROUPS); diff --git a/srcpkgs/abook/template b/srcpkgs/abook/template index 8b52bebeee08c1..ec3d1fbc3ee2cb 100644 --- a/srcpkgs/abook/template +++ b/srcpkgs/abook/template @@ -1,7 +1,7 @@ # Template file for 'abook' pkgname=abook -version=0.6.1 -revision=3 +version=0.6.2 +revision=1 build_style=gnu-configure hostmakedepends="automake libtool gettext gettext-devel tar" makedepends="ncurses-devel readline-devel" @@ -10,7 +10,7 @@ maintainer="Orphaned " license="GPL-2.0-or-later" homepage="http://abook.sourceforge.net/" distfiles="http://abook.sourceforge.net/devel/${pkgname}-${version}.tar.gz" -checksum=f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9 +checksum=2d6bde2d2d03523f164f930e4fdec6025f3a94abe48a43706f543880a1a21ebe post_extract() { autoreconf --install