ports/opt (3.0): tdb: fix header file FS#1021
commit ea4043b2945d5190bf82f164c9182f09a8253f92 Author: Juergen Daubert <jue@jue.li> Date: Thu Jun 12 19:02:48 2014 +0200 tdb: fix header file FS#1021 diff --git a/tdb/.md5sum b/tdb/.md5sum index b6ee285..2da782a 100644 --- a/tdb/.md5sum +++ b/tdb/.md5sum @@ -1,2 +1,3 @@ +6d0ef98fea354de03c423c6ada908c86 0001-tdb-include-include-stdbool.h-in-tdb.h.patch f18cd6afc4f5670edfe58f72d2665f94 tdb-1.3.0.tar.gz 5b28be5fb8107988aaa0ff4b650fb296 tdb-man-1.3.0.tar.xz diff --git a/tdb/0001-tdb-include-include-stdbool.h-in-tdb.h.patch b/tdb/0001-tdb-include-include-stdbool.h-in-tdb.h.patch new file mode 100644 index 0000000..756eaae --- /dev/null +++ b/tdb/0001-tdb-include-include-stdbool.h-in-tdb.h.patch @@ -0,0 +1,27 @@ +From 4e14a437963ba54987cd58b4e0705d9a6d8aea6f Mon Sep 17 00:00:00 2001 +From: Adam Williamson <awilliam@redhat.com> +Date: Fri, 23 May 2014 10:08:14 -0700 +Subject: [PATCH] tdb/include: include stdbool.h in tdb.h + +Commit db5bda56bf08 (tdb: add TDB_MUTEX_LOCKING support) adds a bool, but does +not include stdbool.h. This causes any build including tdb.h to fail, at least +for me with GCC 4.9.0. +--- + lib/tdb/include/tdb.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/tdb/include/tdb.h b/lib/tdb/include/tdb.h +index 5ea5e60..03e429c 100644 +--- a/lib/tdb/include/tdb.h ++++ b/lib/tdb/include/tdb.h +@@ -31,6 +31,7 @@ extern "C" { + #endif + + #include <signal.h> ++#include <stdbool.h> + + /** + * @defgroup tdb The tdb API +-- +1.9.3 + diff --git a/tdb/Pkgfile b/tdb/Pkgfile index f08bac5..c05631b 100644 --- a/tdb/Pkgfile +++ b/tdb/Pkgfile @@ -5,12 +5,14 @@ name=tdb version=1.3.0 -release=1 +release=2 source=(http://www.samba.org/ftp/$name/$name-$version.tar.gz - $name-man-$version.tar.xz) + $name-man-$version.tar.xz + 0001-tdb-include-include-stdbool.h-in-tdb.h.patch) build () { cd $name-$version + patch -p3 -i $SRC/0001-tdb-include-include-stdbool.h-in-tdb.h.patch ./configure --prefix=/usr --mandir=/usr/man make make DESTDIR=$PKG install
participants (1)
-
crux@crux.nu