ports/58851: Enable the ability to comile with debug support

James E. Housley jeh at FreeBSD.org
Mon Nov 3 00:40:19 UTC 2003


>Number:         58851
>Category:       ports
>Synopsis:       Enable the ability to comile with debug support
>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:   Sun Nov 02 16:40:17 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     James E. Housley
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
System: FreeBSD cat.int.thehousleys.net 4.9-RELEASE FreeBSD 4.9-RELEASE #20: Mon Oct 27 07:56:39 EST 2003 root at cat.int.thehousleys.net:/usr/obj/usr/src/sys/SERVERKERNEL i386


	
>Description:
	The Zend developement tools, and maybe other debugger, want
	PHP4 to be compiled with the debug symbols.  The allows that.

>How-To-Repeat:
	
>Fix:

Index: Makefile
===================================================================
RCS file: /usr/FREEBSD_CVS/ports/lang/php4/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- Makefile    13 Oct 2003 05:59:45 -0000      1.32
+++ Makefile    3 Nov 2003 00:24:59 -0000
@@ -125,8 +125,8 @@
 .endif
 
 ALL_OPTIONS=   BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX \
-               DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT GMP \
-               HYPERWAVE ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE \
+               DEBUG DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT \
+               GMP HYPERWAVE ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE \
                MCRYPT MHASH MIME MING MNOGOSEARCH MYSQL NCURSES OPENLDAP \
                OPENSSL ORACLE OVERLOAD PCNTL PCRE PDFLIB POSIX POSTGRESQL \
                PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS SYBASEDB \
@@ -256,6 +256,11 @@
 
 .if defined(WITH_DBX)
 CONFIGURE_ARGS+=--enable-dbx
+.endif
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=--enable-debug
+EXT_DIR:=${EXT_DIR}-debug
 .endif
 
 .if defined(WITH_DOMXML)
Index: scripts/configure.php
===================================================================
RCS file: /usr/FREEBSD_CVS/ports/lang/php4/scripts/configure.php,v
retrieving revision 1.9
diff -u -r1.9 configure.php
--- scripts/configure.php       7 Oct 2003 16:45:15 -0000       1.9
+++ scripts/configure.php       3 Nov 2003 00:14:47 -0000
@@ -28,6 +28,7 @@
 DB4            "Berkeley DB4 support" ${WITH_DB4:-OFF} \
 DBASE          "dBase library support" ${WITH_DBASE:-OFF} \
 DBX            "dbx support" ${WITH_DBX:-OFF} \
+DEBUG          "debug support" ${WITH_DEBUG:-OFF} \
 DOMXML         "DOM support" ${WITH_DOMXML:-OFF} \
 DOMXSLT                "DOM XSLT and EXSLT support (implies DOMXML)" ${WITH_DOM
XSLT:-OFF} \
 EXIF           "EXIF support" ${WITH_EXIF:-OFF} \
Index: scripts/php4_options
===================================================================
RCS file: /usr/FREEBSD_CVS/ports/lang/php4/scripts/php4_options,v
retrieving revision 1.5
diff -u -r1.5 php4_options
--- scripts/php4_options        7 Oct 2003 16:45:15 -0000       1.5
+++ scripts/php4_options        3 Nov 2003 00:14:59 -0000
@@ -8,6 +8,7 @@
 WITH_DB4=OFF
 WITH_DBASE=OFF
 WITH_DBX=OFF
+WITH_DEBUG=OFF
 WITH_DOMXML=OFF
 WITH_DOMXSLT=OFF
 WITH_EXIF=OFF



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



More information about the freebsd-ports-bugs mailing list