Skip to content

Commit c7a8ab5

Browse files
authored
Fix debian package build (#1137)
* fix debian-package-build task, use debian12-latest-small distro * configure git user/email during debian-package-build
1 parent 4b1d8c2 commit c7a8ab5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.evergreen/debian_package_build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ if [ ! -z "${DEB_BUILD_PROFILES}" ]; then
2020
echo "DEB_BUILD_PROFILES was set; building with profiles: ${DEB_BUILD_PROFILES}"
2121
fi
2222

23+
git config user.email "[email protected]"
24+
git config user.name "Evergreen Build"
25+
2326
if [ "${IS_PATCH}" = "true" ]; then
2427
git diff HEAD > ../upstream.patch
2528
git clean -fdx
@@ -54,6 +57,7 @@ cp -a mongo-cxx-driver ./unstable-chroot/tmp/
5457
sudo DEB_BUILD_PROFILES="${DEB_BUILD_PROFILES}" chroot ./unstable-chroot /bin/bash -c "
5558
(apt-get install -y ca-certificates cmake debhelper doxygen git libboost-dev libsasl2-dev libsnappy-dev libssl-dev libutf8proc-dev pkgconf zlib1g-dev build-essential curl fakeroot furo git-buildpackage python3-sphinx python3-sphinx-design && \
5659
mkdir /tmp/mongo-c-driver && \
60+
cd /tmp/mongo-c-driver && \
5761
curl -o deb.tar.gz -L https://s3.amazonaws.com/mciuploads/mongo-c-driver/master/mongo-c-driver-debian-packages-latest.tar.gz && \
5862
tar zxvf deb.tar.gz && \
5963
apt-get install -y ./*.deb && \

.mci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ tasks:
10271027
./build/hello_mongocxx
10281028
10291029
- name: debian-package-build
1030-
run_on: ubuntu1804-test
1030+
run_on: debian12-latest-small
10311031
commands:
10321032
- func: "setup"
10331033
- command: shell.exec
@@ -1051,7 +1051,7 @@ tasks:
10511051
display_name: "deb.tar.gz"
10521052

10531053
- name: debian-package-build-mnmlstc
1054-
run_on: ubuntu1804-test
1054+
run_on: debian12-latest-small
10551055
commands:
10561056
- func: "setup"
10571057
- command: shell.exec

0 commit comments

Comments
 (0)