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 03eba096262 [SPARK-39831][BUILD] Fix R dependencies installation 
failure
03eba096262 is described below

commit 03eba096262895f72f98ef0530c78482e1d63275
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Fri Jul 22 12:11:57 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
    
    Update after https://github.com/apache/spark/pull/37243: **add `apt update` 
before installation.**
    
    ### 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?
    CI passed
    
    Closes #37247 from Yikun/patch-25.
    
    Lead-authored-by: Ruifeng Zheng <[email protected]>
    Co-authored-by: Yikun Jiang <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
    (cherry picked from commit ffa82c219029a7f6f3caf613dd1d0ab56d0c599e)
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 .github/workflows/build_and_test.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build_and_test.yml 
b/.github/workflows/build_and_test.yml
index 6aaaa8424dc..8260dea589f 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -378,7 +378,10 @@ 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 update
+        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