ports/149706: [patch] lang/lua: respect PREFIX for LUA_ROOT
Anonymous
swell.k at gmail.com
Mon Aug 16 12:20:04 UTC 2010
>Number: 149706
>Category: ports
>Synopsis: [patch] lang/lua: respect PREFIX for LUA_ROOT
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Aug 16 12:20:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
LOCALBASE = /usr/pkg
>Description:
>How-To-Repeat:
$ make install clean -C net/luasocket
$ lua -l socket
lua: module 'socket' not found:
no field package.preload['socket']
no file './socket.lua'
no file '/usr/local/share/lua/5.1/socket.lua'
no file '/usr/local/share/lua/5.1/socket/init.lua'
no file '/usr/local/lib/lua/5.1/socket.lua'
no file '/usr/local/lib/lua/5.1/socket/init.lua'
no file './socket.so'
no file '/usr/local/lib/lua/5.1/socket.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: ?
[C]: ?
>Fix:
--- a.diff begins here ---
Index: lang/lua/Makefile
===================================================================
RCS file: /a/.cvsup/ports/lang/lua/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- lang/lua/Makefile 1 Jun 2010 15:19:44 -0000 1.37
+++ lang/lua/Makefile 16 Aug 2010 12:03:33 -0000
@@ -60,6 +60,8 @@ post-patch:
${WRKSRC}/etc/lua.pc
@${REINPLACE_CMD} -e 's,rand *(,random(,g' \
${WRKSRC}/src/lmathlib.c
+ @${REINPLACE_CMD} -e '/LUA_ROOT/s|/usr/local|${PREFIX}|' \
+ ${WRKSRC}/src/luaconf.h
post-build:
@${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list