Hello community, here is the log from the commit of package lua for openSUSE:Factory checked in at 2016-06-29 09:43:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lua (Old) and /work/SRC/openSUSE:Factory/.lua.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lua" Changes: -------- --- /work/SRC/openSUSE:Factory/lua/lua.changes 2015-08-10 09:15:01.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes 2016-06-29 09:43:05.000000000 +0200 @@ -1,0 +2,16 @@ +Thu Jun 16 09:32:46 UTC 2016 - [email protected] + +- update version 5.3.3 + * bugfix release +- changes in 5.3.2 + * metatable may access its own deallocated field when it has a + self reference in __newindex + * label between local definitions can mix-up their initializations + * gmatch iterator fails when called from a coroutine different + from the one that created it +- split lua-suse.diff to 3 reasonable patches + * add lua-5.3.3-prefix.patch + * add lua-5.3.3-shared.patch + * add lua-5.3.3-visible.patch + +------------------------------------------------------------------- Old: ---- lua-5.3.1.tar.gz lua-suse.diff New: ---- lua-5.3.3-prefix.patch lua-5.3.3-shared.patch lua-5.3.3-visible.patch lua-5.3.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lua.spec ++++++ --- /var/tmp/diff_new_pack.aPFeTd/_old 2016-06-29 09:43:06.000000000 +0200 +++ /var/tmp/diff_new_pack.aPFeTd/_new 2016-06-29 09:43:06.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package lua # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define major_version 5.3 %define libsuf 5_3 Name: lua -Version: 5.3.1 +Version: 5.3.3 Release: 0 Summary: Small Embeddable Language with Simple Procedural Syntax License: MIT @@ -28,12 +28,13 @@ Source: http://www.lua.org/ftp/lua-%{version}.tar.gz Source1: macros.lua Source2: baselibs.conf -# prefix and build shared libraries (upstream don't want this in Makefile) -# visibility: I don't see the point why divert from upstream except that -# luaU_dump, luaP_opmodes and luaP_opnames need to be visible -# to luac; if you will divert, don't forgot that LUAI_DDEC -# prefixes declaration of _variables_ -Patch: %{name}-suse.diff +# PATCH-FIX-UPSTREAM change prefix to /usr/ +Patch: lua-5.3.3-prefix.patch +# PATCH-FIX-UPSTREAM shared library support +Patch1: lua-5.3.3-shared.patch +# PATCH-FIX-UPSTREAM make luaU_dump, luaP_opmodes and luaP_opnames visible +# to luac +Patch2: lua-5.3.3-visible.patch BuildRequires: pkg-config BuildRequires: readline-devel BuildRequires: update-alternatives @@ -114,6 +115,8 @@ %prep %setup -q %patch -p1 +%patch1 -p1 +%patch2 -p1 %build sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h ++++++ lua-5.3.3-prefix.patch ++++++ Index: lua-5.3.3/src/luaconf.h =================================================================== --- lua-5.3.3.orig/src/luaconf.h +++ lua-5.3.3/src/luaconf.h @@ -188,7 +188,7 @@ #else /* }{ */ -#define LUA_ROOT "/usr/local/" +#define LUA_ROOT "/usr/" #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" #define LUA_PATH_DEFAULT \ ++++++ lua-5.3.3-shared.patch ++++++ Index: lua-5.3.3/Makefile =================================================================== --- lua-5.3.3.orig/Makefile +++ lua-5.3.3/Makefile @@ -41,7 +41,7 @@ PLATS= aix bsd c89 freebsd generic linux # What to install. TO_BIN= lua luac TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp -TO_LIB= liblua.a +TO_LIB= liblua.a liblua.so.$V TO_MAN= lua.1 luac.1 # Lua version and release. @@ -61,6 +61,7 @@ install: dummy cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD) cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN) cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC) + ln -s liblua.so.$V $(INSTALL_LIB)/liblua.so cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB) cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN) Index: lua-5.3.3/src/Makefile =================================================================== --- lua-5.3.3.orig/src/Makefile +++ lua-5.3.3/src/Makefile @@ -29,6 +29,7 @@ MYOBJS= PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris LUA_A= liblua.a +LUA_SO= liblua.so CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \ lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \ ltm.o lundump.o lvm.o lzio.o @@ -43,7 +44,7 @@ LUAC_T= luac LUAC_O= luac.o ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) +ALL_T= $(LUA_SO) $(LUA_A) $(LUA_T) $(LUAC_T) ALL_A= $(LUA_A) # Targets start here. @@ -55,21 +56,26 @@ o: $(ALL_O) a: $(ALL_A) +# shared libraries (for linux) +$(LUA_SO): $(CORE_O) $(LIB_O) + $(CC) $(MYCFLAGS) -o $(LUA_SO).$V -shared -Wl,-soname,$(LUA_SO).$V $(CORE_O) $(LIB_O) -lm -ldl + ln -sf $(LUA_SO).$V $(LUA_SO) + $(LUA_A): $(BASE_O) $(AR) $@ $(BASE_O) $(RANLIB) $@ $(LUA_T): $(LUA_O) $(LUA_A) - $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + $(CC) $(MYCFLAGS) -o $@ $(MYLDFLAGS) $(LUA_O) -L. -llua $(LIBS) -$(LUAC_T): $(LUAC_O) $(LUA_A) - $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS) +$(LUAC_T): $(LUAC_O) $(LUA_SO) + $(CC) $(MYCFLAGS) -o $@ $(MYLDFLAGS) $(LUAC_O) -L. -llua $(LIBS) clean: $(RM) $(ALL_T) $(ALL_O) depend: - @$(CC) $(CFLAGS) -MM l*.c + @$(CC) $(MYCFLAGS) -MM l*.c echo: @echo "PLAT= $(PLAT)" ++++++ lua-5.3.3-visible.patch ++++++ Index: lua-5.3.3/src/lopcodes.h =================================================================== --- lua-5.3.3.orig/src/lopcodes.h +++ lua-5.3.3/src/lopcodes.h @@ -276,7 +276,7 @@ enum OpArgMask { OpArgK /* argument is a constant or register/constant */ }; -LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES]; +LUA_API const lu_byte luaP_opmodes[NUM_OPCODES]; #define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 3)) #define getBMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3)) @@ -285,7 +285,7 @@ LUAI_DDEC const lu_byte luaP_opmodes[NUM #define testTMode(m) (luaP_opmodes[m] & (1 << 7)) -LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ +LUA_API const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ /* number of list items to accumulate before a SETLIST instruction */ Index: lua-5.3.3/src/lundump.h =================================================================== --- lua-5.3.3.orig/src/lundump.h +++ lua-5.3.3/src/lundump.h @@ -26,7 +26,7 @@ LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); /* dump one chunk; from ldump.c */ -LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, +LUA_API int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); #endif ++++++ lua-5.3.1.tar.gz -> lua-5.3.3.tar.gz ++++++ ++++ 8414 lines of diff (skipped)
