lua: fix build with MacOS's make
authorRafał Miłecki <rafal@milecki.pl>
Fri, 28 Jun 2019 09:38:23 +0000 (11:38 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 28 Jun 2019 09:40:08 +0000 (11:40 +0200)
It apparently requires passing V variable explicitly.

Fixes: fe59b46ca7e0 ("lua: include version number in installed files")
Reported-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
package/utils/lua/patches-host/001-include-version-number.patch
package/utils/lua/patches/001-include-version-number.patch

index b7056fd47c67f849c4ad72830d8a60d64e6072d7..f769e607367fb03660cf6353e6b2d050ea743b43 100644 (file)
@@ -24,6 +24,15 @@ diff --git a/Makefile b/Makefile
  
  # Lua version and release.
  V= 5.1
+@@ -53,7 +53,7 @@ R= 5.1.5
+ all:  $(PLAT)
+ $(PLATS) clean:
+-      cd src && $(MAKE) $@
++      cd src && $(MAKE) $@ V=$V
+ test: dummy
+       src/lua test/hello.lua
 diff --git a/doc/lua.1 b/doc/lua5.1.1
 rename from doc/lua.1
 rename to doc/lua5.1.1
index b7056fd47c67f849c4ad72830d8a60d64e6072d7..f769e607367fb03660cf6353e6b2d050ea743b43 100644 (file)
@@ -24,6 +24,15 @@ diff --git a/Makefile b/Makefile
  
  # Lua version and release.
  V= 5.1
+@@ -53,7 +53,7 @@ R= 5.1.5
+ all:  $(PLAT)
+ $(PLATS) clean:
+-      cd src && $(MAKE) $@
++      cd src && $(MAKE) $@ V=$V
+ test: dummy
+       src/lua test/hello.lua
 diff --git a/doc/lua.1 b/doc/lua5.1.1
 rename from doc/lua.1
 rename to doc/lua5.1.1