From 6198928d08f9105a8bbf0675d934d48c5db9039c Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 3 Aug 2020 15:40:03 +0200 Subject: [PATCH] lua54: avoid conditional usage of -Os The CMCFLAGS variable in Lua 5.4's Makefile specifies -Os by default, apparently to shrink the code size of certain files. However, at least on my machine that causes issues with valgrind, rendering it practically unusable through hundreds of messages about uninitialized memory. --- srcpkgs/lua54/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/lua54/template b/srcpkgs/lua54/template index a3792ec83bc..b77c8ce052a 100644 --- a/srcpkgs/lua54/template +++ b/srcpkgs/lua54/template @@ -1,7 +1,7 @@ # Template file for 'lua54' pkgname=lua54 version=5.4.0 -revision=1 +revision=2 wrksrc=lua-${version} makedepends="ncurses-devel readline-devel" short_desc="Powerful, fast, lightweight, embeddable scripting language (5.4.x)" @@ -24,7 +24,7 @@ do_build() { -e '/^LUA_(SO|A|T)=/ s;lua;lua5.4;' \ -e '/^LUAC_T=/ s;luac;luac5.4;' make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" \ - CC="$CC" RANLIB="$RANLIB" \ + CMCFLAGS="" CC="$CC" RANLIB="$RANLIB" \ INSTALL_DATA="cp -d" LUA_SO=liblua5.4.so ${makejobs} linux-readline }