diff --git a/2.7-rc/buster/slim/Dockerfile b/2.7-rc/buster/slim/Dockerfile index 31c85c1e3..79cac5b19 100644 --- a/2.7-rc/buster/slim/Dockerfile +++ b/2.7-rc/buster/slim/Dockerfile @@ -38,6 +38,7 @@ RUN set -eux; \ dpkg-dev \ gcc \ libbz2-dev \ + libgdbm-compat-dev \ libgdbm-dev \ libglib2.0-dev \ libncurses-dev \ diff --git a/Dockerfile-slim.template b/Dockerfile-slim.template index 979eba296..88ca961e9 100644 --- a/Dockerfile-slim.template +++ b/Dockerfile-slim.template @@ -39,6 +39,7 @@ RUN set -eux; \ dpkg-dev \ gcc \ libbz2-dev \ + libgdbm-compat-dev \ libgdbm-dev \ libglib2.0-dev \ libncurses-dev \ diff --git a/update.sh b/update.sh index c1d110fd2..0e32d0717 100755 --- a/update.sh +++ b/update.sh @@ -98,6 +98,13 @@ for version in "${versions[@]}"; do -e 's/^(FROM (debian|buildpack-deps|alpine)):.*/\1:'"$tag"'/' \ "$template" > "$dir/Dockerfile" + case "$v" in + # https://packages.debian.org/sid/libgdbm-compat-dev (needed for "dbm" core module, but only in Buster+) + jessie/slim | stretch/slim) + sed -i -e '/libgdbm-compat-dev/d' "$dir/Dockerfile" + ;; + esac + if [ -n "${newEnoughRubygems[$rcVersion]:-}" ]; then sed -ri -e '/RUBYGEMS_VERSION/d' "$dir/Dockerfile" fi