From 12b86e3ccf24d6b50cbc1c9947fc7c8b8082a709 Mon Sep 17 00:00:00 2001 From: Olexa Bilaniuk Date: Thu, 29 Sep 2022 19:16:12 -0400 Subject: [PATCH] Generate Lua patch series with git format-patch. --- scripts/import-lua-patches.sh | 15 +++++++ .../0001-Enable-renaming-main-functions.patch | 7 ++-- ...-history-and-line-completion-support.patch | 40 +++++++++---------- .../0003-Add-static-searcher-mechanism.patch | 7 ++-- ...-Implement-static-searcher-mechanism.patch | 6 +++ 5 files changed, 49 insertions(+), 26 deletions(-) create mode 100755 scripts/import-lua-patches.sh diff --git a/scripts/import-lua-patches.sh b/scripts/import-lua-patches.sh new file mode 100755 index 0000000..8db05c7 --- /dev/null +++ b/scripts/import-lua-patches.sh @@ -0,0 +1,15 @@ +#/bin/sh +LUA_FORK="${1:-${LUA_FORK:?"Lua fork not specified!"}}" +LUA_STARTPATCH="${LUA_STARTPATCH:-":/Enable renaming main functions"}" +LUA_STARTPATCH="$(git -C "$LUA_FORK" rev-parse "$LUA_STARTPATCH")" +LUA_SUBPROJECT="$(pwd)/subprojects/packagefiles/lua" +rm -fv "$LUA_SUBPROJECT/patches"/????-*.patch +touch "$LUA_SUBPROJECT/patches/9999-Empty.patch" +git -C "$LUA_FORK" format-patch \ + -o "$LUA_SUBPROJECT/patches" \ + --filename-max-length=64 \ + --zero-commit -N \ + --no-signature \ + --no-stat \ + --binary \ + "${LUA_STARTPATCH}^.." diff --git a/subprojects/packagefiles/lua/patches/0001-Enable-renaming-main-functions.patch b/subprojects/packagefiles/lua/patches/0001-Enable-renaming-main-functions.patch index 7de1253..2e511fb 100644 --- a/subprojects/packagefiles/lua/patches/0001-Enable-renaming-main-functions.patch +++ b/subprojects/packagefiles/lua/patches/0001-Enable-renaming-main-functions.patch @@ -1,7 +1,8 @@ -Author: Olexa Bilaniuk -Date: Wed Feb 23 13:54:01 2022 -0500 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Olexa Bilaniuk +Date: Wed, 23 Feb 2022 13:54:01 -0500 +Subject: [PATCH] Enable renaming main functions - Enable renaming main function of Lua interpreter and compiler diff --git a/lua.c b/lua.c index 7f7dc2b2..28abd014 100644 diff --git a/subprojects/packagefiles/lua/patches/0002-Advanced-history-and-line-completion-support.patch b/subprojects/packagefiles/lua/patches/0002-Advanced-history-and-line-completion-support.patch index e68d4db..e5061c2 100644 --- a/subprojects/packagefiles/lua/patches/0002-Advanced-history-and-line-completion-support.patch +++ b/subprojects/packagefiles/lua/patches/0002-Advanced-history-and-line-completion-support.patch @@ -1,24 +1,24 @@ -Author: Olexa Bilaniuk -Date: Wed Jun 29 15:52:10 2022 -0400 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Olexa Bilaniuk +Date: Wed, 29 Jun 2022 15:52:10 -0400 +Subject: [PATCH] Advanced history and line completion support. - Advanced history and line completion support. - - Adds Bash-like environment and history support, controllable through - environment variables - - LUA_HISTORY - - LUA_HISTSIZE - - LUA_HISTFILESIZE - - LUA_HISTCONTROL - - Line-editing libraries supported: - - - readline - - linenoise - - The supported feature-set varies between the two. - - Co-authored-by: Mike Pall - Co-authored-by: Sean Bolton +Adds Bash-like environment and history support, controllable through +environment variables + - LUA_HISTORY + - LUA_HISTSIZE + - LUA_HISTFILESIZE + - LUA_HISTCONTROL + +Line-editing libraries supported: + + - readline + - linenoise + +The supported feature-set varies between the two. + +Co-authored-by: Mike Pall +Co-authored-by: Sean Bolton diff --git a/lua.c b/lua.c index 28abd014..7f93255a 100644 diff --git a/subprojects/packagefiles/lua/patches/0003-Add-static-searcher-mechanism.patch b/subprojects/packagefiles/lua/patches/0003-Add-static-searcher-mechanism.patch index cde0249..2aefd90 100644 --- a/subprojects/packagefiles/lua/patches/0003-Add-static-searcher-mechanism.patch +++ b/subprojects/packagefiles/lua/patches/0003-Add-static-searcher-mechanism.patch @@ -1,7 +1,8 @@ -Author: Olexa Bilaniuk -Date: Sun Oct 31 06:28:24 2021 -0400 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Olexa Bilaniuk +Date: Sun, 31 Oct 2021 06:28:24 -0400 +Subject: [PATCH] Add static searcher mechanism - Add static module search mechanism diff --git a/loadlib.c b/loadlib.c index d792dffa..b24cb47f 100644 diff --git a/subprojects/packagefiles/lua/patches/0004-Implement-static-searcher-mechanism.patch b/subprojects/packagefiles/lua/patches/0004-Implement-static-searcher-mechanism.patch index 83e171d..23b99de 100644 --- a/subprojects/packagefiles/lua/patches/0004-Implement-static-searcher-mechanism.patch +++ b/subprojects/packagefiles/lua/patches/0004-Implement-static-searcher-mechanism.patch @@ -1,3 +1,9 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Olexa Bilaniuk +Date: Sun, 31 Oct 2021 06:28:24 -0400 +Subject: [PATCH] Implement static searcher mechanism + + diff --git a/loadlib.c b/loadlib.c index b24cb47f..b5edf45f 100644 --- a/loadlib.c