Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2006 20:27:48 GMT
From:      Andrew Turner <andrew+ports@fubar.geek.nz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/96071: Maintainer Update: net/luasocket
Message-ID:  <200604192027.k3JKRmqc052763@www.freebsd.org>
Resent-Message-ID: <200604192030.k3JKURKI087789@freefall.freebsd.org>

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

>Number:         96071
>Category:       ports
>Synopsis:       Maintainer Update: net/luasocket
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 19 20:30:27 GMT 2006
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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