Skip to content

Commit b87a848

Browse files
committed
install packages from within Debian chroot
1 parent 53cbf19 commit b87a848

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.evergreen/debian_package_build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ cd ..
4141

4242
git clone https://salsa.debian.org/installer-team/debootstrap.git debootstrap.git
4343
export DEBOOTSTRAP_DIR=`pwd`/debootstrap.git
44-
# perl-openssl-defaults is explicitly listed to work around https://bugs.debian.org/907015
45-
sudo -E ./debootstrap.git/debootstrap --include=build-essential,perl-openssl-defaults,git-buildpackage,fakeroot,debhelper,cmake,libssl-dev,pkg-config,python3-sphinx,zlib1g-dev,libicu-dev,libsasl2-dev,libsnappy-dev,libzstd-dev unstable ./unstable-chroot/ http://cdn-aws.deb.debian.org/debian
44+
sudo -E ./debootstrap.git/debootstrap unstable ./unstable-chroot/ http://cdn-aws.deb.debian.org/debian
4645
cp -a mongoc ./unstable-chroot/tmp/
4746
sudo chroot ./unstable-chroot /bin/bash -c "(set -o xtrace && \
47+
apt-get install -y build-essential git-buildpackage fakeroot debhelper cmake libssl-dev pkg-config python3-sphinx zlib1g-dev libicu-dev libsasl2-dev libsnappy-dev libzstd-dev && \
4848
cd /tmp/mongoc && \
4949
git clean -fdx && \
5050
git reset --hard HEAD && \
@@ -58,4 +58,4 @@ sudo chroot ./unstable-chroot /bin/bash -c "(set -o xtrace && \
5858
gcc -I/usr/include/libmongoc-1.0 -I/usr/include/libbson-1.0 -o example-client src/libmongoc/examples/example-client.c -lmongoc-1.0 -lbson-1.0 )"
5959

6060
[ -e ./unstable-chroot/tmp/mongoc/example-client ] || (echo "Example was not built!" ; exit 1)
61-
(cd ./unstable-chroot/tmp/ ; tar zcvf ../../deb.tar.gz *.dsc *.orig.tar.gz *.debian.tar.xz *.build *.deb)
61+
(cd ./unstable-chroot/tmp/ ; tar zcvf ../../deb.tar.gz *.dsc *.orig.tar.gz *.debian.tar.xz *.build *.deb)

0 commit comments

Comments
 (0)