ports/93101: [Patch] ports databases/sqlite2 add support for threads

Henry Miller hank at millerfarm.com
Thu Feb 9 16:40:09 UTC 2006


>Number:         93101
>Category:       ports
>Synopsis:       [Patch] ports databases/sqlite2 add support for threads
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 09 16:40:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Henry Miller
>Release:        5.4-RELEASE
>Organization:
>Environment:
FreeBSD gamma.hq.intradyn.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
sqlite2 must be compiled with thread support if running in a threaded environment, but the port compiles non-threaded only.   I need thread support on my system, so I made it so.

Note, the port maintainer is recommended to use extend the options to allow configuring TCL support - I have no way to test TCL support so I did not.
>How-To-Repeat:
              
>Fix:

--- Makefile	Thu Feb  9 09:49:17 2006
+++ Makefile	Thu Feb  9 10:10:41 2006
@@ -13,6 +13,7 @@
 
 PORTNAME=	sqlite
 PORTVERSION=	2.8.17
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	http://www.sqlite.org/
 
@@ -26,6 +27,10 @@
 USE_REINPLACE=	YES
 INSTALLS_SHLIB=	YES
 
+OPTIONS=	THREAD "Compile with support for threads" off
+
+.include <bsd.port.pre.mk>
+
 CONFIGURE_ARGS=		--prefix=${PREFIX} --with-hints=freebsd.hints
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
@@ -67,13 +72,14 @@
 MAKE_ENV+=	TCL_VER=${TCL_V}
 .endif
 
-.include <bsd.port.pre.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e "s/tclsh \$$(TOP)/\$$(TCLSH) \$$(TOP)/g" \
 		 -e "s|\./libtool|${LIBTOOL}|g" ${WRKSRC}/Makefile.in
 	@${ECHO} "config_TARGET_TCL_INC=\"-I${PREFIX}/include/tcl${TCL_V}\"" >${WRKSRC}/freebsd.hints
 	@${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_SHORT_V}\"" >>${WRKSRC}/freebsd.hints
+.if defined(WITH_THREAD)
+	@${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 -pthread\"" >>${WRKSRC}/freebsd.hints
+.endif
 
 post-build:
 .if !defined(NOPORTDOCS)

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



More information about the freebsd-ports-bugs mailing list