From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Aug 19 15:00:11 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B29AA106569A for ; Tue, 19 Aug 2008 15:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 94CFB8FC23 for ; Tue, 19 Aug 2008 15:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7JF0BIT075798 for ; Tue, 19 Aug 2008 15:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7JF0Br7075797; Tue, 19 Aug 2008 15:00:11 GMT (envelope-from gnats) Resent-Date: Tue, 19 Aug 2008 15:00:11 GMT Resent-Message-Id: <200808191500.m7JF0Br7075797@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tim Niemueller Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53F8A1065683 for ; Tue, 19 Aug 2008 14:50:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 495BB8FC15 for ; Tue, 19 Aug 2008 14:50:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m7JEojTG098967 for ; Tue, 19 Aug 2008 14:50:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m7JEojo2098966; Tue, 19 Aug 2008 14:50:45 GMT (envelope-from nobody) Message-Id: <200808191450.m7JEojo2098966@www.freebsd.org> Date: Tue, 19 Aug 2008 14:50:45 GMT From: Tim Niemueller To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/126659: [patch] lang/tolua++: build shared library X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2008 15:00:11 -0000 >Number: 126659 >Category: ports >Synopsis: [patch] lang/tolua++: build shared library >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: Tue Aug 19 15:00:11 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Tim Niemueller >Release: 7 >Organization: >Environment: FreeBSD barbossa 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The tolua++ port only builds the static library. With a trivial patch the shared library is built as well. >How-To-Repeat: >Fix: Attached patch causes the shared library to be built *additionally* to the static library (put into files/patch-makeso). Additionally required patches for installation: --- Makefile~ 2008-08-11 00:42:41.000000000 +0200 +++ Makefile 2008-08-19 16:41:03.000000000 +0200 @@ -31,5 +31,6 @@ ${LN} -sf ${LUA_SUBDIR}/tolua++ ${PREFIX}/bin/tolua++-${LUA_VER} ${INSTALL_DATA} ${WRKSRC}/include/tolua++.h ${LUA_INCDIR} ${INSTALL_DATA} ${WRKSRC}/lib/libtolua++.a ${LUA_LIBDIR} + ${INSTALL_DATA} ${WRKSRC}/lib/libtolua++.so ${LUA_LIBDIR} .include --- pkg-plist~ 2008-08-11 00:42:41.000000000 +0200 +++ pkg-plist 2008-08-19 16:40:50.000000000 +0200 @@ -1,4 +1,5 @@ %%LUA_BINDIR%%/tolua++ bin/tolua++-%%LUA_VER%% %%LUA_LIBDIR%%/libtolua++.a +%%LUA_LIBDIR%%/libtolua++.so %%LUA_INCDIR%%/tolua++.h Patch attached with submission follows: --- src/lib/SCsub.orig 2005-11-28 14:51:15.000000000 +0100 +++ src/lib/SCsub 2008-08-19 16:11:40.000000000 +0200 @@ -9,5 +9,6 @@ 'tolua_to.c', ] -env.lib_target = env.Library('#/lib/'+env['tolua_lib'], sources) +env.lib_target = env.Library('#/lib/'+env['tolua_lib'], sources) +env.lib_target += env.SharedLibrary('#/lib/'+env['tolua_lib'], sources) >Release-Note: >Audit-Trail: >Unformatted: