From nobody@FreeBSD.org  Fri Sep 28 15:02:39 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 29CC31065672
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Sep 2012 15:02:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 158208FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Sep 2012 15:02:39 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8SF2cUN038760
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Sep 2012 15:02:38 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q8SF2cW9038759;
	Fri, 28 Sep 2012 15:02:38 GMT
	(envelope-from nobody)
Message-Id: <201209281502.q8SF2cW9038759@red.freebsd.org>
Date: Fri, 28 Sep 2012 15:02:38 GMT
From: HU Dong <itechbear@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [MAINTAINER]: devel/edb is marked as broken on freebsd 7.4
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172148
>Category:       ports
>Synopsis:       [MAINTAINER]: devel/edb is marked as broken on freebsd 7.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bdrewery
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 28 15:10:03 UTC 2012
>Closed-Date:    Fri Sep 28 10:22:01 CDT 2012
>Last-Modified:  Fri Sep 28 15:30:01 UTC 2012
>Originator:     HU Dong
>Release:        9.0 Release i386
>Organization:
None
>Environment:
FreeBSD hostname 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
devel/edb can't build on some systems due to sys/ptrace.h file.

details: http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.7.20120924192130/edb-0.9.18.log
>How-To-Repeat:
build the port on FreeBSD 7.4, 8.0, etc.
>Fix:
see the attatched patch file.

Patch attached with submission follows:

diff -ruN edb.bak/Makefile edb/Makefile
--- edb.bak/Makefile	2012-09-26 03:40:13.000000000 +0800
+++ edb/Makefile	2012-09-26 03:58:58.000000000 +0800
@@ -2,6 +2,7 @@

 PORTNAME=	edb
 PORTVERSION=	0.9.18
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://codef00.com/projects/
 DISTNAME=	debugger-${PORTVERSION}
@@ -29,6 +30,12 @@

 STRIP_FILES=	bin/${PORTNAME} libexec/${PORTNAME}/*.so

+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 800505
+BROKEN=		doesn't build due to lack of memroy map of ptrace
+.endif
+
 .include <bsd.port.options.mk>

 do-configure:
@@ -47,4 +54,4 @@
 	${INSTALL_MAN} ${WRKSRC}/edb.1 ${MANPREFIX}/man/man1/edb.1
 	${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}

-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN edb.bak/pkg-descr edb/pkg-descr
--- edb.bak/pkg-descr	2012-09-26 03:47:42.000000000 +0800
+++ edb/pkg-descr	2012-09-26 03:47:55.000000000 +0800
@@ -1,4 +1,4 @@
-edbg (Evan's Debugger) is a cross platform x86/x86-64 debugger. It
+edb (Evan's Debugger) is a cross platform x86/x86-64 debugger. It
 was inspired by OllyDbg, but aims to function on x86 and x86-64 as
 well as multiple OS's. Linux is the only officially supported
 platform at the moment, but FreeBSD, OpenBSD, OSX and Windows ports


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->bdrewery 
Responsible-Changed-By: bdrewery 
Responsible-Changed-When: Fri Sep 28 10:18:35 CDT 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172148 
State-Changed-From-To: open->closed 
State-Changed-By: bdrewery 
State-Changed-When: Fri Sep 28 10:21:59 CDT 2012 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172148 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/172148: commit references a PR
Date: Fri, 28 Sep 2012 15:22:09 +0000 (UTC)

 Author: bdrewery
 Date: Fri Sep 28 15:21:55 2012
 New Revision: 304998
 URL: http://svn.freebsd.org/changeset/ports/304998
 
 Log:
   - Mark BROKEN on 7.4/8.0
   - Update pkg-descr to have correct project name
   
   PR:		ports/172148
   Submitted by:	HU Dong <itechbear@gmail.com> (maintainer)
 
 Modified:
   head/devel/edb/Makefile
   head/devel/edb/pkg-descr
 
 Modified: head/devel/edb/Makefile
 ==============================================================================
 --- head/devel/edb/Makefile	Fri Sep 28 14:20:19 2012	(r304997)
 +++ head/devel/edb/Makefile	Fri Sep 28 15:21:55 2012	(r304998)
 @@ -2,6 +2,7 @@
  
  PORTNAME=	edb
  PORTVERSION=	0.9.18
 +PORTREVISION=	1
  CATEGORIES=	devel
  MASTER_SITES=	http://codef00.com/projects/
  DISTNAME=	debugger-${PORTVERSION}
 @@ -29,6 +30,12 @@ ONLY_FOR_ARCHS=	i386 amd64
  
  STRIP_FILES=	bin/${PORTNAME} libexec/${PORTNAME}/*.so
  
 +.include <bsd.port.pre.mk>
 +
 +.if ${OSVERSION} < 800505
 +BROKEN=		doesn't build due to lack of memory map of ptrace
 +.endif
 +
  .include <bsd.port.options.mk>
  
  do-configure:
 @@ -47,4 +54,4 @@ post-install:
  	${INSTALL_MAN} ${WRKSRC}/edb.1 ${MANPREFIX}/man/man1/edb.1
  	${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
  
 -.include <bsd.port.mk>
 +.include <bsd.port.post.mk>
 
 Modified: head/devel/edb/pkg-descr
 ==============================================================================
 --- head/devel/edb/pkg-descr	Fri Sep 28 14:20:19 2012	(r304997)
 +++ head/devel/edb/pkg-descr	Fri Sep 28 15:21:55 2012	(r304998)
 @@ -1,4 +1,4 @@
 -edbg (Evan's Debugger) is a cross platform x86/x86-64 debugger. It
 +edb (Evan's Debugger) is a cross platform x86/x86-64 debugger. It
  was inspired by OllyDbg, but aims to function on x86 and x86-64 as
  well as multiple OS's. Linux is the only officially supported
  platform at the moment, but FreeBSD, OpenBSD, OSX and Windows ports
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
