ports/162641: [MAINTAINER] Making thread support optional

Luca Pizzamiglio luca.pizzamiglio at gmail.com
Thu Nov 17 14:30:13 UTC 2011


>Number:         162641
>Category:       ports
>Synopsis:       [MAINTAINER] Making thread support optional
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 17 14:30:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Luca Pizzamiglio
>Release:        
>Organization:
>Environment:
>Description:
This option makes thread support a configurable option.
thread are supported by default, but on newer FreeBSD's version this support could be seriously buggy.
Stability issues are already encountered on RC1-9.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2011-11-06 19:12:32.000000000 +0100
+++ Makefile	2011-11-17 15:18:55.000000000 +0100
@@ -1,5 +1,5 @@
 # ex:ts=8
-# Ports collection makefile for:	GDB 7.1
+# Ports collection makefile for:	GDB 7.3.x
 # Date created:				16 November 2010
 # Whom:					Steven Kreuzer <skreuzer at FreeBSD.org>
 #
@@ -8,7 +8,7 @@
 
 PORTNAME=	gdb
 PORTVERSION=	7.3.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GNU:S,$,:gdb,}
 MASTER_SITE_SUBDIR=gdb/:gdb
@@ -42,7 +42,8 @@
 
 OPTIONS=	DEBUG "Build with debugging symbols" off \
 		EXPAT "Enable XML parsing for metadata" off \
-		PYTHON "Enable Python support" off
+		PYTHON "Enable Python support" off \
+		THREAD "Enable Thread support" on
 
 .include <bsd.port.options.mk>
 
@@ -83,7 +84,9 @@
 post-patch:
 	@${REINPLACE_CMD} -e 's/$$/ [GDB v${PORTVERSION} for FreeBSD]/' \
 		${WRKSRC}/gdb/version.in
+.if defined(WITH_THREAD)
 	@${CP} ${FILESDIR}/fbsd-threads.c ${WRKSRC}/gdb
+.endif
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/gdb${VER}


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



More information about the freebsd-ports-bugs mailing list