File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141# *ONLY* used at:
4242# Ubuntu series: jammy & bionic
4343# Debian series: bullseye & bookworm
44- DEBIAN_SOURCE=" http://ftp .debian.org/debian/"
44+ DEBIAN_SOURCE=" http://deb .debian.org/debian/"
4545OPENPGP_SERVER=" keyserver.ubuntu.com"
4646
4747[[ -n " ${APT_MIRROR+x} " ]] && DEBIAN_SOURCE=" http://${APT_MIRROR} /debian/"
@@ -72,8 +72,16 @@ CODE_NAME=$(lsb_release -sc) && \
7272## install local deps on older distros
7373__debhelper_ver=" $( dpkg-query -f ' ${Version}' -W debhelper || true) "
7474[[ -z $__debhelper_ver ]] && __debhelper_ver=" 0.0.0"
75+ __coreutils_ver=" $( dpkg-query -f ' ${Version}' -W coreutils || true) "
76+ [[ -z $__coreutils_ver ]] && __coreutils_ver=" 0.0.0"
77+
78+ echo " DEBUG: __coreutils_ver:$__coreutils_ver "
7579echo " DEBUG: __debhelper_ver:$__debhelper_ver "
76- dpkg --compare-versions $__debhelper_ver le ' 13.1~' && \
77- sudo apt install -y $__dir /builddep/* .deb
80+
81+ # the latest debhelper calls ` cp --update=none` which is unsupported in older coreutils
82+ # downgrade debhelper the our fixed version instead.
83+ if dpkg --compare-versions $__debhelper_ver le ' 13.1~' || dpkg --compare-versions $__coreutils_ver le ' 9.5~' ; then \
84+ sudo apt install -y --allow-downgrades $__dir /builddep/* .deb
85+ fi
7886
7987exit 0
You can’t perform that action at this time.
0 commit comments