diff options
author | Matti Bickel <mabi@gentoo.org> | 2010-06-19 17:04:05 +0000 |
---|---|---|
committer | Matti Bickel <mabi@gentoo.org> | 2010-06-19 17:04:05 +0000 |
commit | 7a57406a9f3829e394fe41ffbcd654db87f07042 (patch) | |
tree | caa3b55a1d270f2a6529c02cca9787aeb8f85b09 /dev-lang | |
parent | ia64/sh/sparc stable wrt #315149 (diff) | |
download | gentoo-2-7a57406a9f3829e394fe41ffbcd654db87f07042.tar.gz gentoo-2-7a57406a9f3829e394fe41ffbcd654db87f07042.tar.bz2 gentoo-2-7a57406a9f3829e394fe41ffbcd654db87f07042.zip |
add two upstream patches
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/lua/ChangeLog | 12 | ||||
-rw-r--r-- | dev-lang/lua/files/5.1.4/05_all_string_format.upstream.patch | 21 | ||||
-rw-r--r-- | dev-lang/lua/files/5.1.4/06_all_io_read.upstream.patch | 15 | ||||
-rw-r--r-- | dev-lang/lua/lua-5.1.4-r1.ebuild | 112 | ||||
-rw-r--r-- | dev-lang/lua/lua-5.1.4-r2.ebuild | 114 | ||||
-rw-r--r-- | dev-lang/lua/lua-5.1.4-r3.ebuild | 117 | ||||
-rw-r--r-- | dev-lang/lua/lua-5.1.4-r6.ebuild (renamed from dev-lang/lua/lua-5.1.4-r5.ebuild) | 2 |
7 files changed, 47 insertions, 346 deletions
diff --git a/dev-lang/lua/ChangeLog b/dev-lang/lua/ChangeLog index dd54930e01c4..2a8c26c411c0 100644 --- a/dev-lang/lua/ChangeLog +++ b/dev-lang/lua/ChangeLog @@ -1,11 +1,19 @@ # ChangeLog for dev-lang/lua # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.147 2010/04/10 17:00:10 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.148 2010/06/19 17:04:05 mabi Exp $ + +*lua-5.1.4-r6 (19 Jun 2010) + + 19 Jun 2010; Matti Bickel <mabi@gentoo.org> + +files/5.1.4/05_all_string_format.upstream.patch, -lua-5.1.4-r1.ebuild, + -lua-5.1.4-r3.ebuild, +files/5.1.4/06_all_io_read.upstream.patch, + -lua-5.1.4-r2.ebuild, -lua-5.1.4-r5.ebuild, +lua-5.1.4-r6.ebuild: + add two upstream patches, remove old ebuilds 10 Apr 2010; Raúl Porcel <armin76@gentoo.org> lua-5.1.4-r4.ebuild: ia64/s390/sh stable - 05 Mar 2010; <mabi@gentoo.org> lua-5.1.4-r5.ebuild: + 05 Mar 2010; Matti Bickel <mabi@gentoo.org> lua-5.1.4-r5.ebuild: fix bug #306869 *lua-5.1.4-r5 (23 Feb 2010) diff --git a/dev-lang/lua/files/5.1.4/05_all_string_format.upstream.patch b/dev-lang/lua/files/5.1.4/05_all_string_format.upstream.patch new file mode 100644 index 000000000000..5127507df9f6 --- /dev/null +++ b/dev-lang/lua/files/5.1.4/05_all_string_format.upstream.patch @@ -0,0 +1,21 @@ +--- lua-5.1.4.orig/src/lstrlib.c 2008/07/11 17:27:21 1.132.1.4 ++++ lua-5.1.4/src/lstrlib.c 2010/05/14 15:12:53 +@@ -754,6 +754,7 @@ + + + static int str_format (lua_State *L) { ++ int top = lua_gettop(L); + int arg = 1; + size_t sfl; + const char *strfrmt = luaL_checklstring(L, arg, &sfl); +@@ -768,7 +769,8 @@ + else { /* format item */ + char form[MAX_FORMAT]; /* to store the format (`%...') */ + char buff[MAX_ITEM]; /* to store the formatted item */ +- arg++; ++ if (++arg > top) ++ luaL_argerror(L, arg, "no value"); + strfrmt = scanformat(L, strfrmt, form); + switch (*strfrmt++) { + case 'c': { + diff --git a/dev-lang/lua/files/5.1.4/06_all_io_read.upstream.patch b/dev-lang/lua/files/5.1.4/06_all_io_read.upstream.patch new file mode 100644 index 000000000000..94634c591404 --- /dev/null +++ b/dev-lang/lua/files/5.1.4/06_all_io_read.upstream.patch @@ -0,0 +1,15 @@ +--- lua-5.1.4.orig/src/liolib.c 2008/01/18 17:47:43 2.73.1.3 ++++ lua-5.1.4/src/liolib.c 2010/05/14 15:29:29 +@@ -276,7 +276,10 @@ + lua_pushnumber(L, d); + return 1; + } +- else return 0; /* read fails */ ++ else { ++ lua_pushnil(L); /* "result" to be removed */ ++ return 0; /* read fails */ ++ } + } + + + diff --git a/dev-lang/lua/lua-5.1.4-r1.ebuild b/dev-lang/lua/lua-5.1.4-r1.ebuild deleted file mode 100644 index d47677a7042d..000000000000 --- a/dev-lang/lua/lua-5.1.4-r1.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.1.4-r1.ebuild,v 1.4 2009/03/23 20:45:42 mabi Exp $ - -EAPI="1" - -inherit eutils portability versionator toolchain-funcs - -DESCRIPTION="A powerful light-weight programming language designed for extending applications" -HOMEPAGE="http://www.lua.org/" -SRC_URI="http://www.lua.org/ftp/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="+deprecated readline static" - -DEPEND="readline? ( sys-libs/readline )" - -src_unpack() { - local PATCH_PV=$(get_version_component_range 1-2) - unpack ${A} - cd "${S}" - - 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 - - # correct lua versioning - sed -i -e 's/\(LIB_VERSION = \)6:1:1/\16:4:1/' src/Makefile - - sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html - - if ! use deprecated ; then - epatch "${FILESDIR}"/${P}-deprecated.patch - epatch "${FILESDIR}"/${P}-test.patch - fi - - if ! use readline ; then - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-readline.patch - fi - - # Using dynamic linked lua is not recommended upstream for performance - # reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519 - # Mainly, this is of concern if your arch is poor with GPRs, like x86 - # Not that this only affects the interpreter binary (named lua), not the lua - # compiler (built statically) nor the lua libraries (both shared and static - # are installed) - if use static ; then - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static-r1.patch - fi - - # We want packages to find our things... - sed -i -e 's:/usr/local:/usr:' etc/lua.pc -} - -src_compile() { - tc-export CC - myflags= - # what to link to liblua - liblibs="-lm" - liblibs="${liblibs} $(dlopen_lib)" - - # what to link to the executables - mylibs= - if use readline; then - mylibs="-lreadline" - fi - - cd src - emake CC="${CC}" CFLAGS="-DLUA_USE_LINUX ${CFLAGS}" \ - RPATH="${ROOT}/usr/$(get_libdir)/" \ - LUA_LIBS="${mylibs}" \ - LIB_LIBS="${liblibs}" \ - V=${PV} \ - gentoo_all || die "emake failed" - - mv lua_test ../test/lua.static -} - -src_install() { - emake INSTALL_TOP="${D}/usr/" INSTALL_LIB="${D}/usr/$(get_libdir)/" \ - V=${PV} gentoo_install \ - || die "emake install gentoo_install failed" - - dodoc HISTORY README - dohtml doc/*.html doc/*.gif - - insinto /usr/share/pixmaps - doins etc/lua.ico - insinto /usr/$(get_libdir)/pkgconfig - doins etc/lua.pc - - doman doc/lua.1 doc/luac.1 -} - -src_test() { - local positive="bisect cf echo env factorial fib fibfor hello printf sieve - sort trace-calls trace-globals" - local negative="readonly" - local test - - cd "${S}" - for test in ${positive}; do - test/lua.static test/${test}.lua || die "test $test failed" - done - - for test in ${negative}; do - test/lua.static test/${test}.lua && die "test $test failed" - done -} diff --git a/dev-lang/lua/lua-5.1.4-r2.ebuild b/dev-lang/lua/lua-5.1.4-r2.ebuild deleted file mode 100644 index e1ce3e941df4..000000000000 --- a/dev-lang/lua/lua-5.1.4-r2.ebuild +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.1.4-r2.ebuild,v 1.2 2009/09/29 08:04:20 ulm Exp $ - -EAPI="1" - -inherit eutils portability versionator toolchain-funcs - -DESCRIPTION="A powerful light-weight programming language designed for extending applications" -HOMEPAGE="http://www.lua.org/" -SRC_URI="http://www.lua.org/ftp/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="+deprecated emacs readline static" - -DEPEND="readline? ( sys-libs/readline )" -RDEPEND="${DEPEND}" -PDEPEND="emacs? ( app-emacs/lua-mode )" - -src_unpack() { - local PATCH_PV=$(get_version_component_range 1-2) - unpack ${A} - cd "${S}" - - 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 - - # correct lua versioning - sed -i -e 's/\(LIB_VERSION = \)6:1:1/\16:4:1/' src/Makefile - - sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html - - if ! use deprecated ; then - epatch "${FILESDIR}"/${P}-deprecated.patch - epatch "${FILESDIR}"/${P}-test.patch - fi - - if ! use readline ; then - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-readline.patch - fi - - # Using dynamic linked lua is not recommended upstream for performance - # reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519 - # Mainly, this is of concern if your arch is poor with GPRs, like x86 - # Not that this only affects the interpreter binary (named lua), not the lua - # compiler (built statically) nor the lua libraries (both shared and static - # are installed) - if use static ; then - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static-r1.patch - fi - - # We want packages to find our things... - sed -i -e 's:/usr/local:/usr:' etc/lua.pc -} - -src_compile() { - tc-export CC - myflags= - # what to link to liblua - liblibs="-lm" - liblibs="${liblibs} $(dlopen_lib)" - - # what to link to the executables - mylibs= - if use readline; then - mylibs="-lreadline" - fi - - cd src - emake CC="${CC}" CFLAGS="-DLUA_USE_LINUX ${CFLAGS}" \ - RPATH="${ROOT}/usr/$(get_libdir)/" \ - LUA_LIBS="${mylibs}" \ - LIB_LIBS="${liblibs}" \ - V=${PV} \ - gentoo_all || die "emake failed" - - mv lua_test ../test/lua.static -} - -src_install() { - emake INSTALL_TOP="${D}/usr/" INSTALL_LIB="${D}/usr/$(get_libdir)/" \ - V=${PV} gentoo_install \ - || die "emake install gentoo_install failed" - - dodoc HISTORY README - dohtml doc/*.html doc/*.gif - - insinto /usr/share/pixmaps - doins etc/lua.ico - insinto /usr/$(get_libdir)/pkgconfig - doins etc/lua.pc - - doman doc/lua.1 doc/luac.1 -} - -src_test() { - local positive="bisect cf echo env factorial fib fibfor hello printf sieve - sort trace-calls trace-globals" - local negative="readonly" - local test - - cd "${S}" - for test in ${positive}; do - test/lua.static test/${test}.lua || die "test $test failed" - done - - for test in ${negative}; do - test/lua.static test/${test}.lua && die "test $test failed" - done -} diff --git a/dev-lang/lua/lua-5.1.4-r3.ebuild b/dev-lang/lua/lua-5.1.4-r3.ebuild deleted file mode 100644 index 5f72f0d1aa86..000000000000 --- a/dev-lang/lua/lua-5.1.4-r3.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.1.4-r3.ebuild,v 1.1 2009/11/24 17:31:36 jer Exp $ - -EAPI="1" - -inherit eutils multilib portability toolchain-funcs versionator - -DESCRIPTION="A powerful light-weight programming language designed for extending applications" -HOMEPAGE="http://www.lua.org/" -SRC_URI="http://www.lua.org/ftp/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="+deprecated emacs readline static" - -DEPEND="readline? ( sys-libs/readline )" -RDEPEND="${DEPEND}" -PDEPEND="emacs? ( app-emacs/lua-mode )" - -src_unpack() { - local PATCH_PV=$(get_version_component_range 1-2) - unpack ${A} - cd "${S}" - - 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 - - # correct lua versioning - sed -i -e 's/\(LIB_VERSION = \)6:1:1/\16:4:1/' src/Makefile - - sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html - - if ! use deprecated ; then - epatch "${FILESDIR}"/${P}-deprecated.patch - epatch "${FILESDIR}"/${P}-test.patch - fi - - if ! use readline ; then - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-readline.patch - fi - - # Using dynamic linked lua is not recommended upstream for performance - # reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519 - # Mainly, this is of concern if your arch is poor with GPRs, like x86 - # Not that this only affects the interpreter binary (named lua), not the lua - # compiler (built statically) nor the lua libraries (both shared and static - # are installed) - if use static ; then - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static-r1.patch - fi - - # We want packages to find our things... - sed -i \ - -e 's:/usr/local:/usr:' \ - -e "s:lib/lua:$(get_libdir)/lua:" \ - etc/lua.pc -} - -src_compile() { - tc-export CC - myflags= - # what to link to liblua - liblibs="-lm" - liblibs="${liblibs} $(dlopen_lib)" - - # what to link to the executables - mylibs= - if use readline; then - mylibs="-lreadline" - fi - - cd src - emake CC="${CC}" CFLAGS="-DLUA_USE_LINUX ${CFLAGS}" \ - RPATH="${ROOT}/usr/$(get_libdir)/" \ - LUA_LIBS="${mylibs}" \ - LIB_LIBS="${liblibs}" \ - V=${PV} \ - gentoo_all || die "emake failed" - - mv lua_test ../test/lua.static -} - -src_install() { - emake INSTALL_TOP="${D}/usr/" INSTALL_LIB="${D}/usr/$(get_libdir)/" \ - V=${PV} gentoo_install \ - || die "emake install gentoo_install failed" - - dodoc HISTORY README - dohtml doc/*.html doc/*.gif - - insinto /usr/share/pixmaps - doins etc/lua.ico - insinto /usr/$(get_libdir)/pkgconfig - doins etc/lua.pc - - doman doc/lua.1 doc/luac.1 -} - -src_test() { - local positive="bisect cf echo env factorial fib fibfor hello printf sieve - sort trace-calls trace-globals" - local negative="readonly" - local test - - cd "${S}" - for test in ${positive}; do - test/lua.static test/${test}.lua || die "test $test failed" - done - - for test in ${negative}; do - test/lua.static test/${test}.lua && die "test $test failed" - done -} diff --git a/dev-lang/lua/lua-5.1.4-r5.ebuild b/dev-lang/lua/lua-5.1.4-r6.ebuild index 4e4020e98e1d..db76e4fb3bb1 100644 --- a/dev-lang/lua/lua-5.1.4-r5.ebuild +++ b/dev-lang/lua/lua-5.1.4-r6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.1.4-r5.ebuild,v 1.2 2010/03/05 19:58:21 mabi Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.1.4-r6.ebuild,v 1.1 2010/06/19 17:04:05 mabi Exp $ EAPI="1" |