<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:15:19 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-2473] Port bson-stdint.h build logic from Autotools to CMake</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2473</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;libbson has Autotools logic for generating a platform-specific version of stdint.h, called bson-stdint.h. On CMake we just always use a handwritten bson-stdint.h which just includes stdint.h. Determine whether there are platforms we care about which don&apos;t have stdint.h and if so, port the Autotools logic to CMake.&lt;/p&gt;

&lt;p&gt;Step One: determine if we need to do anything in particular here.&lt;/p&gt;</description>
                <environment></environment>
        <key id="488057">CDRIVER-2473</key>
            <summary>Port bson-stdint.h build logic from Autotools to CMake</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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>
                    </labels>
                <created>Fri, 26 Jan 2018 20:52:03 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:10 +0000</updated>
                            <resolved>Sun, 15 Apr 2018 20:54:49 +0000</resolved>
                                                    <fixVersion>1.10.0</fixVersion>
                                    <component>Build</component>
                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1901786" author="xgen-internal-githook" created="Fri, 25 May 2018 14:40:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jmikola&apos;, &apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/PHPC-1174&quot; title=&quot;Upgrade bundled libbson and libmongoc to 1.10&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PHPC-1174&quot;&gt;&lt;del&gt;PHPC-1174&lt;/del&gt;&lt;/a&gt;: Remove traces of bson-stdint.h&lt;/p&gt;

&lt;p&gt;The output path for this file was left incorrect in the previous PR for &lt;a href=&quot;https://jira.mongodb.org/browse/PHPC-1174&quot; title=&quot;Upgrade bundled libbson and libmongoc to 1.10&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PHPC-1174&quot;&gt;&lt;del&gt;PHPC-1174&lt;/del&gt;&lt;/a&gt;, but the file isn&apos;t actually even used anymore per mongodb/mongo-c-driver@abc882dec9eb5c67fc6e344440ee81e9d33d3459 (&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2473&quot; title=&quot;Port bson-stdint.h build logic from Autotools to CMake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2473&quot;&gt;&lt;del&gt;CDRIVER-2473&lt;/del&gt;&lt;/a&gt;).&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/commit/73489c5463ade8ccf4d9cbf4c360218836eb46df&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-php-driver/commit/73489c5463ade8ccf4d9cbf4c360218836eb46df&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1864623" author="jesse" created="Sun, 15 Apr 2018 20:51:42 +0000"  >&lt;p&gt;Acknowledged, thanks for the thorough info.&lt;/p&gt;</comment>
                            <comment id="1864622" author="xgen-internal-githook" created="Sun, 15 Apr 2018 20:47:38 +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-2473&quot; title=&quot;Port bson-stdint.h build logic from Autotools to CMake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2473&quot;&gt;&lt;del&gt;CDRIVER-2473&lt;/del&gt;&lt;/a&gt; use stdint.h instead of bson-stdint&lt;/p&gt;
{,-win32}
&lt;p&gt;.h&lt;/p&gt;

&lt;p&gt;This change applies to non-MSVC compilers/platforms (for bson-stdint.h)&lt;br/&gt;
and also to MSVC (for bson-stdint-win32.h). This change only affects&lt;br/&gt;
building with CMake.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/abc882dec9eb5c67fc6e344440ee81e9d33d3459&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/abc882dec9eb5c67fc6e344440ee81e9d33d3459&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1864620" author="roberto.sanchez" created="Sun, 15 Apr 2018 20:45:22 +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 just finished publishing my code review and I see that you preemptively LGTM-ed it &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;I did want to add one more note here for the sake of completeness.&lt;/p&gt;

&lt;p&gt;I explored whether it was possible to ditch the section of the file under the comment &lt;tt&gt;MSVC&amp;#43;&amp;#43; does not include ssize_t, just size_t.&lt;/tt&gt;. However, from what I was able to determine at least VS 2010 does not provide ssize_t, so that section appears to still be necessary for now.&lt;/p&gt;</comment>
                            <comment id="1864493" author="jesse" created="Sun, 15 Apr 2018 02:54:12 +0000"  >&lt;p&gt;Terrific, make it so!&lt;/p&gt;</comment>
                            <comment id="1864489" author="roberto.sanchez" created="Sun, 15 Apr 2018 01:05:58 +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 done some research into this and my conclusion is that we most likely do not need &lt;tt&gt;bson-stdint.h&lt;/tt&gt;, so it would not make sense to put effort into porting the related Autotools logic to CMake.&lt;/p&gt;

&lt;p&gt;Basically, gcc (starting with version 4.5) and Visual Studio (starting with version 2010) ship stdint.h. I was not able to find definitive information regarding clang, but version 3.4 (the earliest listed in installing.rst) was released after gcc 4.5. Of the platforms/compilers listed in installing.rst, Visual Studio 2010 is the oldest. Of note, RHEL releases prior to 7 have older pre-4.5 gcc releases, though I am not certain if they have stdint.h or not.&lt;/p&gt;

&lt;p&gt;I would say that if the Evergreen matrix is considered comprehensive and the lack of a generated bson-stdint.h (the hand written bson-stdint.h that just includes stdint.h functions the same as if it were not present), then it would be a reasonable conclusion that we can do without the fancy bson-stdind.h generation logic. I recommend eliminating the file and its references from the CMake part of the build system to see what happens with the build matrix. I suspect that unless there are some very old odd platforms there, we should not see any failures attributable to this.&lt;/p&gt;</comment>
                    </comments>
                    <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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-2434</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htgepz:</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>