Skip to content

Commit 97f8408

Browse files
committed
Include gcc to force build node native packages
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent 8bc9173 commit 97f8408

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/base-images/debian/install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#! /usr/bin/env bash
22
set -e
33

4+
glibc_version=$(ldd --version | head -n1 | awk '{print $NF}')
5+
required_version="2.35"
6+
7+
# Compare versions: if glibc_version < required_version, set the env var
8+
if [ "$(printf '%s\n%s\n' "$glibc_version" "$required_version" | sort -V | head -n1)" != "$required_version" ]; then
9+
export npm_config_build_from_source=true
10+
fi
11+
412
if [ x"${ATOM_RUBY_VERSION}" != "x" ]; then
513
git clone https://github.com/rbenv/rbenv.git --depth=1 ~/.rbenv
614
echo 'export PATH="/root/.rbenv/bin:$PATH"' >> ~/.bashrc

0 commit comments

Comments
 (0)