From adg@infowest.com  Wed Mar 14 11:59:33 2001
Return-Path: <adg@infowest.com>
Received: from ns1.infowest.com (ns1.infowest.com [204.17.177.10])
	by hub.freebsd.org (Postfix) with ESMTP id 19B8637B719
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Mar 2001 11:59:33 -0800 (PST)
	(envelope-from adg@infowest.com)
Received: by ns1.infowest.com (Postfix, from userid 100)
	id 409DD2109F; Wed, 14 Mar 2001 12:59:32 -0700 (MST)
Message-Id: <20010314195932.409DD2109F@ns1.infowest.com>
Date: Wed, 14 Mar 2001 12:59:32 -0700 (MST)
From: "Aaron D. Gifford" <agifford@infowest.com>
Sender: adg@infowest.com
Reply-To: "Aaron D. Gifford" <agifford@infowest.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] p5-Mysql port build fails because of missing parameter in Makefile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         25810
>Category:       ports
>Synopsis:       [PATCH] Build of p5-Mysql port fails because of missing parameter in Makefile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jedgar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 14 12:00:02 PST 2001
>Closed-Date:    Tue Mar 20 09:55:50 PST 2001
>Last-Modified:  Tue Mar 20 09:57:09 PST 2001
>Originator:     Aaron D. Gifford
>Release:        FreeBSD 4.3-BETA i386
>Organization:
N/A
>Environment:
System: FreeBSD my.freebsd.box 4.3-BETA FreeBSD 4.3-BETA #0: Tue Mar 13 23:11:54 MST 2001 root@my.freebsd.box:/usr/obj/usr/src/sys/MYKERNEL i386

>Description:
	Any attempt to make/build the p5-Mysql port fails (at least as of 14
	FEB. 2001 CVS updated ports) because of a missing '-p' flag in the
	Makefile.  Here's what the error looks like:

	    ===>  Patching for p5-Mysql-modules-1.2215
	    ===>  Configuring for p5-Mysql-modules-1.2215
	    Modification of a read-only value attempted at -e line 1.
	    *** Error code 19
	    Stop in /usr/ports/databases/p5-Mysql.
	    *** Error code 1
	    Stop in /usr/ports/databases/p5-Mysql.
	    *** Error code 1
	    Stop in /usr/ports/databases/p5-Mysql.
	    *** Error code 1

>How-To-Repeat:
	Just attempt to build the port cleanly.
>Fix:
	Add the '-p' flag to line to the command line parameters on line 35
	of the Makefile.  Change:
	    @${PERL} -i -e 's| -lgz||' ${WRKSRC}/lib/DBD/mysql/Install.pm
	To instead read:
	    @${PERL} -p -i -e 's| -lgz||' ${WRKSRC}/lib/DBD/mysql/Install.pm

	Or apply the patch included below.

	- Aaron out.


--- Makefile.orig	Wed Mar 14 12:42:50 2001
+++ Makefile	Wed Mar 14 12:42:32 2001
@@ -32,6 +32,6 @@
 MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
 
 pre-configure:
-		@${PERL} -i -e 's| -lgz||' ${WRKSRC}/lib/DBD/mysql/Install.pm
+		@${PERL} -p -i -e 's| -lgz||' ${WRKSRC}/lib/DBD/mysql/Install.pm
 
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->jedgar 
Responsible-Changed-By: okazaki 
Responsible-Changed-When: Tue Mar 20 09:42:37 PST 2001 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25810 
State-Changed-From-To: open->closed 
State-Changed-By: jedgar 
State-Changed-When: Tue Mar 20 09:55:50 PST 2001 
State-Changed-Why:  
Committed, thanks! 

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