Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2003 04:12:49 +0800 (CST)
From:      Yen-Ming Lee <leeym@utopia.leeym.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/51507: fix port: www/p5-CGI-SpeedyCGI
Message-ID:  <20030428201249.953D83E9B34@utopia.leeym.com>
Resent-Message-ID: <200304282020.h3SKK5KX059813@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         51507
>Category:       ports
>Synopsis:       fix port: www/p5-CGI-SpeedyCGI
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 28 13:20:03 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 5.0-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 5.0-RELEASE-p3 FreeBSD 5.0-RELEASE-p3 #41: Sun Mar 2 05:56:42 CST 2003 root@utopia.leeym.com:/mnt/obj/usr/src/sys/UTOPIA i386


	
>Description:

SpeedyCGI set wrong default path of speed_backend under perl-5.005, which
cause SpeedyCGI generate this kind of error message:

speedy[38567]: /usr/bin/speedy_backend: No such file or directory
speedy[38565]: Cannot spawn backend process

>How-To-Repeat:
	

under perl-5.005

#cd /usr/ports/www/p5-CGI-SpeedyCGI && make configure

then check PERFIX in ${WRKSRC}/src/Makefile. It shows "PREFIX = /usr"

>Fix:

	

--- p5-CGI-SpeedyCGI.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/p5-CGI-SpeedyCGI/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	11 Apr 2003 02:17:22 -0000	1.4
+++ Makefile	28 Apr 2003 20:09:11 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	CGI-SpeedyCGI
 PORTVERSION=	2.21
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www perl5
 MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
 MASTER_SITE_SUBDIR=	CGI
@@ -17,6 +17,9 @@
 COMMENT=	Speed up perl CGI scripts by running them persistently
 
 PERL_CONFIGURE=	yes
+
+post-configure:
+	@${PERL} -pi.bak -e 's,^PREFIX = /usr$$,PREFIX = ${PREFIX},g' ${WRKSRC}/*/Makefile
 
 post-install:
 	@${INSTALL_PROGRAM} ${WRKSRC}/speedy/speedy ${PREFIX}/bin/speedy_suid
--- p5-CGI-SpeedyCGI.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030428201249.953D83E9B34>