Date: Sat, 22 May 2004 19:01:15 -0700 (PDT) From: Douglas Thrift <douglas@douglasthrift.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/67061: Update port: devel/gdb6 made it work on 4.x Message-ID: <200405230201.i4N21Fhj011351@www.freebsd.org> Resent-Message-ID: <200405230210.i4N2A3FT000940@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405230201.i4N21Fhj011351>