Skip to content

Commit e149bb9

Browse files
committed
(Debian packaging) use system uft8proc, ensure bundled source is not in .orig.tar.gz
Follow up for 47dc666
1 parent 6b7caf9 commit e149bb9

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
mongo-c-driver (1.24.2-2) UNRELEASED; urgency=medium
2+
3+
* use system uft8proc, ensure bundled source is not in .orig.tar.gz
4+
5+
-- Roberto C. Sanchez <[email protected]> Mon, 10 Jul 2023 14:04:12 -0400
6+
17
mongo-c-driver (1.24.2-1) unstable; urgency=medium
28

39
* New upstream release

debian/control

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Build-Depends: debhelper (>= 11),
1414
libicu-dev,
1515
libsasl2-dev,
1616
libsnappy-dev,
17+
libutf8proc-dev,
1718
libzstd-dev
1819
Standards-Version: 4.6.2
1920
Section: libs
@@ -32,6 +33,7 @@ Depends: libmongoc-1.0-0 (= ${binary:Version}),
3233
zlib1g-dev,
3334
libsnappy-dev,
3435
libsasl2-dev,
36+
libutf8proc-dev,
3537
libzstd-dev,
3638
${misc:Depends}
3739
Description: MongoDB C client library - dev files

debian/gbp.conf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ prebuild = bash -c "
1111
# Determine list of embedded sources to exclude from Debian source package
1212
zlib_filter_files=\"$(find src/zlib-* -mindepth 1 -maxdepth 1 \! -name zconf.h.in -printf "mongo-c-driver-\${upstream_version}/%p ")\" &&
1313
zlib_rm_files=\"$(find src/zlib-* -mindepth 1 -maxdepth 1 \! -name zconf.h.in -printf '%p ')\" &&
14+
utf8proc_filter_files=\"$(find src/utf8proc-* -printf "mongo-c-driver-\${upstream_version}/%p ")\" &&
15+
utf8proc_rm_files=\"$(find src/utf8proc-* -printf '%p ')\" &&
1416
# Create upstream tarball from reference, exclude items that do not belong
1517
pushd $GBP_GIT_DIR/.. &&
16-
git archive --format=tar --prefix=mongo-c-driver-\${upstream_version}/ HEAD | tar -f - --delete mongo-c-driver-\${upstream_version}/debian \$zlib_filter_files | gzip > $GBP_BUILD_DIR/../mongo-c-driver_\${upstream_version}.orig.tar.gz &&
18+
git archive --format=tar --prefix=mongo-c-driver-\${upstream_version}/ HEAD | tar -f - --delete mongo-c-driver-\${upstream_version}/debian \$zlib_filter_files \$utf8proc_filter_files | gzip > $GBP_BUILD_DIR/../mongo-c-driver_\${upstream_version}.orig.tar.gz &&
1719
popd &&
18-
rm -rf \$zlib_rm_files"
20+
rm -rf \$zlib_rm_files \$utf8proc_rm_files"
1921

2022
upstream-tree = BRANCH
2123
upstream-branch = master

debian/rules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ override_dh_auto_configure:
4040
-DENABLE_HTML_DOCS=$(DOCS) \
4141
-DENABLE_MAINTAINER_FLAGS=ON \
4242
-DENABLE_TESTS=OFF \
43-
-DENABLE_ZLIB=SYSTEM
43+
-DENABLE_ZLIB=SYSTEM \
44+
-DUSE_BUNDLED_UTF8PROC=OFF
4445

4546
override_dh_auto_install:
4647
dh_auto_install

0 commit comments

Comments
 (0)