[packages/abook] add missing include in configure

atler atler at pld-linux.org
Wed Jan 28 20:11:39 CET 2026


commit 56b48284736094475a919341aa6f371f3d5b8f35
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jan 28 19:18:41 2026 +0100

    add missing include in configure

 abook.spec     |  2 ++
 includes.patch | 18 ++++++++++++++++++
 2 files changed, 20 insertions(+)
---
diff --git a/abook.spec b/abook.spec
index 7197594..3889981 100644
--- a/abook.spec
+++ b/abook.spec
@@ -9,6 +9,7 @@ Source0:	http://abook.sourceforge.net/devel/%{name}-%{version}.tar.gz
 # Source0-md5:	4bffd4c47ac41b688abd58f65bfe0bfb
 Patch0:		%{name}-tinfo_link.patch
 Patch1:		%{name}-inline.patch
+Patch2:		includes.patch
 URL:		http://abook.sourceforge.net/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -29,6 +30,7 @@ do użycia z programem pocztowym mutt.
 %setup -q
 %patch -P0 -p0
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__gettextize}
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..8373573
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,18 @@
+--- abook-0.6.1/configure.ac.orig	2026-01-28 19:10:54.478638697 +0100
++++ abook-0.6.1/configure.ac	2026-01-28 19:13:26.957186138 +0100
+@@ -58,10 +58,12 @@
+ ac_widec_funcs=yes
+ AC_CHECK_HEADER(wchar.h,[
+ 	ac_have_wchar_h=yes
+-	AC_DEFINE(HAVE_WCHAR_H, 1, [Define if you have the <wchar.h> header file.])],
+-	[ac_have_wchar_h=no])
++	AC_DEFINE(HAVE_WCHAR_H, 1, [Define if you have the <wchar.h> header file.])
++	AC_CHECK_DECLS(wcwidth,,,[#include <wchar.h>])
++	],
++	[ac_have_wchar_h=no
++	AC_CHECK_DECLS(wcwidth)])
+ AC_CHECK_FUNCS(mbtowc wcwidth mbrtowc mbsinit,,ac_widec_funcs=no)
+-AC_CHECK_DECLS(wcwidth)
+ AC_CHECK_TYPE(wchar_t,,ac_widec_funcs=no)
+ 
+ if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/abook.git/commitdiff/5b31c2094d086bab9c091da6be4d69e23aec821b



More information about the pld-cvs-commit mailing list