diff --git a/debian/changelog b/debian/changelog index f1e612e25..78cddf524 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ libmongocrypt (1.7.1-3) UNRELEASED; urgency=medium * Drop remove-builtin.patch, integrated upstream + * Disable Decimal128 on platforms without IntelDFP -- Kyle Kloberdanz Fri, 10 Feb 2023 09:33:24 -0600 diff --git a/debian/control b/debian/control index 732852f6f..89f5dfd7d 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Build-Depends: debhelper (>= 10), cmake, libssl-dev, pkg-config, - libintelrdfpmath-dev (>= 2.0u2-6), + libintelrdfpmath-dev (>= 2.0u2-6) [!mips64el !mipsel], libbson-dev Standards-Version: 4.6.2 Section: libs @@ -20,7 +20,7 @@ Architecture: any Multi-Arch: same Depends: libbson-dev, libmongocrypt0 (= ${binary:Version}), - libintelrdfpmath-dev (>= 2.0u2-6), + libintelrdfpmath-dev (>= 2.0u2-6) [!mips64el !mipsel], ${misc:Depends} Description: client-side field level encryption library - dev files libmongocrypt facilitates the client-side encryption and decryption, diff --git a/debian/rules b/debian/rules index 4477e2df4..6991663eb 100755 --- a/debian/rules +++ b/debian/rules @@ -18,6 +18,11 @@ export DEB_CFLAGS_MAINT_APPEND = -fPIC # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +ifneq (,$(filter $(DEB_HOST_ARCH),mipsel mips64el)) + DFP_CONFIG_OPTION=-DMONGOCRYPT_ENABLE_DECIMAL128=OFF +else + DFP_CONFIG_OPTION=-DMONGOCRYPT_DFP_DIR=USE-SYSTEM +endif %: dh $@ @@ -27,8 +32,8 @@ override_dh_auto_configure: -DBUILD_VERSION=$(DEB_VERSION_UPSTREAM) \ -DUSE_SHARED_LIBBSON=ON \ -DMONGOCRYPT_MONGOC_DIR=USE-SYSTEM \ - -DMONGOCRYPT_DFP_DIR=USE-SYSTEM \ -DENABLE_ONLINE_TESTS=OFF \ + $(DFP_CONFIG_OPTION) \ -DCMAKE_BUILD_TYPE=RelWithDebInfo override_dh_auto_build: