Skip to content

Commit

Permalink
(Debian packaging) Disable Decimal128 on platforms without IntelDFP
Browse files Browse the repository at this point in the history
  • Loading branch information
kkloberdanz committed Feb 10, 2023
1 parent 4ffcb39 commit 3081ea9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> Fri, 10 Feb 2023 09:33:24 -0600

Expand Down
4 changes: 2 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down
7 changes: 6 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand All @@ -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:
Expand Down

0 comments on commit 3081ea9

Please sign in to comment.