Merge pull request #206 from rstudio/fix/deflate-debian
Fix libdeflate dep on Debian 11, 12 as well
This commit is contained in:
commit
401bbd29c3
2 changed files with 12 additions and 0 deletions
|
|
@ -11,6 +11,11 @@ if [[ "${R_VERSION}" =~ ^3 ]]; then
|
||||||
- libpcre3-dev'
|
- libpcre3-dev'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
deflate_libs='# - libdeflate-dev'
|
||||||
|
if grep -q '^LIBS *=.*[-]ldeflate' ${R_INSTALL_PATH}/lib/R/etc/Makeconf; then
|
||||||
|
deflate_libs='- libdeflate-dev'
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > /tmp/nfpm.yml
|
cat <<EOF > /tmp/nfpm.yml
|
||||||
name: r-${R_VERSION}
|
name: r-${R_VERSION}
|
||||||
version: 1
|
version: 1
|
||||||
|
|
@ -36,6 +41,7 @@ depends:
|
||||||
- libc6
|
- libc6
|
||||||
- libcairo2
|
- libcairo2
|
||||||
- libcurl4-openssl-dev
|
- libcurl4-openssl-dev
|
||||||
|
${deflate_libs}
|
||||||
- libglib2.0-0
|
- libglib2.0-0
|
||||||
- libgomp1
|
- libgomp1
|
||||||
- libicu-dev
|
- libicu-dev
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,11 @@ if [[ "${R_VERSION}" =~ ^3 ]]; then
|
||||||
- libpcre3-dev'
|
- libpcre3-dev'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
deflate_libs='# - libdeflate-dev'
|
||||||
|
if grep -q '^LIBS *=.*[-]ldeflate' ${R_INSTALL_PATH}/lib/R/etc/Makeconf; then
|
||||||
|
deflate_libs='- libdeflate-dev'
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > /tmp/nfpm.yml
|
cat <<EOF > /tmp/nfpm.yml
|
||||||
name: r-${R_VERSION}
|
name: r-${R_VERSION}
|
||||||
version: 1
|
version: 1
|
||||||
|
|
@ -36,6 +41,7 @@ depends:
|
||||||
- libc6
|
- libc6
|
||||||
- libcairo2
|
- libcairo2
|
||||||
- libcurl4-openssl-dev
|
- libcurl4-openssl-dev
|
||||||
|
${deflate_libs}
|
||||||
- libglib2.0-0
|
- libglib2.0-0
|
||||||
- libgomp1
|
- libgomp1
|
||||||
- libicu-dev
|
- libicu-dev
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue