Files
openssh-rpms/docker/docker_compile.sh
boypt aa02c16f46 fix: use single-line baseurl list for DNF 4.x compatibility
DNF 4.x baseurl is list type (space-separated on one line per
dnf.readthedocs.io); repeated baseurl= keys overwrite and only the
last survives. Rewrite join_baseurls and add rewrite_baseurls helper
to emit single baseurl= line with space-separated mirrors while
preserving remainder after prefix (fixes multi-line sed truncation).
Keep official-first ordering for GitHub CI. Also quote ELDIR in
docker_compile.sh to pass shellcheck.
2026-08-21 16:10:27 +08:00

21 lines
413 B
Bash
Executable File

#!/bin/bash
DOCKER_BUILD_DIR=/BUILD
mkdir -p $DOCKER_BUILD_DIR
ELDIR=$(./compile.sh GETEL)
if ! rpm -q openssl-devel; then
WITH_OPENSSL=2
fi
OPENSSLVER=$(rpm -q openssl --qf "%{VERSION}" | cut -d. -f1)
if [[ ${WITH_OPENSSL+x} == "" ]]; then
if [[ $OPENSSLVER -ge 3 ]]; then
export WITH_OPENSSL=1
else
export WITH_OPENSSL=2
fi
fi
cp -r "$ELDIR" $DOCKER_BUILD_DIR
./compile.sh "$DOCKER_BUILD_DIR/$ELDIR"