summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore5
-rw-r--r--lua-5.1.4-idsize.patch12
-rw-r--r--lua.spec7
3 files changed, 23 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index f18efa1..c5ac7a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,6 @@
lua-5.1.4.tar.gz
+lua-5.1.4/
+.build*
+*.src.rpm
+/x86_64/
+/i386/
diff --git a/lua-5.1.4-idsize.patch b/lua-5.1.4-idsize.patch
new file mode 100644
index 0000000..d457b38
--- /dev/null
+++ b/lua-5.1.4-idsize.patch
@@ -0,0 +1,12 @@
+diff -urN lua-5.1.4/src/luaconf.h.template.in lua-5.1.4.idsize/src/luaconf.h.template.in
+--- lua-5.1.4/src/luaconf.h.template.in 2011-01-28 19:18:03.176584291 +0100
++++ lua-5.1.4.idsize/src/luaconf.h.template.in 2011-01-28 19:19:26.581213131 +0100
+@@ -216,7 +216,7 @@
+ @* of a function in debug information.
+ ** CHANGE it if you want a different size.
+ */
+-#define LUA_IDSIZE 60
++#define LUA_IDSIZE 512
+
+
+ /*
diff --git a/lua.spec b/lua.spec
index ee2b409..22d454d 100644
--- a/lua.spec
+++ b/lua.spec
@@ -1,6 +1,6 @@
Name: lua
Version: 5.1.4
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Powerful light-weight programming language
Group: Development/Languages
License: MIT
@@ -8,6 +8,7 @@ URL: http://www.lua.org/
Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz
Patch0: lua-5.1.4-autotoolize.patch
Patch1: lua-5.1.4-lunatic.patch
+Patch2: lua-5.1.4-idsize.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline-devel ncurses-devel
Provides: lua = 5.1
@@ -45,6 +46,7 @@ This package contains the static version of liblua for %{name}.
%setup -q
%patch0 -p1 -E -z .autoxxx
%patch1 -p0 -z .lunatic
+%patch2 -p1 -z .idsize
# fix perms on auto files
chmod u+x autogen.sh config.guess config.sub configure depcomp install-sh missing
@@ -96,6 +98,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.a
%changelog
+* Fri Jan 28 2011 Tim Niemueller <tim@niemueller.de> - 5.1.4-6
+- Add patch to increase IDSIZE for more useful error messages
+
* Sun May 09 2010 Tim Niemueller <tim@niemueller.de> - 5.1.4-5
- Add patch regarding dlopen flags to support Lunatic (Lua-Python bridge)