<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:08 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-2088] Can&apos;t build libbson on tvOS / watchOS</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2088</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I maintain the CocoaPods package for libbson. The goal is to make libbson easy to integrate into Objective-C and Swift projects.&lt;/p&gt;

&lt;p&gt;By default CocoaPods builds for iOS, OS X, tvOS, and watchOS. When running test builds on tvOS and watchOS, I get errors related to syscall not being available:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    - ERROR | [tvOS] xcodebuild:  /Users/pnm/code/libbson/src/bson/bson-context.c:53:11: error: &apos;syscall&apos; is unavailable: not available on tvOS&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    - NOTE  | [tvOS] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator10.1.sdk/usr/include/unistd.h:733:6: note: &apos;syscall&apos; has been explicitly marked unavailable here&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    - ERROR | [watchOS] xcodebuild:  /Users/pnm/code/libbson/src/bson/bson-context.c:53:11: error: &apos;syscall&apos; is unavailable: not available on watchOS&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    - NOTE  | [watchOS] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator3.1.sdk/usr/include/unistd.h:733:6: note: &apos;syscall&apos; has been explicitly marked unavailable here&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;The challenge is that the package has to be shared between these OS&apos;s. There&apos;s a script that runs autogen and configure at install time, though at that point the platforms it will run on are not known (and have different support).&lt;/p&gt;

&lt;p&gt;What&apos;s the best way to handle this? Should I add more checks in bson-context.c?&lt;/p&gt;</description>
                <environment>tvOS, watchOS</environment>
        <key id="365696">CDRIVER-2088</key>
            <summary>Can&apos;t build libbson on tvOS / watchOS</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="paulmelnikow">Paul Melnikow</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Mar 2017 14:41:12 +0000</created>
                <updated>Wed, 11 Sep 2019 19:05:46 +0000</updated>
                            <resolved>Fri, 17 Mar 2017 18:18:37 +0000</resolved>
                                    <version>1.6.0</version>
                                    <fixVersion>1.7.0</fixVersion>
                                    <component>libbson</component>
                    <component>packaging</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1526961" author="paulmelnikow" created="Fri, 17 Mar 2017 18:51:58 +0000"  >&lt;p&gt;Good to know. Thanks.&lt;/p&gt;</comment>
                            <comment id="1526949" author="bjori" created="Fri, 17 Mar 2017 18:46:04 +0000"  >&lt;p&gt;Yes please. Each pull request needs a jira ticket for tracking purposes otherwise it&apos;s to easy to accidentally miss the pull request as they are not our primary workflow.&lt;/p&gt;

&lt;p&gt;Good point about &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1559&quot; title=&quot;syscall deprecated in macOS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1559&quot;&gt;&lt;del&gt;CDRIVER-1559&lt;/del&gt;&lt;/a&gt;, thanks!&lt;/p&gt;</comment>
                            <comment id="1526941" author="paulmelnikow" created="Fri, 17 Mar 2017 18:40:18 +0000"  >&lt;p&gt;Out of curiosity, would it be easier for you guys to manage if I opened tickets here for issues I find, to go along with pull requests?&lt;/p&gt;</comment>
                            <comment id="1526931" author="paulmelnikow" created="Fri, 17 Mar 2017 18:32:38 +0000"  >&lt;p&gt;Nice! Seems like that fix would resolve &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1559&quot; title=&quot;syscall deprecated in macOS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1559&quot;&gt;&lt;del&gt;CDRIVER-1559&lt;/del&gt;&lt;/a&gt; as well.&lt;/p&gt;</comment>
                            <comment id="1526909" author="xgen-internal-githook" created="Fri, 17 Mar 2017 18:16:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2088&quot; title=&quot;Can&amp;#39;t build libbson on tvOS / watchOS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2088&quot;&gt;&lt;del&gt;CDRIVER-2088&lt;/del&gt;&lt;/a&gt; Can&apos;t build libbson on tvOS / watchOS&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/0d2f189276e4bf11f72a3830336490ef845f94b7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/0d2f189276e4bf11f72a3830336490ef845f94b7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1526785" author="paulmelnikow" created="Fri, 17 Mar 2017 16:21:42 +0000"  >&lt;p&gt;Thanks for the response. I didn&apos;t realize it was deprecated on OS X. Hmmm.&lt;/p&gt;

&lt;p&gt;It&apos;s only used in this block:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/blob/master/src/bson/bson-context.c#L376-L386&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/blob/master/src/bson/bson-context.c#L376-L386&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is this for OID generation? &lt;/p&gt;

&lt;p&gt;The simplest fix which would be to #define another variable in bson-context.c, which checks BSON_HAVE_SYSCALL_TID &amp;amp;&amp;amp; !tvOS &amp;amp;&amp;amp; !watchOS.&lt;/p&gt;

&lt;p&gt;That would address the immediate issue, though it wouldn&apos;t solve the deprecation issue.&lt;/p&gt;</comment>
                            <comment id="1526757" author="jesse" created="Fri, 17 Mar 2017 15:59:59 +0000"  >&lt;p&gt;Hi, we&apos;re aware that &quot;syscall&quot; is deprecated on macOS and unavailable on mobile Apple systems. We haven&apos;t investigated further and found an alternative yet. Do you have a proposal?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="464734">PHPC-1058</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="318761">CDRIVER-1559</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hswvbb:</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>