Integrate 0.9.3 SLP/IP, SQLite identities and complete token fix; build release 0.9.3-1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user