Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on Windows #27

Merged
merged 12 commits into from
Dec 5, 2023
Merged

Fix build on Windows #27

merged 12 commits into from
Dec 5, 2023

Conversation

gaborcsardi
Copy link
Collaborator

@gaborcsardi gaborcsardi commented Dec 5, 2023

Mostly straightforward, and I left some comments in the code that hopefully explain the motivation for some of the more obscure bits.

The cross compiling of grpc breaks the loading of the grpc root certificates, so we embed them into the package on Windows, and set an env var at load time to point to it.

If grpc & protobuf are not available from Rtools43,
then we download them.
@gaborcsardi gaborcsardi force-pushed the fix/windows branch 4 times, most recently from fe51284 to a95a16b Compare December 5, 2023 11:53
Removing Rtools43 took ~ 9 minutes (!), so
try not to remove it, just set it aside.
We still call `rig rm rtools43` to delete the
registry entries.
So they are not included in artifacts.
To please `R CMD check`. Also, make sure `.h` and `.cc`
files end with an LF, that's also an `R CMD check` issue.
We cannot use `getwd()` any more, the dependencies
are downloaded out of tree on the CI.
@gaborcsardi gaborcsardi marked this pull request as ready for review December 5, 2023 16:10
@gaborcsardi
Copy link
Collaborator Author

The Ubuntu R-devel CI failure is unrelated and will be fixed, once the new version of the progress package is on CRAN, in a couple of hours, hopefully.

@gaborcsardi
Copy link
Collaborator Author

gaborcsardi commented Dec 5, 2023

The Ubuntu R-devel CI failure is unrelated and will be fixed, once the new version of the progress package is on CRAN, in a couple of hours, hopefully.

Oh, it is not coming from the progress package, it seems, let me merge main.

@meztez
Copy link
Owner

meztez commented Dec 5, 2023

@gaborcsardi I will switch to the CRAN version. I think at the time I had issue with Windows Rstudio and needed an extra field to display throttle state. I prefer using progress header directly from the package for an release.

@gaborcsardi
Copy link
Collaborator Author

@meztez I think this is good now, and we could also update the README: Windows builds now work with the latest version of Rtools43 (not on GHA by default currently!), on R 4.3.x and R-devel.

@meztez meztez merged commit efc29c7 into meztez:main Dec 5, 2023
13 checks passed
@meztez
Copy link
Owner

meztez commented Dec 5, 2023 via email

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.

2 participants