From 5c977e2f7a2180134d2c70f19cd06d11e50444ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Sun, 1 Nov 2015 11:46:48 +0000 Subject: [PATCH] build fixes --- resolve-debbuilddeps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolve-debbuilddeps.sh b/resolve-debbuilddeps.sh index 19363ce..3f6a043 100755 --- a/resolve-debbuilddeps.sh +++ b/resolve-debbuilddeps.sh @@ -15,10 +15,10 @@ SCHROOTNAME="$1" sed 's,@[^@]*@, dummytext,g' debian/control.in > debian/control if test -n "${SCHROOTNAME}"; then - schroot -c "${SCHROOTNAME}" -- apt-get install -y dpkg-dev + schroot -c "${SCHROOTNAME}" -u root -d / -- apt-get install -y dpkg-dev DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1 || true) else - apt-get install -y dpkg-dev + sudo apt-get install -y dpkg-dev DEPS=$(dpkg-checkbuilddeps 2>&1 || true) fi DEPS=$(echo "$DEPS" | sed -n '/Unmet build dependencies/ { s,.*Unmet build dependencies: ,,g; s, ([^)]*),,g; s, *| *,|,g; p}')