Skip to content

Commit

Permalink
More robust Debian dependency installation
Browse files Browse the repository at this point in the history
We want it to complain loudly if a dependency is missing, not just
quietly continue on.
  • Loading branch information
CendioOssman committed Sep 3, 2022
1 parent 6645558 commit c353e49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/containers/bionic/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ docker run --volume ${CURDIR}/build:/home/deb/build --interactive --rm tigervnc/
bash -e -x -c "
tar -C ~/build -axf ~/build/tigervnc_${VERSION}.orig.tar.xz;
cp -a ~/build/debian ~/build/tigervnc-${VERSION}/debian;
mk-build-deps ~/build/tigervnc-${VERSION}/debian/control;
sudo dpkg --unpack ~/tigervnc-build-deps_*.deb;
sudo apt-get update;
sudo apt-get -f install -y;
mk-build-deps ~/build/tigervnc-${VERSION}/debian/control;
sudo apt-get install -y ~/tigervnc-build-deps_*.deb;
cd ~/build/tigervnc-${VERSION} && dpkg-buildpackage;
"

Expand Down
5 changes: 2 additions & 3 deletions .github/containers/focal/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ docker run --volume ${CURDIR}/build:/home/deb/build --interactive --rm tigervnc/
bash -e -x -c "
tar -C ~/build -axf ~/build/tigervnc_${VERSION}.orig.tar.xz;
cp -a ~/build/debian ~/build/tigervnc-${VERSION}/debian;
mk-build-deps ~/build/tigervnc-${VERSION}/debian/control;
sudo dpkg --unpack ~/tigervnc-build-deps_*.deb;
sudo apt-get update;
sudo apt-get -f install -y;
mk-build-deps ~/build/tigervnc-${VERSION}/debian/control;
sudo apt-get install -y ~/tigervnc-build-deps_*.deb;
cd ~/build/tigervnc-${VERSION} && dpkg-buildpackage;
"

Expand Down

0 comments on commit c353e49

Please sign in to comment.