From sheldonh@axl.noc.iafrica.com Mon Mar 29 09:21:12 1999
Return-Path: <sheldonh@axl.noc.iafrica.com>
Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175])
	by hub.freebsd.org (Postfix) with ESMTP id 5482615917
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Mar 1999 09:20:41 -0800 (PST)
	(envelope-from sheldonh@axl.noc.iafrica.com)
Received: from sheldonh (helo=axl.noc.iafrica.com)
	by axl.noc.iafrica.com with local-esmtp (Exim 2.12 #1)
	id 10Rfhy-0007VL-00
	for FreeBSD-gnats-submit@freebsd.org; Mon, 29 Mar 1999 19:20:18 +0200
Message-Id: <28850.922728018@axl.noc.iafrica.com>
Date: Mon, 29 Mar 1999 19:20:18 +0200
From: Sheldon Hearn <sheldonh@iafrica.com>
Sender: Sheldon Hearn <sheldonh@axl.noc.iafrica.com>
Reply-To: Sheldon Hearn <sheldonh@iafrica.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] xpilot compiles with debugging support
X-Send-Pr-Version: 3.2

>Number:         10859
>Category:       ports
>Synopsis:       [PATCH] xpilot compiles with debugging support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 29 09:30:01 PST 1999
>Closed-Date:    Wed Mar 31 07:21:28 PST 1999
>Last-Modified:  Wed Mar 31 07:21:49 PST 1999
>Originator:     Sheldon Hearn
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
UUNET South Africa
>Environment:

	FreeBSD 4.0-CURRENT #0: Mon Mar 29 11:26:56 SAST 1999 i386

>Description:

	The games/xpilot ports installs (and packages) with debugging
	support built into the binaries.

>How-To-Repeat:

	Watch for "-g" in the build output.

>Fix:
	
	Apply the following diff to the port's existing patch-a to teach
	it to honour xf86site.cf's optimization directives.

Index: patches/patch-a
===================================================================
RCS file: /home/ncvs/ports/games/xpilot/patches/patch-a,v
retrieving revision 1.6
diff -u -d -r1.6 patch-a
--- patch-a	1999/03/09 00:11:26	1.6
+++ patch-a	1999/03/29 17:16:02
@@ -17,3 +17,20 @@
   
   /* Manual pages for games usually go to section 6. */
   MANSUFFIX = 6
+***************
+*** 91,97 ****
+   * CDEBUGFLAGS should specify optimalization or debug information (or both).
+   * Try not defining anything first.
+   */
+! CDEBUGFLAGS = -g				/* General debug flag */
+  /* CDEBUGFLAGS = -O				/* General optimize flag */
+  /* CDEBUGFLAGS = -Ae +O3 +FPD			/* HP cc optimize flags (no +ESlit) */
+  /* CDEBUGFLAGS = -Ae -g -z +w1			/* HP cc debug flags */
+--- 91,97 ----
+   * CDEBUGFLAGS should specify optimalization or debug information (or both).
+   * Try not defining anything first.
+   */
+! /* CDEBUGFLAGS = -g				/* General debug flag */
+  /* CDEBUGFLAGS = -O				/* General optimize flag */
+  /* CDEBUGFLAGS = -Ae +O3 +FPD			/* HP cc optimize flags (no +ESlit) */
+  /* CDEBUGFLAGS = -Ae -g -z +w1			/* HP cc debug flags */

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Wed Mar 31 07:21:28 PST 1999 
State-Changed-Why:  
Committed, thanks! 
>Unformatted:
