<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:15:09 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-2416] Merge libbson repository into mongo-c-driver</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2416</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Currently libbson is in a separate repository from libmongoc; libmongoc includes it as a Git submodule. This causes various problems. It&apos;s difficult to build libmongoc with a bundled checkout of libbson using CMake (&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1948&quot; title=&quot;CMake build should allow using bundled BSON&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1948&quot;&gt;&lt;del&gt;CDRIVER-1948&lt;/del&gt;&lt;/a&gt;). It&apos;s confusing to develop new libbson features that libmongoc depends on. Common logic in the test suite and build systems must be duplicated across the two repositories, and inevitably the common logic diverges.&lt;/p&gt;

&lt;p&gt;Replace the git submodule in libmongoc with the contents of the libbson repository and retire the libbson repository. Do this as a fake author to avoid biasing the GitHub contributor stats.&lt;/p&gt;

&lt;p&gt;Merge the two test suites into one: no more test-libbson executable, test-libmongoc should now run all the tests for both libraries.&lt;/p&gt;

&lt;p&gt;Factor the common build logic. If we haven&apos;t yet deleted the Autotools scripts (&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1349&quot; title=&quot;Delete Autotools build system, use CMake only&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1349&quot;&gt;&lt;del&gt;CDRIVER-1349&lt;/del&gt;&lt;/a&gt;) don&apos;t bother factoring the duplicated Autotools logic, only do so for CMake scripts.&lt;/p&gt;

&lt;p&gt;Continue to ship libbson and libmongoc as distinct libraries; only the repositories are merged.&lt;/p&gt;</description>
                <environment></environment>
        <key id="468283">CDRIVER-2416</key>
            <summary>Merge libbson repository into mongo-c-driver</summary>
                <type id="11" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14707&amp;avatarType=issuetype">Epic</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="roberto.sanchez@mongodb.com">Roberto Sanchez</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                            <label>FY2019Q2</label>
                    </labels>
                <created>Tue, 5 Dec 2017 17:10:49 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:15 +0000</updated>
                            <resolved>Mon, 21 May 2018 11:02:16 +0000</resolved>
                                                    <fixVersion>1.10.0</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1896751" author="roberto.sanchez" created="Mon, 21 May 2018 11:02:16 +0000"  >&lt;p&gt;Woohoo!&lt;/p&gt;</comment>
                            <comment id="1896594" author="jesse" created="Mon, 21 May 2018 01:53:44 +0000"  >&lt;p&gt;Yes, go ahead and close it!&lt;/p&gt;</comment>
                            <comment id="1896564" author="roberto.sanchez" created="Mon, 21 May 2018 00:32:29 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jesse&quot; class=&quot;user-hover&quot; rel=&quot;jesse&quot;&gt;jesse&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kevin.eric.albertson%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;kevin.eric.albertson@gmail.com&quot;&gt;kevin.eric.albertson@gmail.com&lt;/a&gt;, are we ready/able to close this Epic now that all of of the constituent tasks are complete?&lt;/p&gt;</comment>
                            <comment id="1864592" author="xgen-internal-githook" created="Sun, 15 Apr 2018 18:14:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Roberto C. S&#225;nchez&apos;, &apos;email&apos;: &apos;roberto@connexer.com&apos;, &apos;username&apos;: &apos;rcsanchez97&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; implement ENABLE_BSON=ONLY build option&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/e025efb85d00894350349b4dd83461c2b17349bc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/e025efb85d00894350349b4dd83461c2b17349bc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1810909" author="xgen-internal-githook" created="Tue, 20 Feb 2018 21:31:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;roberto@connexer.com&apos;, &apos;name&apos;: &apos;Roberto C. S&#225;nchez&apos;, &apos;username&apos;: &apos;rcsanchez97&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; consolidate redundant cmake logic&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/831f13c90e52d7d5fb02f3967cabda1cfdbcac8f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/831f13c90e52d7d5fb02f3967cabda1cfdbcac8f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1789902" author="xgen-internal-githook" created="Tue, 30 Jan 2018 22:43:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; fix libbson tests on darwin&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/e7a9a5f79691810a30cdac57475c0c7914269520&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/e7a9a5f79691810a30cdac57475c0c7914269520&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1788474" author="xgen-internal-githook" created="Mon, 29 Jan 2018 23:59:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; generate libbson docs in Evergreen&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/9213b827ff3c1f5648e9e62451f5ea06847bac4e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/9213b827ff3c1f5648e9e62451f5ea06847bac4e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1788470" author="xgen-internal-githook" created="Mon, 29 Jan 2018 23:59:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; obsolete libbson config files&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/450a6d60006dd4477aecb93dae6f1b4bf3e04696&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/450a6d60006dd4477aecb93dae6f1b4bf3e04696&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1788207" author="xgen-internal-githook" created="Mon, 29 Jan 2018 20:39:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; test bundled libbson&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/caf1839cd9238f8c881d720b9335c48c634b1d5e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/caf1839cd9238f8c881d720b9335c48c634b1d5e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1787069" author="xgen-internal-githook" created="Sun, 28 Jan 2018 22:02:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; use bundled libbson in tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/835db65aec0501e2048dc63a49825c18737ed515&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/835db65aec0501e2048dc63a49825c18737ed515&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1786972" author="xgen-internal-githook" created="Sun, 28 Jan 2018 13:22:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; build bundled libbson with cmake&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/2d4c9f5c3e950aa10e8ae4d37f6a82bb01c5ac66&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/2d4c9f5c3e950aa10e8ae4d37f6a82bb01c5ac66&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1786962" author="xgen-internal-githook" created="Sun, 28 Jan 2018 12:35:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; move libbson dist-checks to libmongoc&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/67c88d2a49ed4f185a05ab081d04d710fadcd90b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/67c88d2a49ed4f185a05ab081d04d710fadcd90b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1786961" author="xgen-internal-githook" created="Sun, 28 Jan 2018 12:35:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; fix &quot;make dist&quot; for merged repos&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/144e60f77501aed1889df7d4208c0bdda36d8e64&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/144e60f77501aed1889df7d4208c0bdda36d8e64&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1774918" author="roberto.sanchez" created="Tue, 16 Jan 2018 13:52:33 +0000"  >&lt;p&gt;I have updated the PR with a change that produces a properly versioned libmongoc -&amp;gt; libbson dependency.&lt;/p&gt;</comment>
                            <comment id="1773349" author="roberto.sanchez" created="Fri, 12 Jan 2018 21:30:28 +0000"  >&lt;p&gt;OK.  I will make the change and update the PR.&lt;/p&gt;</comment>
                            <comment id="1773280" author="jesse" created="Fri, 12 Jan 2018 20:34:46 +0000"  >&lt;p&gt;It sounds like we should make the dependency versioned, yes. Thanks for catching this. &lt;/p&gt;</comment>
                            <comment id="1772964" author="roberto.sanchez" created="Fri, 12 Jan 2018 17:08:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jesse&quot; class=&quot;user-hover&quot; rel=&quot;jesse&quot;&gt;jesse&lt;/a&gt;, I wanted to bring to your attention regarding the libbson/libmongoc dependencies.  In Debian, libmongoc-1.0-0 depends on libbson-1.0-0, but the dependency is unversioned:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://packages.debian.org/sid/libmongoc-1.0-0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://packages.debian.org/sid/libmongoc-1.0-0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The dependencies of libmongoc-dev -&amp;gt; libbson-dev,libmongoc-1.0-0 and libbson-dev -&amp;gt; libbson-1.0-0 are properly versioned because we explicitly state them in the control file.  However, the the dependency libmongoc-1.0-0 -&amp;gt; libbson-1.0-0 is calculated by the dh_shlibdeps helper script.  Since we don&apos;t do symbol versioning and don&apos;t ship a shlibs file, the dependency is unversioned.  This isn&apos;t necessarily a bad thing, but there is a theoretical possibility that an upgrade could be performed to libmongoc-1.0-0 without a corresponding upgrade to libbson-1.0-0.&lt;/p&gt;

&lt;p&gt;I think that with the merged repositories it is even less likely that a problem will occur with this because both binary packages will now originate from the same source package.  However, it is a bit easier to fix this now because we have a guarantee that both packages will have the same version number because we build from the same source package.  We can override the call to dh_makeshlibs during the package build and supply version information to make the dependency versioned.&lt;/p&gt;

