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

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


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

commit aba37d67ec3198000e12b951e2286fd35424666d
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 fcc18ad7d07..9a757120c07 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -340,7 +340,10 @@ jobs:
         python3.6 -m pip install flake8 'sphinx<3.1.0' numpy 
pydata_sphinx_theme ipython nbsphinx mypy numpydoc 'jinja2<3.0.0' 
'docutils<0.18'
     - 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