mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? No. ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) N/A. ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No. ### Are you introducing any new config? If yes, do you have tests with and without them being set? No. ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Upgrading libbson dependency. ---- #### AI description (iteration 1) #### PR Classification Dependency upgrade #### PR Summary This pull request upgrades the `libbson` library to version 1.28.0 and updates related initialization code. - Updated `MONGO_DRIVER_VERSION` to 1.28.0 in `oss/scripts/install_setup_libbson.sh`. - Added a `NULL` entry to the `bson_mem_vtable_t` structure in `oss/pg_helio_core/src/bson_init.c`. Related work items: #3468225
28 lines
975 B
Bash
Executable File
28 lines
975 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# fail if trying to reference a variable that is not set.
|
|
set -u
|
|
# exit immediately if a command exits with a non-zero status
|
|
set -e
|
|
|
|
MONGO_DRIVER_VERSION="1.28.0"
|
|
|
|
if [ "${INSTALLDESTDIR:-""}" == "" ]; then
|
|
INSTALLDESTDIR="/usr";
|
|
fi
|
|
|
|
if [ "${MAKE_PROGRAM:-""}" == "" ]; then
|
|
MAKE_PROGRAM="cmake3"
|
|
fi
|
|
|
|
pushd $INSTALL_DEPENDENCIES_ROOT
|
|
curl -s -L https://github.com/mongodb/mongo-c-driver/releases/download/$MONGO_DRIVER_VERSION/mongo-c-driver-$MONGO_DRIVER_VERSION.tar.gz | tar -C $INSTALL_DEPENDENCIES_ROOT -zx --transform="s|mongo-c-driver-$MONGO_DRIVER_VERSION|mongo-c-driver|"
|
|
cd $INSTALL_DEPENDENCIES_ROOT/mongo-c-driver/build
|
|
$MAKE_PROGRAM -DENABLE_MONGOC=ON -DMONGOC_ENABLE_ICU=OFF -DENABLE_ICU=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=$INSTALLDESTDIR ..
|
|
make clean && make -sj$(cat /proc/cpuinfo | grep "processor" | wc -l) install
|
|
popd
|
|
|
|
if [ "${CLEANUP_SETUP:-"0"}" == "1" ]; then
|
|
rm -rf $INSTALL_DEPENDENCIES_ROOT/mongo-c-driver
|
|
fi
|