Skip to content

Commit

Permalink
MD-1715: use compat-lua-5.1 header files for RHEL8 as LuaJIT uses the…
Browse files Browse the repository at this point in the history
… lua 5.1 ABI
  • Loading branch information
Mark Cranny committed May 29, 2020
1 parent f3889f2 commit cf0297e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions pkg/Makefile.bidi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJ= liblpm
LUA_VERSION := 5.3
LUA_VERSION := 5.1

all: rpm

Expand All @@ -16,6 +16,7 @@ specmunge:
git checkout SPECS/$(PROJ).spec
sed -i -e "/%define version/c\%define version $$(cat version.txt)" \
-e '/BuildRequires:.*make/a BuildRequires: libasan\nBuildRequires: libubsan' \
-e "/%define luaver/c\%define luaver $(LUA_VERSION)" SPECS/$(PROJ).spec
-e "/%define luaver/c\%define luaver $(LUA_VERSION)" \
-e 's/lua >=/compat-lua >=/' -e 's/lua-devel >=/compat-lua-devel >=/' SPECS/$(PROJ).spec

.PHONY: all rpm clean specmunge
2 changes: 1 addition & 1 deletion pkg/SPECS/liblpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name: liblpm
Version: %{version}
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Longest Prefix Match (LPM) library
Group: System Environment/Libraries
License: BSD
Expand Down
6 changes: 3 additions & 3 deletions src/lua/lpm_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#include <stdlib.h>
#include <inttypes.h>

#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <lua-5.1/lua.h>
#include <lua-5.1/lauxlib.h>
#include <lua-5.1/lualib.h>

#include "lpm.h"

Expand Down

0 comments on commit cf0297e

Please sign in to comment.