&lt;p&gt;To summarize, if we don&apos;t make a change regarding this then the dependencies will continue largely as they have been up to now.  The reason I bring this up now is that if we want to change it the approach is more straightforward than it would have been under the split repository setup.&lt;/p&gt;</comment>
                            <comment id="1769370" author="jesse" created="Tue, 9 Jan 2018 18:55:21 +0000"  >&lt;p&gt;Sounds great.&lt;/p&gt;</comment>
                            <comment id="1769063" author="roberto.sanchez" created="Tue, 9 Jan 2018 16:11:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jesse&quot; class=&quot;user-hover&quot; rel=&quot;jesse&quot;&gt;jesse&lt;/a&gt;, I have made what I believe are all the necessary changes.  With the rewind recipe you gave me I will be able to simulate a 1.10.0-dev release to build a test package and confirm that everything is in order.  My plan is that once I have it tested and I am happy with the Debian packaging I will submit a pull request with the changes.  That will allow you to sit on the pull request until you are ready for a 1.10.0 final release.  That way, if we need to make a 1.9.1 release we aren&apos;t fighting the packaging changes for 1.10.0.&lt;/p&gt;</comment>
                            <comment id="1768507" author="jesse" created="Tue, 9 Jan 2018 02:46:53 +0000"  >&lt;p&gt;Hi! I&apos;ve read your explanation and it seems wise. Please proceed according to your plan.&lt;/p&gt;</comment>
                            <comment id="1768501" author="roberto.sanchez" created="Tue, 9 Jan 2018 02:32:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jesse&quot; class=&quot;user-hover&quot; rel=&quot;jesse&quot;&gt;jesse&lt;/a&gt;, I have put some thought into this today and I would like to propose a simpler solution than the multiple source tarballs.  &lt;/p&gt;

&lt;p&gt;The bottom line is that if you are OK with the upstream and Debian release tarballs being different today and you are OK with them continuing to be different in the future, then there is no reason we can&apos;t just make some minor tweaks to libmongoc Debian packaging and be done with it.  Read on for all the gory details.&lt;/p&gt;

&lt;p&gt;It occurred to me that the current process for generating upstream libbson/libmongoc releases and the process for generating their Debian packages results in two different source tarballs for the same release.  The reason for this is that you use some process (maybe &apos;make dist&apos; or similar) to produce a release tarball and the Debian package process relies the contents of the &apos;upstream&apos; branch (which is called &apos;r1.9&apos; in the repository).  For example, on master, there is no Makefile or configure script, as the build has to be bootstrapped.  The release tarball that you ship includes those items.  As a result, if someone downloads your release tarball from GitHub and the .orig.tar.gz for the same upstream release from the Debian package, they would find that the two files had different MD5 sums and different contents.  This is not necessarily bad, it just is.&lt;/p&gt;

&lt;p&gt;In the typical packaging workflow, upstream and Debian packaging develop in separate repositories.  The normal workflow has the Debian maintainer import the upstream release tarball into a Debian packaging-specific repository.  This is usually done with the assistance of pristine-tar to ensure that the Debian package building process outputs a bit-for-bit identical original tarball as what originated from upstream.&lt;/p&gt;

&lt;p&gt;However, in our case we share a repository and we just let the Debian package scripts generate a tarball from the point on the upstream branch which is identified in gbp.conf.  Since we do not import a tarball with pristine-tar enabled, there is no reference in terms of a specific file to try and match.  Personally, I think that the current workflow is good from that standpoint and I think it would be far more trouble than it is worth to try to create a Debian .orig.tar.gz that matches the release tarball you create for upstream release from GitHub.&lt;/p&gt;

&lt;p&gt;The point of all that preamble is to get to this: since we already produce different release tarballs for upstream releases and Debian packages, we can just create a single libmongoc Debian tarball that contains the sources for both libmongoc and libbson.  The whole purpose of multiple upstream tarballs is to allow a Debian source package to be made up of multiple components which are released independently by upstream.  However, since the Debian packaging here doesn&apos;t use those independent releases and we work on Debian packaging from within a repository that has all the sources together in one place, I think that the right answer is to just migrate the necessary files from the libbson Debian packaging directory into the libmongoc Debian packaging directory.  Specifically, the .install, .docs, .lintian-overrides, shlibs, and possibly one or two other.  The paths would likely need to be adjusted and I would make sure that the correct build switches and flags get carried through to the libbson build.&lt;/p&gt;

&lt;p&gt;That would be a whole lot simpler than trying to mess with multiple release tarballs in the packaging process.  Trying to do that would require a considerable change to the packaging workflow that we have established and I think that it would actually be a change for the worse.&lt;/p&gt;</comment>
                            <comment id="1767496" author="jesse" created="Mon, 8 Jan 2018 14:10:42 +0000"  >&lt;p&gt;Hi Roberto. Yes please do that Debian work next, and please see if there&apos;s any shared logic in the two CMakeLists.txt that&apos;s worth factoring into shared cmake include files. (Maybe there isn&apos;t.)&lt;/p&gt;

