Skip to content

build: Use vendored Boost with Rtools and drop logging.cpp from CMakeLists.txt - #656

Merged
krlmlr merged 4 commits into
mainfrom
claude/build-housekeeping
Nov 29, 2026
Merged

krlmlr merged 4 commits into
mainfrom
claude/build-housekeeping

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

The Rtools branch of src/Makevars.win now adds -Ivendor to PKG_CPPFLAGS, as the rwinlib branch already does. The flag goes before the pkg-config output because pkg-config --cflags libpq returns the Rtools include directory, which also holds Rtools' own Boost. If -Ivendor came after it, the vendored copy in src/vendor/boost would still lose. I evaluated the file with GNU make and a stub pkg-config. The Rtools branch now gives -Ivendor -I<rtools>/include -D... and the rwinlib branch is unchanged at -I../windows/libpq/include -Ivendor -D.... I could not build on Windows from here.

src/CMakeLists.txt no longer lists logging.cpp, which was removed in #545. It also no longer lists RPostgres-init.c, which was removed in #647. Before this change, cmake -S src failed with "Cannot find source file: logging.cpp". It now configures. I could not run cynkrathis::use_cmakelists(): r-universe has no build for this R version, and GitHub was not reachable from the session. So I edited the file by hand. Its source list now matches src/*.c, src/*.cpp and src/*.h exactly, and the header and order are unchanged.

R CMD INSTALL on Linux still succeeds, and the package loads.

The cleanup item from the issue is left to #585. #635 also edits src/Makevars.win. This PR changes only one line there, so any merge conflict should be trivial.

Closes #637.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hr1rd5LPjEzyaTRpXAuS6g

…akeLists.txt`

The Rtools branch of `src/Makevars.win` now passes `-Ivendor`, like the rwinlib branch.
It comes before the pkg-config flags, so the vendored Boost wins over the copy Rtools ships in its include directory.

`src/CMakeLists.txt` no longer lists `logging.cpp`, which was removed in #545.
CMake now configures again.

Closes #637.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd5LPjEzyaTRpXAuS6g
@krlmlr krlmlr mentioned this pull request Nov 29, 2026
3 of 9 tasks
@krlmlr
krlmlr marked this pull request as ready for review November 29, 2026 12:08
@krlmlr
krlmlr merged commit f764ba1 into main Nov 29, 2026
2 checks passed
@krlmlr
krlmlr deleted the claude/build-housekeeping branch November 29, 2026 16:11
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.

Build housekeeping: vendored Boost on the Rtools path, stale src/CMakeLists.txt

2 participants