ports/154362: glib20 port: add support for --enable-debug=yes

Stephen Fisher steve at stephen-fisher.com
Fri Jan 28 23:50:10 UTC 2011


>Number:         154362
>Category:       ports
>Synopsis:       glib20 port: add support for --enable-debug=yes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 28 23:50:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Fisher
>Release:        8.1-RELEASE
>Organization:
>Environment:
FreeBSD xxx 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
This patch adds an option to the glib20 port's Makefile to pass "--enable-debug=yes" to the configure script when WITH_DEBUG is defined.  I've also added a port option to enable this.

>How-To-Repeat:
n/a
>Fix:
Apply the attached patch




Patch attached with submission follows:

--- Makefile.orig	2011-01-28 16:38:23.000000000 -0700
+++ Makefile	2011-01-28 16:32:55.000000000 -0700
@@ -52,7 +52,8 @@
 		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
 		PTHREAD_LIBS="${PTHREAD_LIBS}"
 
-OPTIONS=	COLLATION_FIX "fix string collation" off
+OPTIONS=	COLLATION_FIX "fix string collation" off \
+		DEBUG "Turn on debugging" off
 
 .include <bsd.port.pre.mk>
 
@@ -78,6 +79,10 @@
 #CONFIGURE_ENV+=	CFLAGS="-D__STDC_ISO_10646__"
 .endif
 
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=	--enable-debug=yes
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
 		${WRKSRC}/glib/gutils.c


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



More information about the freebsd-ports-bugs mailing list