Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lua-luaposix for openSUSE:Factory checked in at 2025-11-05 16:18:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lua-luaposix (Old) and /work/SRC/openSUSE:Factory/.lua-luaposix.new.1980 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lua-luaposix" Wed Nov 5 16:18:17 2025 rev:12 rq:1315171 version:35.1 Changes: -------- --- /work/SRC/openSUSE:Factory/lua-luaposix/lua-luaposix.changes 2023-01-25 17:50:38.978456832 +0100 +++ /work/SRC/openSUSE:Factory/.lua-luaposix.new.1980/lua-luaposix.changes 2025-11-05 16:20:54.620650301 +0100 @@ -1,0 +2,12 @@ +Fri Oct 24 14:49:27 UTC 2025 - Matej Cepl <[email protected]> + +- Switch off building lua51 build of the package. + +------------------------------------------------------------------- +Mon Oct 13 10:55:30 UTC 2025 - Matej Cepl <[email protected]> + +- Make the package buildable with LuaJIT. +- Add setgroups.patch to avoid security issue with not calling + setgroups() before setuid() (gh#luaposix/luaposix!388). + +------------------------------------------------------------------- New: ---- _scmsync.obsinfo build.specials.obscpio setgroups.patch ----------(New B)---------- New:- Make the package buildable with LuaJIT. - Add setgroups.patch to avoid security issue with not calling setgroups() before setuid() (gh#luaposix/luaposix!388). ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lua-luaposix.spec ++++++ --- /var/tmp/diff_new_pack.Z1pU9G/_old 2025-11-05 16:20:55.500687294 +0100 +++ /var/tmp/diff_new_pack.Z1pU9G/_new 2025-11-05 16:20:55.500687294 +0100 @@ -31,9 +31,13 @@ Group: Development/Libraries/Other URL: https://github.com/luaposix/luaposix Source0: https://github.com/luaposix/luaposix/archive/v%{version}/%{mod_name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM setgroups.patch gh#luaposix/luaposix!388 [email protected] +# use setgroups before setuid +Patch0: setgroups.patch BuildRequires: lua-macros BuildRequires: %{flavor}-devel BuildRequires: ncurses-devel +BuildRequires: pkgconf BuildRequires: perl Requires: %{flavor} %lua_provides @@ -51,12 +55,12 @@ This package contains the documentation for %{flavor}-luaposix. %prep -%autosetup -n luaposix-%{version} +%autosetup -p1 -n luaposix-%{version} %build # avoid setting USER tag export USER="" -build-aux/luke PREFIX=%{_prefix} all +build-aux/luke CFLAGS="$(pkgconf --cflags --libs lua)" PREFIX=%{_prefix} all %install build-aux/luke PREFIX=%{buildroot}%{_prefix} INST_LIBDIR=%{buildroot}%{lua_archdir} \ @@ -69,7 +73,7 @@ %{lua_noarchdir}/posix # Only produce docs during one flavor to avoid duplicate binary. -%ifluadefault +%if "%{lua_version_nodots}" == "%{lua_version_default_nodots}" %files -n %{mod_name}-doc %doc doc/* %endif ++++++ _multibuild ++++++ --- /var/tmp/diff_new_pack.Z1pU9G/_old 2025-11-05 16:20:55.544689144 +0100 +++ /var/tmp/diff_new_pack.Z1pU9G/_new 2025-11-05 16:20:55.548689312 +0100 @@ -1,5 +1,5 @@ <multibuild> -<package>lua51</package> +<package>luajit</package> <package>lua53</package> <package>lua54</package> </multibuild> ++++++ _scmsync.obsinfo ++++++ mtime: 1761317367 commit: 46c1baa9bc2ddab3430bbb6be1b04e26095813b85d1912f65c9466f55dce8a20 url: https://src.opensuse.org/lua/lua-luaposix.git revision: 46c1baa9bc2ddab3430bbb6be1b04e26095813b85d1912f65c9466f55dce8a20 projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2025-10-24 16:49:38.000000000 +0200 @@ -0,0 +1,6 @@ +.osc +*.obscpio +*.osc +_build.* +.pbuild +lua*-luaposix-*-build/ ++++++ setgroups.patch ++++++ --- ext/posix/unistd.c | 8 ++++++++ 1 file changed, 8 insertions(+) Index: luaposix-35.1/ext/posix/unistd.c =================================================================== --- luaposix-35.1.orig/ext/posix/unistd.c 2021-09-10 02:42:44.000000000 +0200 +++ luaposix-35.1/ext/posix/unistd.c 2025-10-13 12:57:47.759515415 +0200 @@ -1063,10 +1063,18 @@ case 'U': return pushresult(L, seteuid(mygetuid(L, 2)), NULL); case 'u': +#if HAVE_SETGROUPS + if (setgroups(0, NULL) == -1) + return pusherror(L, "setgroups"); +#endif return pushresult(L, setuid(mygetuid(L, 2)), NULL); case 'G': return pushresult(L, setegid(mygetgid(L, 2)), NULL); case 'g': +#if HAVE_SETGROUPS + if (setgroups(0, NULL) == -1) + return pusherror(L, "setgroups"); +#endif return pushresult(L, setgid(mygetgid(L, 2)), NULL); case 's': return pushresult(L, setsid(), NULL);
