Bug 184588 - editors/vim: lua is not loaded when invoked from vim command
Summary: editors/vim: lua is not loaded when invoked from vim command
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-08 01:20 UTC by Kenji Rikitake
Modified: 2014-02-12 03:20 UTC (History)
0 users

See Also:


Attachments
file.txt (3.97 KB, text/plain)
2013-12-08 01:20 UTC, Kenji Rikitake
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenji Rikitake 2013-12-08 01:20:00 UTC
when lua is being invoked from vim, the following error message shows up:

        E370: Could not load library liblua-5.1
        Lua library cannot be loaded

Fix: Patch as in the attached file. Patch details:
 Summary

* This is a patch for <http://svnweb.freebsd.org/ports/head/editors/vim/Makefile?revision=335790>
  (Ports editors/vim r335790)
  to fix the following error when lua is being invoked from vim:

        E370: Could not load library liblua-5.1
        Lua library cannot be loaded.

* Two files are changed: Makefile and files/patch-configure

## on Makefile

* Change CONF_OPT_LUA_PREFIX using ${LOCALBASE} to ${LUA_PREFIX}
  since <bsd.lua.mk> is assumed

* /usr/ports/Mk/Uses/iconv.mk handles existence and non-existence of
  libiconv.so: always enable "USES+= iconv"

## on files/patch-configure

* Rebuild from 7.4.110 src/auto/configure
* move definition of "vi_cv_version_lua=${LUA_VER}"
* add .so to "-DDYNAMIC_LUA_DLL=\\\"liblua-${vi_cv_version_lua}.so\\\" in LUA_CFLAGS
  for properly loading the shared library of lua from /usr/local/lib/liblua-${LUA_VER}.so


Patch attached with submission follows:
How-To-Repeat: /usr/local/bin/vim
type ":" to enter ex prompt
then type "lua print(100)"
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-12-08 01:20:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Fraser Tweedale 2014-01-03 13:10:18 UTC
This patch fixes the issue on FreeBSD 9.2.  I commend it to the
maintainer.
Comment 3 Kenji Rikitake 2014-01-11 01:14:02 UTC
This bug hasn't been fixed on Port editors/vim 7.4.110_3.
The maintainer sunpoet doesn't respond for a month.
I've issued a new PR ports/185650 again including a one-line fix for 7.4.110_3.
I'd be glad if bapt, who did the modification for 7.4.110_3, takes a
look at this.

Kenji Rikitake
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2014-02-12 03:20:30 UTC
State Changed
From-To: open->closed

should be fixed now.