&lt;p&gt;After that, we should factor together the test framework code, but I might be a better person for that work, compared to your skills which are more valuable elsewhere.&lt;/p&gt;</comment>
                            <comment id="1767305" author="roberto.sanchez" created="Mon, 8 Jan 2018 04:42:46 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jesse&quot; class=&quot;user-hover&quot; rel=&quot;jesse&quot;&gt;jesse&lt;/a&gt;, I would like to make sure that I have a clear understanding of what I need to accomplish in order to resolve this ticket.  Is the intent that I now produce a merged Debian package from the merged repository, or was there something else in addition to or instead of that?&lt;/p&gt;</comment>
                            <comment id="1765592" author="xgen-internal-githook" created="Thu, 4 Jan 2018 22:28:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; test libbson in evergreen&lt;/p&gt;

&lt;p&gt;Fix libbson&apos;s Evergreen test scripts now that its repository is merged&lt;br/&gt;
into mongo-c-driver.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/10767de6fad9ec2947746bd342ba450633d9d2a5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/10767de6fad9ec2947746bd342ba450633d9d2a5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1751528" author="xgen-internal-githook" created="Thu, 14 Dec 2017 00:18:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@emptysquare.net&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; update README&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/09b809083fcaca11be0c504d90d06e6ccdd4cdaf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/09b809083fcaca11be0c504d90d06e6ccdd4cdaf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1751525" author="xgen-internal-githook" created="Thu, 14 Dec 2017 00:15:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; fix symlink to libbson&apos;s README&lt;/p&gt;

&lt;p&gt;libbson&apos;s autogen.sh tries to ln -s README.md README, but libbson has&lt;br/&gt;
no README.md, it has README.rst. It&apos;s surprising that libbson has been&lt;br/&gt;
able to generate its release tarball until now with this bug, but for&lt;br/&gt;
some reason it&apos;s only a problem now that libbson is merged in.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/d3490a1ed90e47bf095fe3825e33d944291ebc23&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/d3490a1ed90e47bf095fe3825e33d944291ebc23&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1751524" author="xgen-internal-githook" created="Thu, 14 Dec 2017 00:15:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Merge libbson&apos;, &apos;email&apos;: &apos;drivers@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; add libbson as subdirectory&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/91dca46cf53be09afb305d65db420793b72120dc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/91dca46cf53be09afb305d65db420793b72120dc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1751523" author="xgen-internal-githook" created="Thu, 14 Dec 2017 00:15:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; don&apos;t .gitignore src/libbson/COPYING&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/68185daa6492ff99c7498e17ba9d42b887772918&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/68185daa6492ff99c7498e17ba9d42b887772918&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1751522" author="xgen-internal-githook" created="Thu, 14 Dec 2017 00:15:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2416&quot; title=&quot;Merge libbson repository into mongo-c-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2416&quot;&gt;&lt;del&gt;CDRIVER-2416&lt;/del&gt;&lt;/a&gt; delete libbson submodule&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/a13cb8699c5dbdfff4014c57c8a9369319475ecf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/a13cb8699c5dbdfff4014c57c8a9369319475ecf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1743143" author="jesse" created="Tue, 5 Dec 2017 17:12:45 +0000"  >&lt;p&gt;From Roberto:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Here is some info having multiple upstream tarballs in a Debian package:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://wiki.debian.org/Projects/DebSrc3.0#How_to_use_multiple_upstream_tarballs_in_3.0_.28quilt.29_format.3F&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.debian.org/Projects/DebSrc3.0#How_to_use_multiple_upstream_tarballs_in_3.0_.28quilt.29_format.3F&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://raphaelhertzog.com/2010/09/07/how-to-use-multiple-upstream-tarballs-in-debian-source-packages/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://raphaelhertzog.com/2010/09/07/how-to-use-multiple-upstream-tarballs-in-debian-source-packages/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I think that the tarballs would be named libmongoc_1.8.1.orig.tar.gz and&lt;br/&gt;
libmongoc_1.8.1.orig-libbson.tar.gz.&lt;/p&gt;&lt;/blockquote&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="498503">CDRIVER-2509</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="557381">CDRIVER-2695</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10858" key="com.pyxis.greenhopper.jira:gh-epic-label">
                        <customfieldname>Epic Name</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Merge libbson repository into mongo-c-driver</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10859" key="com.pyxis.greenhopper.jira:gh-epic-status">
                        <customfieldname>Epic Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10642"><![CDATA[Done]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hree7j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>