Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions srcpkgs/abook/patches/fix-ctype.patch
Original file line number Diff line number Diff line change
@@ -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 <string.h>
#include <unistd.h>
#include <assert.h>
+#include <ctype.h>
#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;
10 changes: 10 additions & 0 deletions srcpkgs/abook/patches/fix-musl-and-headers.patch
Original file line number Diff line number Diff line change
@@ -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 <stdio.h>
#include <strings.h>
+#include <string.h>

/* 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
11 changes: 11 additions & 0 deletions srcpkgs/abook/patches/fix-musl-and-strcpy-overflow.patch
Original file line number Diff line number Diff line change
@@ -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);
6 changes: 3 additions & 3 deletions srcpkgs/abook/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -10,7 +10,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
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
Expand Down