[mapguide-commits] r10276 - branches/4.0/MgDev/Bindings

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Nov 6 14:20:30 PST 2026


Author: jng
Date: 2026-11-06 14:20:29 -0800 (Fri, 06 Nov 2026)
New Revision: 10276

Modified:
   branches/4.0/MgDev/Bindings/setup_linux_native_libs.cmd
Log:
#2897: Don't bundle MgPortable linux runtime assets that are already been bundled as runtime assets for upstream dependency nuget packages.

Modified: branches/4.0/MgDev/Bindings/setup_linux_native_libs.cmd
===================================================================
--- branches/4.0/MgDev/Bindings/setup_linux_native_libs.cmd	2026-11-06 14:56:08 UTC (rev 10275)
+++ branches/4.0/MgDev/Bindings/setup_linux_native_libs.cmd	2026-11-06 22:20:29 UTC (rev 10276)
@@ -67,21 +67,20 @@
 if exist "%PORTABLE_DIR%\config\linux\Platform.ini.bak" del /Q "%PORTABLE_DIR%\config\linux\Platform.ini.bak"
 rem The libraries MgPortable is linked against have to travel as runtime assets, because the
 rem loader resolves them through the $ORIGIN RUNPATH of PortableUnmanagedApi.so as soon as the
-rem first call binds that library - before MgPortablePlatform::Initialize can honour FdoPath. The
-rem staging that an earlier layout left behind is cleared first; a plain *.so delete would miss
-rem the versioned names, and a plain for loop does not visit directories. The README that is part
-rem of the package stays.
+rem first call binds that library - before MgPortablePlatform::Initialize can honour FdoPath. Only
+rem the ones no other package carries are staged here, though: libMgFoundation, libMgMdfModel,
+rem libACE.so.6.2.6 and libxerces-c-3.1.so come with OSGeo.MapGuide.Foundation, libMgPlatformBase
+rem and libMgMdfParser with OSGeo.MapGuide.PlatformBase, and libMgGeometry with
+rem OSGeo.MapGuide.Geometry - all three are dependencies of this package, and NuGet stages every
+rem package's runtime assets into the same output directory, which is the one the RUNPATH resolves
+rem them from. Staging them again would ship each of them twice and let the copies drift apart.
+rem The staging that an earlier layout left behind is cleared first; a plain *.so delete would
+rem miss the versioned names, and a plain for loop does not visit directories. The README that is
+rem part of the package stays.
 for %%F in ("%PORTABLE_NATIVE%\*") do if /I not "%%~nxF"=="readme-linux-x64.txt" del /F /Q "%%~fF"
 for /d %%F in ("%PORTABLE_NATIVE%\*") do rd /S /Q "%%~fF"
-copy /Y /L "%MG_LINUX64%\lib64\libACE.so.6.2.6"             "%PORTABLE_NATIVE%"
-copy /Y /L "%MG_LINUX64%\lib64\libxerces-c-3.1.so"          "%PORTABLE_NATIVE%"
 copy /Y /L "%MG_LINUX64%\lib64\libPortableUnmanagedApi.so"  "%PORTABLE_NATIVE%"
 copy /Y /L "%MG_LINUX64%\lib64\libMgPortable-%SOVER%.so"    "%PORTABLE_NATIVE%"
-copy /Y /L "%MG_LINUX64%\lib64\libMgFoundation-%SOVER%.so"  "%PORTABLE_NATIVE%"
-copy /Y /L "%MG_LINUX64%\lib64\libMgGeometry-%SOVER%.so"    "%PORTABLE_NATIVE%"
-copy /Y /L "%MG_LINUX64%\lib64\libMgPlatformBase-%SOVER%.so" "%PORTABLE_NATIVE%"
-copy /Y /L "%MG_LINUX64%\lib64\libMgMdfModel-%SOVER%.so"    "%PORTABLE_NATIVE%"
-copy /Y /L "%MG_LINUX64%\lib64\libMgMdfParser-%SOVER%.so"   "%PORTABLE_NATIVE%"
 copy /Y /L "%MG_LINUX64%\lib64\libMgRenderers-%SOVER%.so"   "%PORTABLE_NATIVE%"
 copy /Y /L "%MG_LINUX64%\lib64\libMgStylization-%SOVER%.so" "%PORTABLE_NATIVE%"
 copy /Y /L "%MG_LINUX64%\lib64\libMgGwsCommon-%SOVER%.so"   "%PORTABLE_NATIVE%"



More information about the mapguide-commits mailing list