From nobody@FreeBSD.org  Sat Jan 11 00:56:36 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 4A2709E9
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 11 Jan 2014 00:56:36 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 3660110CF
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 11 Jan 2014 00:56:36 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0B0uZvE091979
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 11 Jan 2014 00:56:35 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0B0uZci091972;
	Sat, 11 Jan 2014 00:56:35 GMT
	(envelope-from nobody)
Message-Id: <201401110056.s0B0uZci091972@oldred.freebsd.org>
Date: Sat, 11 Jan 2014 00:56:35 GMT
From: Kenji Rikitake <kenji@k2r.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: editors/vim: liblua-5.2.so is not loaded when invoked from vim command
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         185650
>Category:       ports
>Synopsis:       editors/vim: liblua-5.2.so is not loaded when invoked from vim command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sunpoet
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 11 01:00:02 UTC 2014
>Closed-Date:    Wed Feb 12 03:20:36 UTC 2014
>Last-Modified:  Wed Feb 12 04:20:00 UTC 2014
>Originator:     Kenji Rikitake
>Release:        10.0-PRERELEASE
>Organization:
>Environment:
FreeBSD minimax.priv.k2r.org 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #23 r260159: Wed Jan  1 17:18:05 JST 2014     root@minimax.priv.k2r.org:/usr/obj/usr/src/sys/K2RKERNEL  amd64
>Description:
/usr/local/lib/liblua-5.2 is not loaded when lua script is invoked from vim.

Error message:
E370: Could not load library liblua-5.2
Lua library cannot be loaded.
>How-To-Repeat:
vim
:lua print(_VERSION)
>Fix:
The shared library suffix (.so) is not added in DYNAMIC_LUA_DLL. Patch attached.

This has been an unresolved issue since December 2013. See PR ports/184588 for the details. The maintainer has not been responded as of 11-JAN-2014 0055UTC.

Patch attached with submission follows:

--- files/OLD/patch-configure.orig	2013-12-03 04:48:37.000000000 +0900
+++ files/patch-configure	2014-01-11 09:28:58.000000000 +0900
@@ -42,7 +42,7 @@
        LUA_LIBS=""
 -      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
 +      vi_cv_version_lua=${LUA_VER}
-+      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua-${vi_cv_version_lua}\\\" $LUA_CFLAGS"
++      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua-${vi_cv_version_lua}.so\\\" $LUA_CFLAGS"
      fi
      if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
         test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sunpoet 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Jan 11 01:00:10 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185650 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Wed Feb 12 03:20:35 UTC 2014 
State-Changed-Why:  
should be fixed now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185650 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185650: commit references a PR
Date: Wed, 12 Feb 2014 04:18:22 +0000 (UTC)

 Author: miwi
 Date: Wed Feb 12 02:59:57 2014
 New Revision: 343835
 URL: http://svnweb.freebsd.org/changeset/ports/343835
 QAT: https://qat.redports.org/buildarchive/r343835/
 
 Log:
   - Fix lua support
   
   PR:		185650
   		184588
   Submitted by:	Kenji Rikitake <kenji@k2r.org>
   Approved by:	maintainer timeout
 
 Modified:
   head/editors/vim/Makefile
   head/editors/vim/files/patch-configure
 
 Modified: head/editors/vim/Makefile
 ==============================================================================
 --- head/editors/vim/Makefile	Wed Feb 12 02:26:25 2014	(r343834)
 +++ head/editors/vim/Makefile	Wed Feb 12 02:59:57 2014	(r343835)
 @@ -12,7 +12,7 @@ PORTNAME=	vim
  #		! PATCHLEVEL to that level.
  PATCHLEVEL=	169
  PORTVERSION=	7.4.${PATCHLEVEL}
 -PORTREVISION?=	0
 +PORTREVISION?=	1
  CATEGORIES?=	editors
  MASTER_SITES=	VIM
  DISTNAME=	${PORTNAME}-${PORTVERSION:R}
 
 Modified: head/editors/vim/files/patch-configure
 ==============================================================================
 --- head/editors/vim/files/patch-configure	Wed Feb 12 02:26:25 2014	(r343834)
 +++ head/editors/vim/files/patch-configure	Wed Feb 12 02:59:57 2014	(r343835)
 @@ -42,7 +42,7 @@
         LUA_LIBS=""
  -      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
  +      vi_cv_version_lua=${LUA_VER}
 -+      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua-${vi_cv_version_lua}\\\" $LUA_CFLAGS"
 ++      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua-${vi_cv_version_lua}.so\\\" $LUA_CFLAGS"
       fi
       if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
          test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
