diff -Nru lua5.3-5.3.1/debian/changelog lua5.3-5.3.1/debian/changelog --- lua5.3-5.3.1/debian/changelog 2016-04-12 19:45:05.000000000 +0000 +++ lua5.3-5.3.1/debian/changelog 2016-04-14 01:04:15.000000000 +0000 @@ -1,3 +1,15 @@ +lua5.3 (5.3.1-1ubuntu2) UNRELEASED; urgency=medium + + * Revert changes from previous upload, not needed and don't fix the issue. + * debian/patches/0001-build-system.patch: never use libtool --quiet + which is always the wrong answer for package builds. + * debian/patches/0001-build-system.patch: do not pass a version script when + building executables; this is meant for libraries, and its use appears to + be breaking the build on powerpc (probably due to a toolchain regression). + LP: #1570055. + + -- Steve Langasek Thu, 14 Apr 2016 00:52:54 +0000 + lua5.3 (5.3.1-1ubuntu1) xenial; urgency=medium * debian/patches/0001-build-system.patch: Build *and* link with g++. diff -Nru lua5.3-5.3.1/debian/patches/0001-build-system.patch lua5.3-5.3.1/debian/patches/0001-build-system.patch --- lua5.3-5.3.1/debian/patches/0001-build-system.patch 2016-04-12 19:45:05.000000000 +0000 +++ lua5.3-5.3.1/debian/patches/0001-build-system.patch 2016-04-14 01:03:38.000000000 +0000 @@ -7,18 +7,20 @@ src/Makefile | 31 +++++++++++++++++++------------ 2 files changed, 33 insertions(+), 23 deletions(-) ---- a/Makefile -+++ b/Makefile +Index: lua5.3-5.3.1/Makefile +=================================================================== +--- lua5.3-5.3.1.orig/Makefile ++++ lua5.3-5.3.1/Makefile @@ -1,6 +1,8 @@ # Makefile for installing Lua # See doc/readme.html for installation and customization instructions. -+export LIBTOOL=libtool --quiet ++export LIBTOOL=libtool + # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= # Your platform. See PLATS for possible values. -@@ -10,19 +12,20 @@ +@@ -10,19 +12,20 @@ PLAT= none # so take care if INSTALL_TOP is not an absolute path. See the local target. # You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h. @@ -44,7 +46,7 @@ # # If you don't have "install" you can use "cp" instead. # INSTALL= cp -p -@@ -39,10 +42,10 @@ +@@ -39,10 +42,10 @@ RM= rm -f PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris # What to install. @@ -58,7 +60,7 @@ # Lua version and release. V= 5.3 -@@ -52,16 +55,16 @@ +@@ -52,16 +55,16 @@ R= $V.1 all: $(PLAT) $(PLATS) clean: @@ -78,22 +80,24 @@ cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN) uninstall: ---- a/src/Makefile -+++ b/src/Makefile +Index: lua5.3-5.3.1/src/Makefile +=================================================================== +--- lua5.3-5.3.1.orig/src/Makefile ++++ lua5.3-5.3.1/src/Makefile @@ -6,8 +6,10 @@ # Your platform. See PLATS for possible values. PLAT= none -CC= gcc -std=gnu99 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) -+CC= $(CCACHE)g++ ++CC= $(CCACHE)gcc -std=gnu99 +CXX= $(CCACHE)g++ +CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) +CXXFLAGS= -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCXXFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS) -@@ -19,16 +21,21 @@ +@@ -19,16 +21,21 @@ SYSCFLAGS= SYSLDFLAGS= SYSLIBS= @@ -119,7 +123,7 @@ 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 -@@ -36,10 +43,10 @@ +@@ -36,10 +43,10 @@ LIB_O= lauxlib.o lbaselib.o lbitlib.o lc lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS) @@ -132,7 +136,7 @@ LUAC_O= luac.o ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) -@@ -56,14 +63,14 @@ +@@ -56,14 +63,14 @@ o: $(ALL_O) a: $(ALL_A) $(LUA_A): $(BASE_O) @@ -143,11 +147,11 @@ $(LUA_T): $(LUA_O) $(LUA_A) - $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) -+ $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(LIBS) -Wl,--version-script,../debian/version-script -static liblua$(V).la -Wl,-E lua.lo -o $@ ++ $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(LIBS) -static liblua$(V).la -Wl,-E lua.lo -o $@ $(LUAC_T): $(LUAC_O) $(LUA_A) - $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS) -+ $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -Wl,--version-script,../debian/version-script -static liblua$(V).la luac.lo -o $@ ++ $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -static liblua$(V).la luac.lo -o $@ clean: $(RM) $(ALL_T) $(ALL_O)