Conversation
| echo "*** particular, this should be the case on Mac where zlib is built in or pkg-config" | ||
| echo "*** is not installed. However, if compilation fails, try 'locate zlib.h zconf.h' and" | ||
| echo "*** ensure the zlib development library is installed :" | ||
| echo "*** deb: zlib1g-dev (Debian, Ubuntu, ...)" |
There was a problem hiding this comment.
doesn't this turn off zlib support on mac by default
There was a problem hiding this comment.
If pkg-config is not available on Mac then yes, it turns off. Needs testing anyway.
There is a related comment above:
if pkg-config is not available then zlib will be disabled for higher chance of compilation success
There was a problem hiding this comment.
Note that this verbose message branch was hit before when pkg-config was not installed, just the message was not mentioning that.
There was a problem hiding this comment.
We could eventually try to check if zlib is available by attempting to compile dummy code, like we do for openmp. Docker image in your report didn't have neither pkg-config and zlib. So then we could still compile with zlib support. For now I don't think it is worth. Messages are clear and points users in the proper direction. Installing pkg-config and/or zlib.
Codecov Report
@@ Coverage Diff @@
## master #4844 +/- ##
==========================================
- Coverage 99.47% 99.47% -0.01%
==========================================
Files 73 73
Lines 14560 14559 -1
==========================================
- Hits 14483 14482 -1
Misses 77 77
Continue to review full report at Codecov.
|
|
I put it on label High so we can have it merged at the beginning on a development cycle to be well tested before it will land on CRAN. |
|
Changes I made in 08a2584:
|
Follow-up of #3872
It is NOT meant to solve Solaris issue, but general issue when zlib is not available.
before PR
after PR