Date: Sun, 12 Dec 2010 15:07:57 GMT From: Jase Thew <freebsd@beardz.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/153046: [PATCH] fix to stop bsd.lua.mk ignoring user supplied WITH_LUA_VER Message-ID: <201012121507.oBCF7vFL072870@red.freebsd.org> Resent-Message-ID: <201012121510.oBCFAAQp014378@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 153046 >Category: ports >Synopsis: [PATCH] fix to stop bsd.lua.mk ignoring user supplied WITH_LUA_VER >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 12 15:10:09 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Jase Thew >Release: 8.1-STABLE >Organization: >Environment: FreeBSD jail-ports.localdomain 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Nov 17 00:11:36 GMT 2010 >Description: Due to an incorrect list assignment in bsd.lua.mk, ports with no hardcoded lua version requirement will ignore WITH_LUA_VER (which is used to specify which installed version of lua to build a port against) and will instead use the highest version of lua installed. >How-To-Repeat: 1. Install both lang/lua50 and lang/lua51 ports 2. Pick a port that will allow building against 5.0 or 5.1 (eg, irc/weechat-devel) 3. 'export WITH_LUA_VER=5.0' 4. 'make configure' the port picked in step #2. 5. notice that the port depends on lua-5.1.x not lua-5.0.x as specified in step #3. >Fix: Modify Mk/bsd.lua.mk as in the attached patch. Patch attached with submission follows: --- Mk/bsd.lua.mk.orig 2010-12-12 04:47:41.000000000 +0000 +++ Mk/bsd.lua.mk 2010-12-12 14:34:21.000000000 +0000 @@ -157,7 +157,7 @@ _LUA_PLIST_ALL= LUA_VER LUA_VER_SH LUA_VER_STR LUA_PREFIX LUA_SUBDIR _LUA_PLIST_DIR_ALL= LUA_BINDIR LUA_INCDIR LUA_LIBDIR \ LUA_MODLIBDIR LUA_MODSHAREDIR -_LUA_VERS_LISTS= WANT_LUA_VER WITH_LUA_VER _LUA_VER_INSTALLED +_LUA_VERS_LISTS= _LUA_VER_INSTALLED WANT_LUA_VER WITH_LUA_VER # # Variables used to determine what is needed. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012121507.oBCF7vFL072870>