Date: Tue, 31 May 2011 09:13:20 GMT From: Carl <k0802647@telus.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/157457: lang/lua: setting TARGET_ARCH variable prevents compilation Message-ID: <201105310913.p4V9DKlT035169@red.freebsd.org> Resent-Message-ID: <201105310920.p4V9KBwG009305@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 157457 >Category: ports >Synopsis: lang/lua: setting TARGET_ARCH variable prevents compilation >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 31 09:20:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Carl >Release: FreeBSD-8.2-RELEASE-amd64/i386 >Organization: >Environment: FreeBSD xxxxxxxx 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Trying to build /usr/ports/lang/lua with the following command results in a compilation failure: env TARGET_ARCH=i386 make The error message is: cc: i386: No such file or directory This is the identical problem documented in all of the following problem reports: http://www.freebsd.org/cgi/query-pr.cgi?pr=147853 http://www.freebsd.org/cgi/query-pr.cgi?pr=151224 http://www.freebsd.org/cgi/query-pr.cgi?pr=156607 In addition to fixing the problem for lang/lua, please, please, please assign someone knowledgeable about this problem to the task of searching the entire ports collection for all instances of this same bug, rather than hoping random end users will eventually discover and report them all one at a time. It is simply wrong to waste end user time that way! Carl / K0802647 >How-To-Repeat: env TARGET_ARCH=i386 make >Fix: The attached patch applied to /usr/ports/lang/lua/makefile fixed the problem for me, just as similar patches worked for problem reports ports/147853, ports/151224, and ports/156607. Patch attached with submission follows: --- old/Makefile 2011-05-31 01:05:31.000000000 -0700 +++ new/Makefile 2011-05-31 01:07:20.000000000 -0700 @@ -26,7 +26,7 @@ USE_GNOME= pkgconfig USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes -MAKE_ENV= LUA_SONAME="liblua-${LUA_VER}.so.${LUA_VER_SH}" +MAKE_ENV= LUA_SONAME="liblua-${LUA_VER}.so.${LUA_VER_SH}" TARGET_ARCH= USE_GMAKE= yes MAN1= lua-${LUA_VER}.1 luac-${LUA_VER}.1 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105310913.p4V9DKlT035169>