Repository navigation
Description
Two small build inconsistencies on main, neither of which breaks a build today.
Rtools branch of src/Makevars.win does not use the vendored Boost
The rwinlib branch passes -Ivendor, the Rtools branch (added in #486) does not:
Lines 6 to 11 in 41cd4be
| ifneq ($(findstring ldap32,$(PKG_LIBS)),) | |
| $(info using $(PKG_CONFIG_NAME) from Rtools) | |
| PKG_CPPFLAGS := $(shell $(PKG_CONFIG) --cflags $(PKG_CONFIG_NAME)) $(EXTRA_CFLAGS) | |
| else | |
| RWINLIB = ../windows/libpq | |
| PKG_CPPFLAGS = -I$(RWINLIB)/include -Ivendor $(EXTRA_CFLAGS) |
The sources include Boost headers (e.g. <boost/shared_ptr.hpp> in src/DbColumn.h), and DESCRIPTION has no LinkingTo: BH, so the vendored copy in src/vendor/boost (1.81) is meant to be the only source. On the Rtools path it is not on the include path at all; the build succeeds only because Rtools ships its own Boost. CRAN's r-release-windows-x86_64 install log for 1.4.10 shows "using libpq from Rtools" and compile lines with -ID:/rtools45/x86_64-w64-mingw32.static.posix/include and no -Ivendor. So the Windows binaries are built against whatever Boost Rtools carries, unlike every other platform, and a toolchain without Boost would fail to compile.
src/CMakeLists.txt lists a deleted file
Line 46 in 41cd4be
| logging.cpp |
logging.cpp was removed with plogr in #545 (991d198), but the file generated by cynkrathis::use_cmakelists() was not regenerated. The file is only used for IDE support (it is in .Rbuildignore), where CMake would stop at the missing source.
Not included
The ^cleanup$ line in .Rbuildignore without a cleanup script is already addressed by #585, which adds the script and drops that line.
To do
- Add
-Ivendorto the Rtools branch'sPKG_CPPFLAGSinsrc/Makevars.win(or move it intoEXTRA_CFLAGS). - Regenerate
src/CMakeLists.txtwithcynkrathis::use_cmakelists().
Severity: low (proposed, Kirill may change).
Activity
build: Use vendored Boost with Rtools and drop `logging.cpp` from `CM…