Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 182888 Details for
Bug 260008
incorrect libtool usage in dev-lang/lua-5.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch creating new lua-5.1-make-r1.patch and lua-5.1-make_static-r1.patch
lua-libtool.patch (text/plain), 4.35 KB, created by
Michael Haubenwallner (RETIRED)
on 2009-02-23 13:49:00 UTC
(
hide
)
Description:
patch creating new lua-5.1-make-r1.patch and lua-5.1-make_static-r1.patch
Filename:
MIME Type:
Creator:
Michael Haubenwallner (RETIRED)
Created:
2009-02-23 13:49:00 UTC
Size:
4.35 KB
patch
obsolete
>Index: lua-5.1.4.ebuild >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.1.4.ebuild,v >retrieving revision 1.1 >diff -u -r1.1 lua-5.1.4.ebuild >--- lua-5.1.4.ebuild 28 Sep 2008 10:00:26 -0000 1.1 >+++ lua-5.1.4.ebuild 23 Feb 2009 13:45:19 -0000 >@@ -22,7 +22,7 @@ > unpack ${A} > cd "${S}" > >- epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make.patch >+ epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r1.patch > epatch "${FILESDIR}"/${PN}-${PATCH_PV}-module_paths.patch > > # EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch >@@ -48,7 +48,7 @@ > # compiler (built statically) nor the lua libraries (both shared and static > # are installed) > if use static ; then >- epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static.patch >+ epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static-r1.patch > fi > > # We want packages to find our things... >Index: files/lua-5.1-make-r1.patch >=================================================================== >RCS file: files/lua-5.1-make-r1.patch >diff -N files/lua-5.1-make-r1.patch >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/lua-5.1-make-r1.patch 23 Feb 2009 13:45:19 -0000 >@@ -0,0 +1,65 @@ >+diff -ru lua-5.1.4.orig/Makefile lua-5.1.4/Makefile >+--- lua-5.1.4.orig/Makefile 2008-08-12 02:40:48.000000000 +0200 >++++ lua-5.1.4/Makefile 2009-02-23 10:55:12.000000000 +0100 >+@@ -126,3 +126,21 @@ >+ .PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho >+ >+ # (end of Makefile) >++ >++# Use libtool for binary installs, etc. >++ >++export V >++export LIBTOOL = libtool --quiet --tag=CC >++# See libtool manual about how to set this >++ >++gentoo_clean: >++ cd src; $(MAKE) $@ >++ >++gentoo_test: gentoo_linux >++ test/lua.static test/hello.lua >++ >++gentoo_install: >++ mkdir -p $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) >++ cd src; $(LIBTOOL) --mode=install $(INSTALL_EXEC) lua luac $(INSTALL_BIN) >++ cd src; $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC) >++ cd src; $(LIBTOOL) --mode=install $(INSTALL_DATA) liblua.la $(INSTALL_LIB) >+diff -ru lua-5.1.4.orig/src/Makefile lua-5.1.4/src/Makefile >+--- lua-5.1.4.orig/src/Makefile 2008-01-19 20:37:58.000000000 +0100 >++++ lua-5.1.4/src/Makefile 2009-02-23 10:55:12.000000000 +0100 >+@@ -180,3 +180,36 @@ >+ ltm.h lzio.h lmem.h lopcodes.h lundump.h >+ >+ # (end of Makefile) >++ >++export LIBTOOL = libtool --quiet --tag=CC >++export LIB_VERSION = 6:1:1 >++ >++# The following rules use libtool for compiling and linking in order to >++# provide shared library support. >++ >++LIB_NAME = liblua.la >++LIB_OBJS = $(CORE_O:.o=.lo) $(LIB_O:.o=.lo) >++ >++%.lo %.o: %.c >++ $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< >++ >++$(LIB_NAME): $(LIB_OBJS) >++ $(LIBTOOL) --mode=link $(CC) -version-info $(LIB_VERSION) \ >++ -rpath $(RPATH) -o $(LIB_NAME) $(LIB_OBJS) $(LIB_LIBS) >++ >++$(LIB_NAME:.la=.a): $(LIB_OBJS) >++ $(LIBTOOL) --mode=link $(CC) -static -o $(LIB_NAME:.la=.a) $(LIB_OBJS) >++ >++$(LUA_T): $(LUA_O:.o=.lo) $(LIB_NAME) >++ $(LIBTOOL) --mode=link $(CC) -export-dynamic -o $@ $(LUA_O:.o=.lo) $(LUA_LIBS) -llua >++ >++lua_test: $(LUA_O:.o=.lo) $(LIB_NAME) >++ $(LIBTOOL) --mode=link $(CC) -static -export-dynamic -o $@ $(LUA_O:.o=.lo) $(LIB_NAME) $(LUA_LIBS) >++ >++$(LUAC_T): $(LUAC_O:.o=.lo) $(LIB_NAME) >++ $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LUAC_O:.o=.lo) $(LIB_NAME) >++ >++gentoo_clean: >++ $(LIBTOOL) --mode=clean $(RM) $(ALL_O:.o=.lo) $(LIB_NAME) lua luac >++ >++gentoo_all: $(LIB_NAME) $(LIB_NAME:.la=.a) $(LUA_T) lua_test $(LUAC_T) >Index: files/lua-5.1-make_static-r1.patch >=================================================================== >RCS file: files/lua-5.1-make_static-r1.patch >diff -N files/lua-5.1-make_static-r1.patch >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/lua-5.1-make_static-r1.patch 23 Feb 2009 13:45:19 -0000 >@@ -0,0 +1,12 @@ >+diff -ru lua-5.1.1.orig/src/Makefile lua-5.1.1/src/Makefile >+--- lua-5.1.1.orig/src/Makefile 2006-11-21 07:19:31 +0000 >++++ lua-5.1.1/src/Makefile 2006-11-21 07:19:52 +0000 >+@@ -196,7 +196,7 @@ >+ -rpath $(RPATH) -o $(LIB_NAME) $(LIB_OBJS) $(LIB_LIBS) >+ >+ $(LUA_T): $(LUA_O:.o=.lo) $(LIB_NAME) >+- $(LIBTOOL) --mode=link $(CC) -export-dynamic -o $@ $(LUA_O:.o=.lo) $(LUA_LIBS) -llua >++ $(LIBTOOL) --mode=link $(CC) -static -export-dynamic -o $@ $(LUA_O:.o=.lo) $(LIB_NAME) $(LUA_LIBS) >+ >+ $(LUAC_T): $(LUAC_O:.o=.lo) $(LIB_NAME) >+ $(LIBTOOL) --mode=link $(CC) -static -o $@ $(LUAC_O:.o=.lo) $(LIB_NAME)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260008
: 182888 |
182889
|
186317