From 540f0903f54fc75ad5eb13c035c71cc56750e018 Mon Sep 17 00:00:00 2001 From: Roger Shimizu Date: Sun, 8 Apr 2018 23:42:34 +0900 Subject: [PATCH] scripts/build_deb.sh: Update libsodium build due to debhelper 11 --- scripts/build_deb.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/build_deb.sh b/scripts/build_deb.sh index e646a97e..7573bd72 100755 --- a/scripts/build_deb.sh +++ b/scripts/build_deb.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2017 Roger Shimizu +# Copyright 2017-2018 Roger Shimizu # # This is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -199,11 +199,18 @@ if [ $BUILD_LIB -eq 1 -o $BUILD_BIN -eq 1 ]; then DHVER=$(dpkg -l debhelper|grep debhelper|awk '{print $3}'|head -n1) cd libsodium if dpkg --compare-versions $DHVER lt 10; then + sed -i 's/debhelper ( >= 11)/debhelper (>= 9), dh-autoreconf/' debian/control; sed -i 's/debhelper ( >= 10)/debhelper (>= 9), dh-autoreconf/' debian/control; echo 9 > debian/compat; dch -D unstable -l~bpo~ "Rebuild as backports" git add -u; git commit -m "Patch to work with ubuntu" + elif dpkg --compare-versions $DHVER lt 11; then + sed -i 's/debhelper ( >= 11)/debhelper (>= 10)/' debian/control; + echo 10 > debian/compat; + dch -D unstable -l~bpo~ "Rebuild as backports" + git add -u; + git commit -m "Patch to work with ubuntu" fi mk-build-deps --root-cmd sudo --install --tool "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" rm libsodium-build-deps_*.deb