Subject: pkg/23828: databases/sqlite build fails on FreeBSD; trival fix
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 12/21/2003 17:30:36
>Number:         23828
>Category:       pkg
>Synopsis:       databases/sqlite build fails on FreeBSD; trival fix
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 21 17:31:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        N/A
>Organization:
Good people with bad reputation
>Environment:
FreeBSD mainframe.w.lub.pl 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003     root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Build fails because of lack of #include <sys/types.h>
>How-To-Repeat:
Obvious
>Fix:
Add the following lines as patches/patch-aa:
---------------------START HERE
$NetBSD$

--- ../sqlite/src/sqlite.h.in.orig      Sun Dec 21 17:26:40 2003
+++ ../sqlite/src/sqlite.h.in   Sun Dec 21 17:27:03 2003
@@ -18,6 +18,10 @@
 #define _SQLITE_H_
 #include <stdarg.h>     /* Needed for the definition of va_list */
 
+#ifdef __FreeBSD__
+#include <sys/types.h> /* because sqliteInt.h fails */
+#endif
+
 /*
 ** Make sure we can call this stuff from C++.
 */
---------------------------END HERE

... and apply the following diff:

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/databases/sqlite/distinfo,v
retrieving revision 1.12
diff -u -r1.12 distinfo
--- distinfo    1 Aug 2003 14:22:18 -0000       1.12
+++ distinfo    21 Dec 2003 17:28:31 -0000
@@ -2,3 +2,4 @@
 
 SHA1 (sqlite-2.8.5.tar.gz) = f7819edfb360a14155c61f6c61f644ac3e3c514b
 Size (sqlite-2.8.5.tar.gz) = 817792 bytes
+SHA1 (patch-aa) = 1295e8bc34fb7a45beb6ab5e59b95072fc948a12

>Release-Note:
>Audit-Trail:
>Unformatted: