Skip to content

Commit 3081ea9

Browse files
author
Kyle Kloberdanz
committed
(Debian packaging) Disable Decimal128 on platforms without IntelDFP
1 parent 4ffcb39 commit 3081ea9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

debian/changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
libmongocrypt (1.7.1-3) UNRELEASED; urgency=medium
22

33
* Drop remove-builtin.patch, integrated upstream
4+
* Disable Decimal128 on platforms without IntelDFP
45

56
-- Kyle Kloberdanz <kyle.kloberdanz@mongodb.com> Fri, 10 Feb 2023 09:33:24 -0600
67

debian/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Build-Depends: debhelper (>= 10),
88
cmake,
99
libssl-dev,
1010
pkg-config,
11-
libintelrdfpmath-dev (>= 2.0u2-6),
11+
libintelrdfpmath-dev (>= 2.0u2-6) [!mips64el !mipsel],
1212
libbson-dev
1313
Standards-Version: 4.6.2
1414
Section: libs
@@ -20,7 +20,7 @@ Architecture: any
2020
Multi-Arch: same
2121
Depends: libbson-dev,
2222
libmongocrypt0 (= ${binary:Version}),
23-
libintelrdfpmath-dev (>= 2.0u2-6),
23+
libintelrdfpmath-dev (>= 2.0u2-6) [!mips64el !mipsel],
2424
${misc:Depends}
2525
Description: client-side field level encryption library - dev files
2626
libmongocrypt facilitates the client-side encryption and decryption,

debian/rules

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ export DEB_CFLAGS_MAINT_APPEND = -fPIC
1818
# package maintainers to append LDFLAGS
1919
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
2020

21+
ifneq (,$(filter $(DEB_HOST_ARCH),mipsel mips64el))
22+
DFP_CONFIG_OPTION=-DMONGOCRYPT_ENABLE_DECIMAL128=OFF
23+
else
24+
DFP_CONFIG_OPTION=-DMONGOCRYPT_DFP_DIR=USE-SYSTEM
25+
endif
2126

2227
%:
2328
dh $@
@@ -27,8 +32,8 @@ override_dh_auto_configure:
2732
-DBUILD_VERSION=$(DEB_VERSION_UPSTREAM) \
2833
-DUSE_SHARED_LIBBSON=ON \
2934
-DMONGOCRYPT_MONGOC_DIR=USE-SYSTEM \
30-
-DMONGOCRYPT_DFP_DIR=USE-SYSTEM \
3135
-DENABLE_ONLINE_TESTS=OFF \
36+
$(DFP_CONFIG_OPTION) \
3237
-DCMAKE_BUILD_TYPE=RelWithDebInfo
3338

3439
override_dh_auto_build:

0 commit comments

Comments
 (0)