From samy@kerneled.com  Fri Oct 17 04:38:30 2003
Return-Path: <samy@kerneled.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8F52716A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Oct 2003 04:38:30 -0700 (PDT)
Received: from essence.sdodson.com (67-50-89-87.br2.tbr.ga.frontiernet.net [67.50.89.87])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4D34B43F93
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Oct 2003 04:38:27 -0700 (PDT)
	(envelope-from samy@kerneled.com)
Received: from beastie.freebsd.local (dial37-234.sbm.net.sa [212.46.37.234])
	by essence.sdodson.com (8.12.10/8.12.10) with ESMTP id h9HBc6in002687
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Oct 2003 11:38:14 GMT
	(envelope-from samy@kerneled.com)
Message-Id: 1066390746@beastie.freebsd.local
Date: Fri, 17 Oct 2003 14:39:25 +0300
From: "Samy Al Bahra" <samy@kerneled.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Fix for the long-broken audio/denemo port
X-Send-Pr-Version: gtk-send-pr 0.1 
X-GNATS-Notify:

>Number:         58161
>Category:       ports
>Synopsis:       Fix for the long-broken audio/denemo port
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    trevor
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 17 04:40:12 PDT 2003
>Closed-Date:    Sat Oct 18 00:23:09 PDT 2003
>Last-Modified:  Sat Oct 18 00:23:09 PDT 2003
>Originator:     Samy Al Bahra
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Kerneled 
>Environment:


System: FreeBSD beastie.freebsd.local 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Aug 20 18:35:24 AST 2003     samy@beastie.freebsd.local:/usr/src/sys/i386/compile/KERNELED i386  


>Description:


denemo's setkey() function conflicts with the setkey()
symbol from the cipher library (on 5.X systems at the
least).


>How-To-Repeat:


Build denemo on a 5.X system.


>Fix:


The patch in this PR fixes this problem by renaming
the setkey() function and removes some other
redundancy in the port.

--- denemo/Makefile.orig	Fri Oct 17 14:08:35 2003
+++ denemo/Makefile	Fri Oct 17 14:13:11 2003
@@ -19,6 +19,7 @@
 		xml.5:${PORTSDIR}/textproc/libxml
 
 USE_GETOPT_LONG=yes
+USE_REINPLACE=yes
 GNU_CONFIGURE=	yes
 PLIST=		${WRKDIR}/pkg-plist
 SHARED=		denemo.conf denemo.keymaprc english.keymaprc french.keymaprc
@@ -29,15 +30,12 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 500113
-BROKEN=		"Does not compile"
-.endif
-
 pre-patch:
-.for ii in analysis_highlighting.c main.c playback.c print.c
-	${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig
-	${SED} -e "s:<wait.h:<sys/wait.h:g" < ${WRKSRC}/${ii}.orig \
-		> ${WRKSRC}/${ii}
+.for i in analysis_highlighting.c playback.c print.c
+	@${REINPLACE_CMD} -e "s|<wait.h>|<sys/wait.h>|g" ${WRKSRC}/${i}
+.endfor
+.for i in easylyparser.c easylyparser.y lyparserfuncs.c lyparserfuncs.h
+	@${REINPLACE_CMD} -e "s|setkey|setekey|g" ${WRKSRC}/${i}
 .endfor
 
 pre-install:



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->trevor 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Oct 17 23:37:34 PDT 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58161 
State-Changed-From-To: open->closed 
State-Changed-By: trevor 
State-Changed-When: Sat Oct 18 00:22:53 PDT 2003 
State-Changed-Why:  
Committed--thank you, Samy! 

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