Skip to content

Instantly share code, notes, and snippets.

View dcarrith's full-sized avatar
💭
I may be slow to respond.

Dave dcarrith

💭
I may be slow to respond.
View GitHub Profile
@dcarrith
dcarrith / keybase.md
Created August 10, 2022 12:02
Verification for keybase

Keybase proof

I hereby claim:

  • I am dcarrith on github.
  • I am dcarrith (https://keybase.io/dcarrith) on keybase.
  • I have a public key ASCOcZjf3bVPWC4BF8fm13XuFo0SEUUoqj4SRmufIQLwzAo

To claim this, I am signing this object:

@dcarrith
dcarrith / msc_lua.c.patch
Created February 27, 2015 20:31
Patch to fix build of mod_security 2.9.0 when lua-5.3.0 is installed
--- msc_lua.c 2015-02-12 14:08:30.000000000 -0500
+++ msc_lua_fixed.c 2015-02-27 10:21:25.434186889 -0500
@@ -111,8 +111,11 @@
dump.pool = pool;
dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *));
+#if LUA_VERSION_NUM >= 503
+ lua_dump(L, dump_writer, &dump, 1);
+#else
lua_dump(L, dump_writer, &dump);
@dcarrith
dcarrith / Makefile.patch
Created February 27, 2015 19:48
fPIC Patch file for the main Makefile for lua-5.3.0
--- Makefile 2014-10-29 19:14:41.000000000 -0400
+++ Makefile.patched 2015-02-27 14:19:23.077739861 -0500
@@ -38,21 +38,21 @@
# Convenience platforms targets.
PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris
+# Lua version and release.
+V= 5.3
+R= $V.0
+
@dcarrith
dcarrith / src.Makefile.patch
Created February 27, 2015 19:47
fPIC Patch file for src/Makefile for lua-5.3.0
--- src/Makefile.original2015-02-27 10:53:53.130125907 -0500
+++ src/Makefile 2015-02-27 10:53:24.674126798 -0500
@@ -7,7 +7,7 @@
PLAT= none
CC= gcc -std=gnu99
-CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
+CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) -fPIC
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)