From gslin@netnews.NCTU.edu.tw  Tue Jun 13 16:19:29 2006
Return-Path: <gslin@netnews.NCTU.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E0FEE16A46F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 13 Jun 2006 16:19:29 +0000 (UTC)
	(envelope-from gslin@netnews.NCTU.edu.tw)
Received: from netnews.NCTU.edu.tw (ccreader.nctu.edu.tw [140.113.54.119])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9583443D46
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 13 Jun 2006 16:19:29 +0000 (GMT)
	(envelope-from gslin@netnews.NCTU.edu.tw)
Received: by netnews.NCTU.edu.tw (Postfix, from userid 1000)
	id 7909C22A; Wed, 14 Jun 2006 00:19:23 +0800 (CST)
Message-Id: <20060613161923.7909C22A@netnews.NCTU.edu.tw>
Date: Wed, 14 Jun 2006 00:19:23 +0800 (CST)
From: Gea-Suan Lin <gslin@gslin.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] devel/cgdb: Unbroken FreeBSD 5.x and 4.x
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         98904
>Category:       ports
>Synopsis:       [MAINTAINER] devel/cgdb: Unbroken FreeBSD 5.x and 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 13 16:20:15 GMT 2006
>Closed-Date:    Wed Jun 14 01:28:07 GMT 2006
>Last-Modified:  Wed Jun 14 01:28:07 GMT 2006
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006
>Description:
- Unbroken FreeBSD 5.x and 4.x.
- Use BUILD_DEPENDS and RUN_DEPENDS to replace LIB_DEPENDS.
  This will
  1) force install port-base libreadline if OSVERSION < 700016 and
  2) avoid configure broken with misc/compat5x installed.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- cgdb-0.6.3_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/cgdb/Makefile /home/staff/gslin/work/cgdb/Makefile
--- /usr/ports/devel/cgdb/Makefile	Tue Jun  6 03:15:48 2006
+++ /home/staff/gslin/work/cgdb/Makefile	Wed Jun 14 00:14:47 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	cgdb
 PORTVERSION=	0.6.3
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -21,12 +22,9 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} < 600000
-IGNORE=		it can be compiled, but cannot run
-.endif
-
 .if ${OSVERSION} < 700016
-LIB_DEPENDS+=	readline.5:${PORTSDIR}/devel/readline
+BUILD_DEPENDS+=	${LOCALBASE}/lib/readline.so.5:${PORTSDIR}/devel/readline
+RUN_DEPENDS=	${BUILD_DEPENDS}
 LDFLAGS+=	-rpath ${LOCALBASE}/lib
 CONFIGURE_ARGS+=	--with-readline=${LOCALBASE}
 CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS}"
--- cgdb-0.6.3_1.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: clsung 
State-Changed-When: Wed Jun 14 01:28:05 UTC 2006 
State-Changed-Why:  
Committed. Thank You. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98904 
>Unformatted:
