Integrate 0.9.3 SLP/IP, SQLite identities and complete token fix; build release 0.9.3-1

This commit is contained in:
2026-11-30 06:07:09 +00:00
parent 679dada6ec
commit b9fe2e61d2
67 changed files with 1797 additions and 73 deletions

View File

@@ -78,3 +78,18 @@ sed -i 's@install(FILES prn DESTINATION ${MARS_NWE_INSTALL_FULL_LIBEXECDIR})@ins
# Bindery and IPX use 32-bit IDs, including on LP64 hosts.
python3 "$here/upstream-adapter/fix-fixed-width.py" "$root"
# SQLite-backed virtual identities are resolved in MARS binaries only.
python3 "$here/upstream-adapter/add-identity.py" "$root"
cp "$here/native/identity.c" "$here/native/identity.h" "$here/native/identity_wrap.c" "$root/src/"
cat >> "$root/src/CMakeLists.txt" <<'CMAKE'
pkg_check_modules(MARS_SQLITE REQUIRED IMPORTED_TARGET sqlite3>=3.31)
add_library(mars_identity STATIC identity.c identity_wrap.c)
target_compile_definitions(mars_identity PRIVATE MARS_WRAPPED)
target_link_libraries(mars_identity PUBLIC PkgConfig::MARS_SQLITE)
foreach(t nwserv nwconn ncpserv nwclient nwbind nwrouted dbmtool ftrustee nwqconn)
if(TARGET ${t})
target_link_libraries(${t} mars_identity -Wl,--wrap=getpwnam -Wl,--wrap=getpwuid -Wl,--wrap=getpwnam_r -Wl,--wrap=getpwuid_r -Wl,--wrap=getgrnam -Wl,--wrap=getgrgid -Wl,--wrap=getgrnam_r -Wl,--wrap=getgrgid_r -Wl,--wrap=initgroups -Wl,--wrap=getgrouplist)
endif()
endforeach()
CMAKE