From nobody@FreeBSD.org  Wed Apr 19 20:27:49 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6E76A16A404
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Apr 2006 20:27:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 22FA543D48
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Apr 2006 20:27:49 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k3JKRnnV052764
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Apr 2006 20:27:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k3JKRmqc052763;
	Wed, 19 Apr 2006 20:27:48 GMT
	(envelope-from nobody)
Message-Id: <200604192027.k3JKRmqc052763@www.freebsd.org>
Date: Wed, 19 Apr 2006 20:27:48 GMT
From: Andrew Turner <andrew+ports@fubar.geek.nz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Maintainer Update: net/luasocket
X-Send-Pr-Version: www-2.3

>Number:         96071
>Category:       ports
>Synopsis:       Maintainer Update: net/luasocket
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 19 20:30:27 GMT 2006
>Closed-Date:    Thu Apr 20 08:58:29 GMT 2006
>Last-Modified:  Thu Apr 20 08:58:29 GMT 2006
>Originator:     Andrew Turner
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
none
>Environment:
System: FreeBSD hermies.int.fubar.geek.nz 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Sun Mar 12 21:30:28 NZDT 2006 root@hermies.int.fubar.geek.nz:/usr/obj/srctrees/RELENG_6/sys/GENERIC i386
>Description:
The attached patch, port-net-luasocket-3.diff, adds a dependency on devel/lua-compat51. This is to ensure share/lua/5.0/compat-5.1.lua is installed.

patch-Makefile needs to be placed in the ports files directory to stop luasocket from installing its own copy of share/lua/5.0/compat-5.1.lua.

>How-To-Repeat:

>Fix:
1. Apply port-net-luasocket-3.diff
2. Add patch-Makefile to the port's files directory
	

--- port-net-luasocket-3.diff begins here ---
Index: Makefile
===================================================================
RCS file: /cvsroot/ports/net/luasocket/Makefile,v
retrieving revision 1.5
diff -u -3 -p -r1.5 Makefile
--- Makefile	26 Mar 2006 13:43:34 -0000	1.5
+++ Makefile	16 Apr 2006 23:41:17 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	luasocket
 PORTVERSION=	2.0
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://luaforge.net/frs/download.php/1097/
 
@@ -14,6 +15,8 @@ MAINTAINER=	andrew+ports@fubar.geek.nz
 COMMENT=	IPv4 Sockets support for the Lua language
 
 BUILD_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua
+RUN_DEPENDS=	${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua \
+		${LOCALBASE}/share/lua/5.0/compat-5.1.lua:${PORTSDIR}/devel/lua50-compat51
 
 USE_GMAKE=	yes
 
Index: pkg-plist
===================================================================
RCS file: /cvsroot/ports/net/luasocket/pkg-plist,v
retrieving revision 1.2
diff -u -3 -p -r1.2 pkg-plist
--- pkg-plist	26 Mar 2006 13:43:34 -0000	1.2
+++ pkg-plist	16 Apr 2006 23:37:22 -0000
@@ -1,7 +1,6 @@
 share/lua/5.0/mime.lua
 share/lua/5.0/socket.lua
 share/lua/5.0/ltn12.lua
-share/lua/5.0/compat-5.1.lua
 share/lua/5.0/socket/smtp.lua
 share/lua/5.0/socket/ftp.lua
 share/lua/5.0/socket/tp.lua
--- port-net-luasocket-3.diff ends here ---

--- patch-Makefile begins here ---
--- Makefile.orig	Mon Apr 17 11:33:50 2006
+++ Makefile	Mon Apr 17 11:33:57 2006
@@ -25,7 +25,6 @@
 	smtp.lua
 
 TO_TOP_SHARE:= \
-	$(COMPAT)/compat-5.1.lua \
 	ltn12.lua \
 	socket.lua \
 	mime.lua
--- patch-Makefile ends here ---
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: erwin 
State-Changed-When: Thu Apr 20 08:58:21 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

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