ports/67061: Update port: devel/gdb6 made it work on 4.x

Douglas Thrift douglas at douglasthrift.net
Sun May 23 02:10:13 UTC 2004


>Number:         67061
>Category:       ports
>Synopsis:       Update port: devel/gdb6 made it work on 4.x
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 22 19:10:03 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Douglas Thrift
>Release:        4.10-PRERELEASE
>Organization:
>Environment:
FreeBSD daemon.local.douglasthrift.net 4.10-PRERELEASE FreeBSD 4.10-PRERELEASE #6: Sun Apr 25 23:30:14 PDT 2004     douglas at daemon.local.douglasthrift.net:/usr/obj/usr/src/sys/DAEMONIC  i386
>Description:
GDB 6 needs the newer version of Readline provided by devel/readline and GCC 3.4 (lang/gcc34).  Also configure seemed to think that FreeBSD 4.x could use trad-core, which it can't.  Jay Freeman (saurik at saurik.com) helped me with this patch.
>How-To-Repeat:
      
>Fix:
diff -ruN /usr/ports/devel/gdb6/Makefile ./Makefile
--- /usr/ports/devel/gdb6/Makefile	Wed May 12 21:28:38 2004
+++ ./Makefile	Thu May 20 20:30:41 2004
@@ -35,7 +35,11 @@
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 500000
-BROKEN=		"Does not compile on 4.x"
+#BROKEN=		"Does not compile on 4.x"
+LIB_DEPENDS=	readline.4:${PORTSDIR}/devel/readline
+BUILD_DEPENDS+=	gcc34:${PORTSDIR}/lang/gcc34
+CC=	gcc34
+CFLAGS+=	-Wl,--rpath -Wl,${PREFIX}/lib
 .endif
 
 .if ${ARCH} == "amd64"
diff -ruN /usr/ports/devel/gdb6/files/patch-bfd-configure ./files/patch-bfd-configure
--- /usr/ports/devel/gdb6/files/patch-bfd-configure	Wed Dec 31 16:00:00 1969
+++ ./files/patch-bfd-configure	Thu May 20 17:40:21 2004
@@ -0,0 +1,11 @@
+--- /usr/ports/devel/gdb6/work/gdb+dejagnu-20040511/bfd/configure	Mon May 10 18:48:24 2004
++++ bfd/configure	Thu May 20 17:29:15 2004
+@@ -5357,7 +5357,7 @@
+ 	COREFILE=
+ 	;;
+   i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234]* | i[3-7]86-*-freebsd*aout*)
+-	COREFILE=trad-core.lo
++	COREFILE=''
+ 	TRAD_HEADER='"hosts/i386bsd.h"'
+ 	;;
+   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)

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



More information about the freebsd-ports-bugs mailing list