packaging: always execute builddeb from source root stable
authorGregory Szorc <gregory.szorc@gmail.com>
Wed, 01 Aug 2018 12:24:52 -0700
branchstable
changeset 38779 824636b08400
parent 38765 cc8657f6fd3e
child 38833 c9e6ca31cfe7
packaging: always execute builddeb from source root Without this, dockerdeb and the make targets that invoke it may fail depending on the pwd at the time of invocation.
contrib/packaging/dockerdeb
--- a/contrib/packaging/dockerdeb	Wed Aug 01 10:20:19 2018 -0400
+++ b/contrib/packaging/dockerdeb	Wed Aug 01 12:24:52 2018 -0700
@@ -33,7 +33,7 @@
 fi
 $DOCKER run -u $DBUILDUSER --rm -v $ROOTDIR/..:/mnt $CONTAINER \
   sh -c "cd /mnt/$dn && DEB_BUILD_OPTIONS='${DEB_BUILD_OPTIONS:=}' contrib/packaging/builddeb --build --distid $DISTID --codename $CODENAME $@"
-contrib/packaging/builddeb --cleanup --distid $DISTID --codename $CODENAME
+(cd $ROOTDIR && contrib/packaging/builddeb --cleanup --distid $DISTID --codename $CODENAME)
 if [ $(uname) = "Darwin" ] ; then
     $DOCKER run -u $DBUILDUSER --rm -v $PWD/..:/mnt $CONTAINER \
             sh -c "cd /mnt/$dn && make clean"