Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36797 - Adding dynamic library loading to lua (dev-lang/lua)
Summary: Adding dynamic library loading to lua (dev-lang/lua)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-30 03:44 UTC by Jose L. Hidalgo Valiño
Modified: 2004-01-26 06:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Add loadlib support to lua (lua-5.0.ebuild.patch,640 bytes, patch)
2003-12-30 03:46 UTC, Jose L. Hidalgo Valiño
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jose L. Hidalgo Valiño 2003-12-30 03:44:50 UTC
The actual ebuild do not compile lua with loadlib support.

Reproducible: Always
Steps to Reproduce:




Proposed patch:

--- lua-5.0.ebuild.orig 2003-12-30 12:33:20.588770224 +0100
+++ lua-5.0.ebuild      2003-12-30 12:29:21.924052776 +0100
@@ -13,7 +13,10 @@
  
 src_compile() {
        sed -i \
-               -e 's:^#POPEN= -DUSE_POPEN$:POPEN= -DUSE_POPEN:' \
+               -e 's:^#LOADLIB= -DUSE_DLOPEN=1$:LOADLIB= -DUSE_DLOPEN=1:' \
+               -e 's:^#DLLIB= -ldl:DLLIB= -ldl:' \
+               -e "s:^#MYLDFLAGS= -Wl,-E:MYLDFLAGS= -Wl,-E:" \
+               -e 's:^#POPEN= -DUSE_POPEN=1$:POPEN= -DUSE_POPEN=1:' \
                -e "s:^MYCFLAGS= -O2:MYCFLAGS= ${CFLAGS}:" \
                -e 's:INSTALL_ROOT= /usr/local:INSTALL_ROOT= $(DESTDIR)/usr:' \
                -e 's:INSTALL_MAN= $(INSTALL_ROOT)/man/man1:INSTALL_MAN=
$(INSTALL_ROOT)/share/man/man1:' \
Comment 1 Jose L. Hidalgo Valiño 2003-12-30 03:46:38 UTC
Created attachment 22840 [details, diff]
Add loadlib support to lua
Comment 2 Tom Payne (RETIRED) gentoo-dev 2004-01-26 06:13:11 UTC
Thanks, in CVS.