Skip to content

build(win): restore the 32-bit session install rule (backport) - #18564

Merged
gtritchie merged 1 commit into
rel-yellow-yarrowfrom
bugfix/backport-18515-x86-session-install
Aug 14, 2026
Merged

gtritchie merged 1 commit into
rel-yellow-yarrowfrom
bugfix/backport-18515-x86-session-install

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Backport of #18519 (9e0e8e998b) to Yellow Yarrow.

The multiarch Windows Desktop build installs the 32-bit session into <build>/src/cpp/session/x86, and the 64-bit build had an install rule that collected that directory into resources/app/bin/x86 at package time. That rule sat inside an "install winpty on windows" block and was deleted with it in 04db3f5 (#17814), so the shipped installer has resources/app/bin/x86 with only the x86 VC runtime DLLs -- no rsession.exe, and since #18070 no rsession.dll. With a 32-bit R, session-launcher.ts finds no x86/rsession.exe and falls back to the 64-bit session, which cannot load a 32-bit R.dll.

This restores the rule, under a comment naming its actual source, and keeps the file(MAKE_DIRECTORY) call: install(DIRECTORY) errors on a missing source directory, and non-multiarch builds never create it.

src/cpp/session/CMakeLists.txt is byte-identical to main after this change.

The NEWS entry goes in version/news/os/NEWS-2026.08.1-yellow-yarrow.md, since NEWS.md is not carried on this branch.

Relationship to #18562

999de99 (backport of #18516) added x86/rsession.dll to the Sign Executables list. That signs the binaries in the build tree; this PR is what copies them into the installer. Signing runs before the Package stage, so the installer picks up the signed copies.

Verification

  • cmake configure succeeds with the new block (macOS; the block is if(WIN32)-guarded and inert there).
  • Confirmed on this branch that the comment's claims still hold: package/win32/make-package.bat:243 calls make-install-win32.bat "%BUILD_DIR%\src\cpp\session", and the SessionWin32 sub-build sets RSTUDIO_INSTALL_BIN to x86 (cmake/globals.cmake:522), so the sub-build output lands in <build>/src/cpp/session/x86. That call precedes make-dist-packages.bat, so the directory is populated by CPack time.
  • Still needs a multiarch Windows package build (make-package.bat clean electron multiarch): confirm rsession.exe and rsession.dll are present in resources/app/bin/x86 after install, and that a session against a 32-bit R starts.

Addresses #18558

Backport of #18519 (9e0e8e9) to Yellow Yarrow. The multiarch Windows
Desktop build installs the 32-bit session into <build>/src/cpp/session/x86,
and the 64-bit build had an install rule that collected that directory into
resources/app/bin/x86 at package time. That rule sat inside an "install winpty
on windows" block and was deleted with it in 04db3f5 (#17814), so the
shipped installer has resources/app/bin/x86 with only the x86 VC runtime DLLs
-- no rsession.exe, and since #18070 no rsession.dll. With a 32-bit R,
session-launcher.ts finds no x86/rsession.exe and falls back to the 64-bit
session, which cannot load a 32-bit R.dll.

Restore the rule under a comment that names its actual source, and keep the
file(MAKE_DIRECTORY) call: install(DIRECTORY) errors on a missing source
directory, and non-multiarch builds never create it.

This is what makes the x86 binaries signed by 999de99 (#18562) actually
reach the installer.

The NEWS entry goes in version/news/os/NEWS-2026.08.1-yellow-yarrow.md, since
NEWS.md is not carried on this branch.

Addresses #18558
@gtritchie gtritchie added this to the Patch 2026.08.1 milestone Aug 14, 2026
@gtritchie
gtritchie merged commit 8d474bc into rel-yellow-yarrow Aug 14, 2026
21 of 22 checks passed
@gtritchie
gtritchie deleted the bugfix/backport-18515-x86-session-install branch August 14, 2026 19:10
@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

1 test(s) failed

###################- 99% pass rate

Passed Failed Skipped Flaky
1981 1 377 8
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 8 0
✅ desktop-linux 491 0 90 1
❌ desktop-macos 493 1 86 3
✅ desktop-windows 495 0 90 3
✅ server-linux 478 0 95 1
✅ setup 22 0 8 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit 3b3455c031ef81bd15b07dc1dd3ac1226d44ec57 - Run #615

@gtritchie gtritchie changed the title build(win): restore the 32-bit session install rule build(win): restore the 32-bit session install rule (backport) Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant