File tree Expand file tree Collapse file tree 5 files changed +35
-0
lines changed Expand file tree Collapse file tree 5 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ if grep -q '^LIBS *=.*[-]ldeflate' ${R_INSTALL_PATH}/lib/R/etc/Makeconf; then
16
16
deflate_libs=' - libdeflate-dev'
17
17
fi
18
18
19
+ # R 4.5.0 and later require libzstd (with headers to link against libR)
20
+ zstd_libs=' # - libzstd-dev'
21
+ if grep -q ' ^LIBS *=.*[-]lzstd' ${R_INSTALL_PATH} /lib/R/etc/Makeconf; then
22
+ zstd_libs=' - libzstd-dev'
23
+ fi
24
+
19
25
cat << EOF > /tmp/nfpm.yml
20
26
name: r-${R_VERSION}
21
27
version: 1
@@ -58,6 +64,7 @@ ${pcre_libs}
58
64
- libtk8.6
59
65
- libx11-6
60
66
- libxt6
67
+ ${zstd_libs}
61
68
- make
62
69
- ucf
63
70
- unzip
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ if [[ "${R_VERSION}" =~ ^3 ]]; then
11
11
- pcre-devel'
12
12
fi
13
13
14
+ # R 4.5.0 and later require libzstd (with headers to link against libR)
15
+ zstd_libs=' # - libzstd-dev'
16
+ if grep -q ' ^LIBS *=.*[-]lzstd' ${R_INSTALL_PATH} /lib/R/etc/Makeconf; then
17
+ zstd_libs=' - libzstd-devel'
18
+ fi
19
+
14
20
blas_lib=' flexiblas-devel'
15
21
16
22
# Create postremove script to remove empty directories, as nFPM doesn't include them in the RPM files.
@@ -49,6 +55,7 @@ depends:
49
55
- libtiff
50
56
- libXmu
51
57
- libXt
58
+ ${zstd_libs}
52
59
- make
53
60
- ${blas_lib}
54
61
- pango
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ if [[ "${R_VERSION}" =~ ^3 ]]; then
11
11
- pcre-devel'
12
12
fi
13
13
14
+ # R 4.5.0 and later require libzstd (with headers to link against libR)
15
+ zstd_libs=' # - libzstd-dev'
16
+ if grep -q ' ^LIBS *=.*[-]lzstd' ${R_INSTALL_PATH} /lib/R/etc/Makeconf; then
17
+ zstd_libs=' - libzstd-devel'
18
+ fi
19
+
14
20
blas_lib=' flexiblas-devel'
15
21
16
22
# Create postremove script to remove empty directories, as nFPM doesn't include them in the RPM files.
@@ -49,6 +55,7 @@ depends:
49
55
- libtiff
50
56
- libXmu
51
57
- libXt
58
+ ${zstd_libs}
52
59
- make
53
60
- ${blas_lib}
54
61
- pango
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ if [[ "${R_VERSION}" =~ ^3 ]]; then
11
11
- pcre-devel'
12
12
fi
13
13
14
+ # R 4.5.0 and later require libzstd (with headers to link against libR)
15
+ zstd_libs=' # - libzstd-dev'
16
+ if grep -q ' ^LIBS *=.*[-]lzstd' ${R_INSTALL_PATH} /lib/R/etc/Makeconf; then
17
+ zstd_libs=' - libzstd-devel'
18
+ fi
19
+
14
20
# Create post-install script required for OpenBLAS.
15
21
#
16
22
# On RHEL and SUSE, we link R against the internal shared BLAS to make the
@@ -72,6 +78,7 @@ depends:
72
78
- libpango-1_0-0
73
79
- libreadline7
74
80
- libtiff6
81
+ ${zstd_libs}
75
82
- make
76
83
${pcre_libs}
77
84
- tar
Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ if grep -q '^LIBS *=.*[-]ldeflate' ${R_INSTALL_PATH}/lib/R/etc/Makeconf; then
16
16
deflate_libs=' - libdeflate-dev'
17
17
fi
18
18
19
+ # R 4.5.0 and later require libzstd (with headers to link against libR)
20
+ zstd_libs=' # - libzstd-dev'
21
+ if grep -q ' ^LIBS *=.*[-]lzstd' ${R_INSTALL_PATH} /lib/R/etc/Makeconf; then
22
+ zstd_libs=' - libzstd-dev'
23
+ fi
24
+
19
25
cat << EOF > /tmp/nfpm.yml
20
26
name: r-${R_VERSION}
21
27
version: 1
@@ -59,6 +65,7 @@ ${pcre_libs}
59
65
- libtk8.6
60
66
- libx11-6
61
67
- libxt6t64
68
+ ${zstd_libs}
62
69
- make
63
70
- ucf
64
71
- unzip
You can’t perform that action at this time.
0 commit comments