Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2011 23:48:46 GMT
From:      Stephen Fisher <steve@stephen-fisher.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/154362: glib20 port: add support for --enable-debug=yes
Message-ID:  <201101282348.p0SNmkts054310@red.freebsd.org>
Resent-Message-ID: <201101282350.p0SNo9n6069649@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101282348.p0SNmkts054310>