Skip to content

Commit

Permalink
Fix libdeflate dep on Debian 11, 12 as well
Browse files Browse the repository at this point in the history
To fix up #204.
  • Loading branch information
gaborcsardi committed Feb 21, 2024
1 parent 906a865 commit 2317e4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builder/package.debian-11
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ if [[ "${R_VERSION}" =~ ^3 ]]; then
- libpcre3-dev'
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
name: r-${R_VERSION}
version: 1
Expand All @@ -36,6 +41,7 @@ depends:
- libc6
- libcairo2
- libcurl4-openssl-dev
${deflate_libs}
- libglib2.0-0
- libgomp1
- libicu-dev
Expand Down
6 changes: 6 additions & 0 deletions builder/package.debian-12
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ if [[ "${R_VERSION}" =~ ^3 ]]; then
- libpcre3-dev'
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
name: r-${R_VERSION}
version: 1
Expand All @@ -36,6 +41,7 @@ depends:
- libc6
- libcairo2
- libcurl4-openssl-dev
${deflate_libs}
- libglib2.0-0
- libgomp1
- libicu-dev
Expand Down

0 comments on commit 2317e4c

Please sign in to comment.