From 219616964d5eb76be81922eeb3f940bdca864bf2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 19 Jan 2025 14:29:55 +0000 Subject: [PATCH 1/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 960c9e4e1214052dced22592dbec39345ceb00ba Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 20:09:52 +0000 Subject: [PATCH 2/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From aae369be0ed745f7947c30da0f7255088ca7affb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 19:59:27 +0000 Subject: [PATCH 3/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild From bb0fc38581783fed74ead453dc216d17fbf551e4 Mon Sep 17 00:00:00 2001 From: Tom spot Callaway Date: Mon, 16 Mar 2026 16:32:00 -0400 Subject: [PATCH 4/6] rebuild for lua 5.5 --- vis-0.9-lua-5.5.patch | 38 ++++++++++++++++++++++++++++++++++++++ vis.spec | 4 +++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 vis-0.9-lua-5.5.patch diff --git a/vis-0.9-lua-5.5.patch b/vis-0.9-lua-5.5.patch new file mode 100644 index 0000000..155a945 --- /dev/null +++ b/vis-0.9-lua-5.5.patch @@ -0,0 +1,38 @@ +diff -up vis-v0.9/vis-lua.c.lua55 vis-v0.9/vis-lua.c +--- vis-v0.9/vis-lua.c.lua55 2026-03-16 16:23:43.668922812 -0400 ++++ vis-v0.9/vis-lua.c 2026-03-16 16:25:41.892362312 -0400 +@@ -3208,7 +3208,11 @@ static void *alloc_lua(void *ud, void *p + * @function init + */ + void vis_lua_init(Vis *vis) { ++#if LUA_VERSION_NUM >= 505 ++ lua_State *L = lua_newstate(alloc_lua, vis, luaL_makeseed(0)); ++#else + lua_State *L = lua_newstate(alloc_lua, vis); ++#endif + if (!L) + return; + vis->lua = L; +diff -up vis-v0.9/vis-lua.h.lua55 vis-v0.9/vis-lua.h +--- vis-v0.9/vis-lua.h.lua55 2026-03-16 16:13:13.657846463 -0400 ++++ vis-v0.9/vis-lua.h 2026-03-16 16:15:26.159364325 -0400 +@@ -14,6 +14,19 @@ typedef void* lua_CFunction; + #include "vis.h" + #include "vis-subprocess.h" + ++#if LUA_VERSION_NUM >= 505 ++ ++#define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n)) ++#define lua_tounsignedx(L,i,is) ((lua_Unsigned)lua_tointegerx(L,i,is)) ++#define lua_tounsigned(L,i) lua_tounsignedx(L,(i),NULL) ++#define luaL_checkunsigned(L,a) ((lua_Unsigned)luaL_checkinteger(L,a)) ++#define luaL_optunsigned(L,a,d) \ ++ ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d))) ++#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) ++ ++#endif ++ ++ + /* add a directory to consider when loading lua files */ + bool vis_lua_path_add(Vis*, const char *path); + /* get semicolon separated list of paths to load lua files diff --git a/vis.spec b/vis.spec index 9768222..0bde034 100644 --- a/vis.spec +++ b/vis.spec @@ -13,6 +13,7 @@ Summary: A vim-like editor with structural regex from plan9 License: ISC AND MIT AND CC0-1.0 URL: https://git.sr.ht/~martanne/%{name} Source0: https://git.sr.ht/~martanne/%{name}/archive/v%{version}.tar.gz +Patch0: vis-0.9-lua-5.5.patch BuildRequires: make BuildRequires: gcc @@ -22,6 +23,7 @@ BuildRequires: pkgconfig(tre) BuildRequires: pkgconfig(lua) >= 5.2 BuildRequires: libacl-devel BuildRequires: pkgconfig(libselinux) +BuildRequires: lua-penlight Requires: lua-lpeg >= 0.12 Requires: xsel @@ -39,7 +41,7 @@ BuildArch: noarch %{summary} %prep -%autosetup -n vis-v%{version} +%autosetup -n vis-v%{version} -p1 %build %configure From 938db33432cccfda4da9922e09b3cf926dbbc1e0 Mon Sep 17 00:00:00 2001 From: Tom spot Callaway Date: Thu, 16 Apr 2026 22:39:44 -0400 Subject: [PATCH 5/6] rebuild From 1b33022339269973869fae02bf52777c2c1f5ee7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 08:33:39 +0000 Subject: [PATCH 6/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild