This is an automated email from the ASF dual-hosted git repository.

leginee pushed a commit to branch bazel-migration
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit bc3acd2977c4d3645d4ed3da0251dd709403f6f3
Author: Peter <[email protected]>
AuthorDate: Thu Nov 5 06:02:45 2026 +0100

    docs: the VC90 runtime layer is gone
    
    Shared context, STYLEGUIDE and build.md describe the build without VC90
    staging or CRT manifests; module readmes mark the VS2008-era manifest
    reasoning as historical.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 .agent/common/10-toolchain.md         |  5 ++---
 .agent/common/20-build-conventions.md | 16 ++++++++--------
 STYLEGUIDE.md                         |  7 ++++---
 build/build.md                        | 11 +++++++----
 main/autodoc/readme.md                |  8 ++++----
 main/bean/readme.md                   |  3 ++-
 main/bridges/readme.md                |  2 +-
 main/connectivity/readme.md           |  3 ++-
 main/staging/readme.md                |  4 +++-
 main/test/readme.md                   | 11 ++++++-----
 main/unodevtools/readme.md            |  6 +++++-
 11 files changed, 44 insertions(+), 32 deletions(-)

diff --git a/.agent/common/10-toolchain.md b/.agent/common/10-toolchain.md
index 10c4754117..ce29bd6883 100644
--- a/.agent/common/10-toolchain.md
+++ b/.agent/common/10-toolchain.md
@@ -31,9 +31,8 @@
   configs and the `winxp` constraint value.  32-bit is gone with them.  Two
   things did NOT change: the SOURCE stays C++03-compatible, because AOO 4.1.x
   takes security backports and still builds with VS2008; and the VC90 runtime
-  is still STAGED (main/external/msvcp90: msvcr90/msvcp90 DLLs, manifests
-  declaring Microsoft.VC90.CRT on soffice.exe, tool exes and a few DLLs) even
-  though nothing links against it any more — a separate cleanup.
+  layer (msvcr90/msvcp90 staging, Microsoft.VC90.CRT manifests on soffice.exe,
+  tool exes and a few DLLs) was removed 2026-11-05 — nothing imported it.
 - **VS2008 / SDK v7.0 are no longer needed on the machine** (2026-11-05):
   vs_config_repo reads neither VS_PATH nor SDK_PATH.  scp2's `cl /EP` uses the
   VS2019 cl.exe, and every RC.Exe genrule (msvcp90 ×2, bridges ×2, desktop,
diff --git a/.agent/common/20-build-conventions.md 
b/.agent/common/20-build-conventions.md
index 00d9bca003..0a8ff55a30 100644
--- a/.agent/common/20-build-conventions.md
+++ b/.agent/common/20-build-conventions.md
@@ -49,14 +49,14 @@
   a new EXE needs no manifest for the CRT.  The VC9-era lesson still holds for
   anything side-by-side: a `/MANIFEST:NO` EXE whose import needs an activation
   context dies before main() with a "System Error" box, and nothing in the 
build
-  notices -- 15 launchers sat broken that way until 2026-10-08.  REMAINING
-  CLEANUP: ~25 rules still stage the VC90 DLLs or embed
-  `//main/external/msvcp90:vc90_app_manifest_res` unconditionally (idl/rsc/
-  merge_rdb/java/localedata pipelines, gtest_test, registry, cpputools, pyuno,
-  staging); on VS2019 binaries these are dead weight, not a requirement.
-- IDL pipeline: tools link /MD (dynamic CRT); stage msvcr90/msvcp90 DLLs +
-  external .manifest files alongside EXEs (no mt.exe embedding); use
-  ctx.actions.symlink (pure Bazel, no shell) for staging
+  notices -- 15 launchers sat broken that way until 2026-10-08.  The VC90
+  layer itself was REMOVED 2026-11-05: //main/external/msvcp90 has no
+  BUILD file any more, no rule stages msvcr90/msvcp90 or a CRT manifest, and
+  the only application manifest left is soffice.exe's (Common-Controls 6 =
+  visual styles; keep it).  A scan of a staged VS2019 tree (291 binaries)
+  found no import of a VC90 DLL before the removal.
+- IDL pipeline: tools link /MD (dynamic CRT); stage the tool exe + its DLLs
+  into one flat dir; use ctx.actions.symlink (pure Bazel, no shell) for staging
 - cppumaker output dir: prefix -O with "./" so osl's convertToFileUrl uses
   getAbsoluteFileURL (relative-to-workdir) instead of failing on relative paths
 - XCU pipeline: LOCALIZED XCU files (those containing <value xml:lang="...">) 
must be pre-processed
diff --git a/STYLEGUIDE.md b/STYLEGUIDE.md
index 6689a876a3..3b7c1928e3 100644
--- a/STYLEGUIDE.md
+++ b/STYLEGUIDE.md
@@ -181,9 +181,10 @@ Conventions, by example:
 
 - Prefer `ctx.actions.run` with explicit tool inputs over `run_shell`; use
   `ctx.actions.symlink` (pure Bazel) for staging, not a shell `cp`.
-- Tools that link `/MD` need their CRT DLLs + **external** `.manifest` staged
-  beside the EXE (the `svidl_bundle` pattern — replicated in `gtest_test.bzl`;
-  miss it and you get R6034). See the test-infra and IDL milestones.
+- Tools that link `/MD` need their runtime DLLs (sal3.dll, …) staged beside
+  the EXE (the `svidl_bundle` pattern — replicated in `gtest_test.bzl`). The C
+  runtime is not staged and needs no manifest: the VS2019 runtime loads by
+  ordinary DLL search. See the test-infra and IDL milestones.
 - A rule that emits headers must advertise the include dir via an `includes`
   provider/attr so the wrapper `cc_library` can surface it.
 - Keep the rule's migration rationale in its module `readme.md` and a one-line
diff --git a/build/build.md b/build/build.md
index 6c9984eee4..3882b07b61 100644
--- a/build/build.md
+++ b/build/build.md
@@ -45,9 +45,11 @@ output was checked byte-identical when switched (all 94 
`.par` files, every
 `.res`). One opt-in exception remains: `winaccessibility`'s MIDL step, which 
only
 builds with `--//build:atl_available=True` (§5), still calls SDK v7.0 
`midl.exe`.
 
-The VC90 runtime itself is still in the tree — staged `msvcr90`/`msvcp90` DLLs
-and manifests declaring `Microsoft.VC90.CRT` — but those files come from
-`main/external/msvcp90`, not from a VS2008 install.
+The VC90 runtime is gone from the Bazel build too: nothing stages
+`msvcr90`/`msvcp90` or declares `Microsoft.VC90.CRT` any more. The binaries
+need the VS2019 runtime (`vcruntime140`, `msvcp140`, the UCRT) from the VC++
+redistributable; it is not staged. `soffice.exe` keeps one application
+manifest, for Common-Controls 6 (visual styles).
 
 | Tool | Version / Notes |
 | --- | --- |
@@ -353,7 +355,8 @@ containers passed between DLLs will read garbage.
 
 > **No private symbols?** [main/staging/readme.md](../main/staging/readme.md)
 > documents a CDB technique for decoding a thrown C++ exception class and
-> capturing its message live (`bp MSVCR90D!_CxxThrowException ...`) — useful 
for
+> capturing its message live (`bp MSVCR90D!_CxxThrowException ...`; with the
+> VS2019 debug runtime that is `VCRUNTIME140D!_CxxThrowException`) — useful for
 > the silent-exit startup failures described in [§7](#7-known-issues).
 
 ---
diff --git a/main/autodoc/readme.md b/main/autodoc/readme.md
index f4748539e3..6f723d5813 100644
--- a/main/autodoc/readme.md
+++ b/main/autodoc/readme.md
@@ -58,10 +58,10 @@ startup are sound.
 - **Six `.cxx` are NOT in the build** and are globbed out: 
`source/cosv/unittest/**`,
   `source/udm/unittest/**`, `source/cosv/service/commandline.cxx` (the built 
one
   is `comdline.cxx`), `source/display/idl/hfi_linklist.cxx`.
-- **VC90-CRT manifest embedded** at RT_MANIFEST id 1 (same as
-  uno-skeletonmaker/regcompare): autodoc is both a build tool (odk gendocu runs
-  it) and an SDK `bin/` tool (odk pack/copying ships it), so it carries its own
-  activation context rather than relying on a staged external `.manifest`.
+- **No manifest.**  Until 2026-11-05 it embedded the VC90-CRT manifest at
+  RT_MANIFEST id 1 (same as uno-skeletonmaker/regcompare), because it is both a
+  build tool (odk gendocu runs it) and an SDK `bin/` tool (odk pack/copying
+  ships it).  The VS2019 runtime needs no activation context.
 
 ## Next
 
diff --git a/main/bean/readme.md b/main/bean/readme.md
index ca207ab148..4da410fd6f 100644
--- a/main/bean/readme.md
+++ b/main/bean/readme.md
@@ -40,7 +40,8 @@ identical except dmake's `Solar-Version:` build stamp, which 
is not carried.
 - **DEF file** (`util/officebean.def`): exports the four `Java_*` names
   undecorated.  `JNICALL` is `__stdcall` on Win32, so without it they would
   leave as `_Java_…@N` — same trick as `//main/jurt` `jpipe.def`.
-- **Embedded manifest (RT_MANIFEST id 2) is required.**  The DLL is loaded by
+- **Embedded manifest (RT_MANIFEST id 2) WAS required** under VS2008 — removed
+  2026-11-05 with the VC90 runtime, which the VS2019 build no longer uses.  
The DLL is loaded by
   the *embedding application's* JVM — a stock `java.exe` with no VC90
   activation context — not by a JVM inside `soffice.exe`.  Without it
   `MSVCR90.dll` cannot be resolved and `System.loadLibrary` reports only
diff --git a/main/bridges/readme.md b/main/bridges/readme.md
index c9e5f502fc..9df932b3d2 100644
--- a/main/bridges/readme.md
+++ b/main/bridges/readme.md
@@ -94,7 +94,7 @@ calls `System.loadLibrary("java_uno")`), so there is no 
build-time cycle.
   `osl::Module("thrower"/"starter")`, so the cc_binary target names MUST be the
   bare `thrower`/`starter` (the dll basenames it hard-codes).  Run via the 
generic
   `staged_run_test` (the non-gtest form of `gtest_test`'s staging rule): 
inter.exe,
-  both dlls, sal3/cppu3 and the VC90 CRT are staged into one dir; the test 
passes
+  both dlls and sal3/cppu3 are staged into one dir; the test passes
   iff the exe exits 0.  No UNO connection, no Java — the only test here that 
runs
   without a qadevOOo / running-soffice fixture.
 - **`test_any_jni` is RED, and it is the bridge that is wrong — not the test.**
diff --git a/main/connectivity/readme.md b/main/connectivity/readme.md
index abe88796da..e8467b0986 100644
--- a/main/connectivity/readme.md
+++ b/main/connectivity/readme.md
@@ -190,7 +190,8 @@ files as textual fragments (declared via `_parse_generated` 
cc_library).
 - `hsqldb.dll` carries 27 undecorated `Java_*` exports in its DEF alongside 
the two
   `component_*` ones (JNICALL is `__stdcall` on Win32, so without the DEF they 
would
   be `_Java_…@N` and the JVM could not find them) — same trick as `jurt`'s
-  `jpipe.def`.  It does NOT need the RT_MANIFEST id 2 embedded manifest that
+  `jpipe.def`.  (Historical, VS2008 build — no DLL embeds a manifest since
+  2026-11-05.)  It did NOT need the RT_MANIFEST id 2 embedded manifest that
   `jpipe`/`jpipx` need: those are loaded by a stock `java.exe` with no VC90
   activation context, whereas this JVM runs in-process inside `soffice.exe`
 - `hsqldb.dll` takes no DLLPOSTFIX (version.mk sets `HSQLDB_TARGET=hsqldb` 
bare)
diff --git a/main/staging/readme.md b/main/staging/readme.md
index 0bd6c68818..e4ac7a7ea1 100644
--- a/main/staging/readme.md
+++ b/main/staging/readme.md
@@ -40,7 +40,7 @@ bazel-bin\main\staging\install\program\soffice.exe
 
 - `collect_files_aspect.bzl` — aspect that collects transitive `DefaultInfo` + 
PDB files; `collect_outputs` rule aggregates them; `flat_install` copies to 
`program/`; `res_stage` copies `.res` files to `program/resource/` with 
locale-renamed filenames; `tree_install` copies a subtree preserving relative 
paths.
 - ATL-guarded targets (`embedserv`, `winaccessibility`) included via 
`select({"//build:has_atl": [...], "//conditions:default": []})`
-- Debug CRT DLLs (`MSVCR90D`, `MSVCP90D`) and private-assembly manifest staged 
only for `--compilation_mode=dbg` builds via `select({"//build:dbg_build": 
[...]})`
+- No C runtime is staged, release or debug: the VS2019 runtime loads from 
System32 (VC++ redistributable; the debug one ships with VS2019).  
`soffice.exe` gets one application manifest, 
`//main/desktop:util/amd64/soffice.exe.manifest`, for Common-Controls 6 (visual 
styles).  The VC90 CRT and debug-CRT staging that used to be here was removed 
2026-11-05.
 
 ## Known gaps (deferred)
 
@@ -97,6 +97,8 @@ MSVC `ThrowInfo` (3rd parameter of the `e06d7363` exception 
record):
 `r $t0=poi(<throwinfo>+0c); r $t1=poi($t0+4); r $t2=poi($t1+4); da $t2+8` →
 `.?AVCannotActivateFactoryException@loader@…`. Then capture the message live 
with
 `bp MSVCR90D!_CxxThrowException "du poi(poi(esp+4))+8 L80; gc"` — the message 
names the exact DLL.
+(That was the 32-bit VC9 build.  On x64 with the VS2019 debug runtime the 
function lives in
+`VCRUNTIME140D` and the first argument is in `rcx`, not on the stack.)
 
 ## Resource files (.res)
 
diff --git a/main/test/readme.md b/main/test/readme.md
index e69242d1ec..f94f9fc6a6 100644
--- a/main/test/readme.md
+++ b/main/test/readme.md
@@ -28,10 +28,9 @@ holdouts).  This brings the test layer onto Bazel so suites 
run under
 | Piece | Path | Role |
 | ----- | ---- | ---- |
 | `@gtest` | `ext_libraries/modules/gtest/1.7.0/` | GoogleTest 1.7.0 bzlmod 
wrap (zip cached in `ext_sources`). Built with `/Zc:wchar_t-` so its `wchar_t` 
ABI matches `sal_Unicode` test code. |
-| `gtest_test` rule | 
[//build/rules:gtest_test.bzl](../../build/rules/gtest_test.bzl) | Reusable 
runnable-test rule. The `/MD` toolchain embeds no manifest, so a bare `cc_test` 
exe can't launch (DLLs land in runfiles subdirs; loose CRT → R6034). This 
stages the exe + runtime DLLs + VC90 CRT + an external `<exe>.manifest` into 
ONE flat dir (the test analog of `//main/idl:svidl_bundle`). Pass `data_files` 
for fixture inputs the test opens by relative path — see "working directory" 
below. |
+| `gtest_test` rule | 
[//build/rules:gtest_test.bzl](../../build/rules/gtest_test.bzl) | Reusable 
runnable-test rule. A bare `cc_test` exe can't launch (its DLLs land in 
runfiles subdirs). This stages the exe + runtime DLLs into ONE flat dir (the 
test analog of `//main/idl:svidl_bundle`). Pass `data_files` for fixture inputs 
the test opens by relative path — see "working directory" below. |
 | `sal_process_init` | 
[//build/testsupport](../../build/testsupport/BUILD.bazel) | Migration-authored 
TU that runs `sal_detail_initialize()` from a dynamic initialiser, for suites 
whose own `main()` skips the `SAL_IMPLEMENT_MAIN` boilerplate (⇒ no 
`WSAStartup`). |
 | `libtest` | [//main/test:test](BUILD.bazel) | `test.dll` — 
`test::OfficeConnection` + arg/url helpers, for *subsequent* (UNO) tests that 
bootstrap a running soffice over URP. Exercised by `:test_qa_officeconnection`; 
its Java twin is `:test_jar` (see "The JAVA side of the same fixture" below). |
-| `vc90_app_manifest_res` | 
[//main/external/msvcp90](../external/msvcp90/BUILD.bazel) | The VC90-CRT 
manifest compiled to a `.res` and linked into every `gtest_test` exe at 
`RT_MANIFEST` id 1. See "the CRT activation context" below. |
 | `sal_qa_test` macro | [//main/sal:sal_qa.bzl](../sal/sal_qa.bzl) | Thin 
`gtest_test` wrapper for the sal/qa suites (common copts/deps + per-dir 
`*_Const.h` include). |
 
 ## Two test categories
@@ -230,7 +229,9 @@ holdouts).  This brings the test layer onto Bazel so suites 
run under
     the process dies with `0xC0000142` (`STATUS_DLL_INIT_FAILED`) before gtest
     prints a single line, so `test.log` is **empty**.
 
-- **The CRT activation context must be embedded, not external.** The staged
+- **(Historical, VS2008 build — the VC90 runtime and every CRT manifest were
+  removed 2026-11-05; the VS2019 runtime needs no activation context.)**
+  **The CRT activation context must be embedded, not external.** The staged
   `<exe>.manifest` only reliably covers DLLs bound at process start. A test
   that `osl_loadModule()`s a UNO DLL *later* needs the context still in force,
   so `gtest_test` links `//main/external/msvcp90:vc90_app_manifest_res` into
@@ -390,8 +391,8 @@ Each of these was invisible until a foreign process loaded 
our DLLs:
    nothing visible. Any external Java program talking to a running office over 
a
    pipe needs them; upstream ships both in the URE lib dir. Now in
    [//main/staging](../staging/BUILD.bazel).
-2. **A /MD DLL loaded by a process we do not build needs its OWN embedded
-   manifest.** This tree links `/MANIFEST:NO` throughout, which is invisible
+2. **A /MD DLL loaded by a process we do not build needed its OWN embedded
+   manifest** (VS2008 build; removed with the VC90 runtime 2026-11-05). This 
tree links `/MANIFEST:NO` throughout, which is invisible
    inside `soffice.exe` (its manifest covers the whole process) and fatal for a
    DLL a stock `java.exe` loads: nothing supplies an activation context, the
    `MSVCR90.dll` import cannot be resolved, and `System.loadLibrary` reports 
the
diff --git a/main/unodevtools/readme.md b/main/unodevtools/readme.md
index 42d47153d3..078ba0b642 100644
--- a/main/unodevtools/readme.md
+++ b/main/unodevtools/readme.md
@@ -42,7 +42,11 @@ on — Java is only one of the *output* languages of the 
skeletons it emits, whi
 is why `commonjava` is linked. That is also why the module came out of a bucket
 that is otherwise blocked and built on the first try.
 
-## The manifest has to be embedded, not staged beside it
+## The manifest had to be embedded, not staged beside it
+
+> Historical: this applied to the VS2008 build.  The VC90 runtime layer was
+> removed 2026-11-05; the VS2019 runtime needs no activation context, so
+> uno-skeletonmaker links no manifest at all now.
 
 Every other `/MD` tool this build produces — cppumaker, javamaker, regcomp, rsc
 — is *build-internal*: some rule runs it, and that rule stages the VC90 CRT 
DLLs

Reply via email to