This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new 29290306749 [SPARK-39831][BUILD] Fix R dependencies installation 
failure
29290306749 is described below

commit 29290306749f75eb96f51fc5b61114e9b8a3bf53
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Thu Jul 21 22:29:18 2022 +0900

    [SPARK-39831][BUILD] Fix R dependencies installation failure
    
    ### What changes were proposed in this pull request?
    
    move `libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev 
libpng-dev libtiff5-dev libjpeg-dev` from `Install dependencies for 
documentation generation` to `Install R linter dependencies and SparkR`
    
    ### Why are the changes needed?
    to make CI happy
    
    `Install R linter dependencies and SparkR` started to fail after 
`devtools_2.4.4` was released.
    
    ```
     --------------------------- [ANTICONF] --------------------------------
    Configuration failed to find the fontconfig freetype2 library. Try 
installing:
     * deb: libfontconfig1-dev (Debian, Ubuntu, etc)
     * rpm: fontconfig-devel (Fedora, EPEL)
     * csw: fontconfig_dev (Solaris)
     * brew: freetype (OSX)
     ```
    
    it seems that `libfontconfig1-dev` is needed now.
    
    also refer to 
https://github.com/r-lib/systemfonts/issues/35#issuecomment-633560151
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    existing tests
    
    Closes #37243 from zhengruifeng/ci_add_dep.
    
    Authored-by: Ruifeng Zheng <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
    (cherry picked from commit 67efa318ec8cababdb5683ac262a8ebc3b3beefb)
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 .github/workflows/build_and_test.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build_and_test.yml 
b/.github/workflows/build_and_test.yml
index 6aaaa8424dc..1c8ff1b1d10 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -378,7 +378,9 @@ jobs:
         python3.9 -m pip install flake8 pydata_sphinx_theme 'mypy==0.910' 
numpydoc 'jinja2<3.0.0' 'black==21.5b2'
     - name: Install R linter dependencies and SparkR
       run: |
-        apt-get install -y libcurl4-openssl-dev libgit2-dev libssl-dev 
libxml2-dev
+        apt-get install -y libcurl4-openssl-dev libgit2-dev libssl-dev 
libxml2-dev \
+          libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev 
libpng-dev \
+          libtiff5-dev libjpeg-dev
         Rscript -e "install.packages(c('devtools'), 
repos='https://cloud.r-project.org/')"
         Rscript -e "devtools::install_version('lintr', version='2.0.1', 
repos='https://cloud.r-project.org')"
         ./R/install-dev.sh


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to