<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:19:41 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-4013] Invalid RPATH to sources directories</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4013</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;&lt;tt&gt;ERROR 0002: file &apos;/usr/bin/mongoc-stat&apos; contains an invalid rpath &apos;/dev/shm/extras/BUILD/mongo-c-driver-1.17.6/x86_64-redhat-linux-gnu/src/libmongoc&apos; in &lt;span class=&quot;error&quot;&gt;&amp;#91;/dev/shm/extras/BUILD/mongo-c-driver-1.17.6/x86_64-redhat-linux-gnu/src/libmongoc:/dev/shm/extras/BUILD/mongo-c-driver-1.17.6/x86_64-redhat-linux-gnu/src/libbson&amp;#93;&lt;/span&gt;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;ERROR 0002: file &apos;/usr/bin/mongoc-stat&apos; contains an invalid rpath &apos;/dev/shm/extras/BUILD/mongo-c-driver-1.17.6/x86_64-redhat-linux-gnu/src/libbson&apos; in &lt;span class=&quot;error&quot;&gt;&amp;#91;/dev/shm/extras/BUILD/mongo-c-driver-1.17.6/x86_64-redhat-linux-gnu/src/libmongoc:/dev/shm/extras/BUILD/mongo-c-driver-1.17.6/x86_64-redhat-linux-gnu/src/libbson&amp;#93;&lt;/span&gt;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;erreur&#160;: Mauvais statut de sortie pour /var/tmp/rpm-tmp.D3ZF6I (%install)&lt;/tt&gt;&lt;tt&gt;&#160;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Notice: starting with &lt;b&gt;Fedora 35&lt;/b&gt;, invalid RPATH are blocker for build&lt;br/&gt;
&lt;a href=&quot;https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Changing &lt;b&gt;CMAKE_SKIP_BUILD_RPATH&lt;/b&gt; to ON seems a working workaround, but a better fix probably exists (RPATH mays be needed to run the test suite), but are unwanted in &lt;b&gt;installed&lt;/b&gt; binaries&lt;/p&gt;</description>
                <environment></environment>
        <key id="1767071">CDRIVER-4013</key>
            <summary>Invalid RPATH to sources directories</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="13202">Works as Designed</resolution>
                                        <assignee username="roberto.sanchez@mongodb.com">Roberto Sanchez</assignee>
                                    <reporter username="remi">Remi Collet</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Jun 2021 07:07:29 +0000</created>
                <updated>Fri, 27 Oct 2023 13:14:07 +0000</updated>
                            <resolved>Fri, 30 Jul 2021 21:26:24 +0000</resolved>
                                    <version>1.17.6</version>
                                                    <component>libbson</component>
                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3973835" author="roberto.sanchez" created="Fri, 30 Jul 2021 21:26:24 +0000"  >&lt;p&gt;The issue is best resolved downstream through the use of an already available build option, as described in an earlier comment.&lt;/p&gt;</comment>
                            <comment id="3972111" author="remi" created="Fri, 30 Jul 2021 05:58:01 +0000"  >&lt;p&gt;Thanks, &lt;tt&gt;-DCMAKE_SKIP_RPATH:BOOL=ON&lt;/tt&gt; is OK.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Applied in &lt;a href=&quot;https://src.fedoraproject.org/rpms/mongo-c-driver/c/192bce4a7dd956296fca134cf38aa3f5581cb59f?branch=rawhide&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://src.fedoraproject.org/rpms/mongo-c-driver/c/192bce4a7dd956296fca134cf38aa3f5581cb59f?branch=rawhide&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Build: &lt;a href=&quot;https://koji.fedoraproject.org/koji/taskinfo?taskID=72953511&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://koji.fedoraproject.org/koji/taskinfo?taskID=72953511&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Can be closed&lt;/p&gt;</comment>
                            <comment id="3971768" author="roberto.sanchez" created="Thu, 29 Jul 2021 21:37:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=remi&quot; class=&quot;user-hover&quot; rel=&quot;remi&quot;&gt;remi&lt;/a&gt;, it seems that the solution is to specify &lt;tt&gt;-DCMAKE_SKIP_RPATH:BOOL=ON&lt;/tt&gt; as a CMake option.  I dropped your &lt;tt&gt;sed&lt;/tt&gt; workaround and added that option in the &lt;tt&gt;%build&lt;/tt&gt; option of the spec.  After that, no RPATHs were set in the built or installed components.  Are you comfortable with making this change to your downstream spec as the resolution to this issue?  If so, I would like to close this issue.&lt;/p&gt;</comment>
                            <comment id="3962369" author="roberto.sanchez" created="Mon, 26 Jul 2021 11:54:20 +0000"  >&lt;p&gt;Ah, of course!  I had overlooked that.  I will remove the &lt;tt&gt;sed&lt;/tt&gt; command from the spec file and try to reproduce the error.  Thanks for the pointer.&lt;/p&gt;</comment>
                            <comment id="3962209" author="remi" created="Mon, 26 Jul 2021 09:33:29 +0000"  >&lt;p&gt;I confirm the issue is still present in 1.18.0&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&amp;gt; your spec file&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Have you removed the workaround to this issue ?&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;{{ (sed -e &apos;/CMAKE_SKIP_BUILD_RPATH/s/OFF/ON/&apos; -i CMakeLists.txt)}}&lt;/p&gt;</comment>
                            <comment id="3961521" author="roberto.sanchez" created="Sat, 24 Jul 2021 20:45:14 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=remi&quot; class=&quot;user-hover&quot; rel=&quot;remi&quot;&gt;remi&lt;/a&gt;, I have tried several different approaches, but I cannot reproduce the error you describe.  From what I can tell, the installed components of the C driver do not carry RPATH settings.  After building in a F35 mock (using the script &lt;tt&gt;.evergreen/build_snapshot_rpm.sh&lt;/tt&gt; in the C driver repository and your spec file with minor modifications), this is what I observe:&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;&amp;lt;mock-chroot&amp;gt; sh-5.1# chrpath /builddir/build/BUILD/mongo-c-driver-1.19.0/redhat-linux-build/src/libmongoc/mongoc-stat&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;/builddir/build/BUILD/mongo-c-driver-1.19.0/redhat-linux-build/src/libmongoc/mongoc-stat: no rpath or runpath tag found.&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;&amp;lt;mock-chroot&amp;gt; sh-5.1# rpm2cpio mongo-c-driver-1.19.0-0.20210724+gitf9db623e3.fc35.x86_64.rpm | cpio -dium&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;33 blocks&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;&amp;lt;mock-chroot&amp;gt; sh-5.1# chrpath ./usr/bin/mongoc-stat&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;./usr/bin/mongoc-stat: no rpath or runpath tag found.&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;Additionally, I tried several different checks with &lt;tt&gt;rpmlint&lt;/tt&gt; and &lt;tt&gt;rpminspect-fedora&lt;/tt&gt; (as described in the wiki page you linked) and none of them found problems with the RPATH.  If I have missed something in replicating the behavior, please let me know.&lt;/p&gt;

&lt;p&gt;As an added precaution, you should be able to add the option &lt;tt&gt;-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON&lt;/tt&gt; to the CMake command line invoked from the spec file.  Would this be sufficient?  Or do I need to dig deeper?&lt;/p&gt;</comment>
                            <comment id="3859762" author="kevin.albertson" created="Fri, 4 Jun 2021 14:14:07 +0000"  >&lt;p&gt;Thank you for the bug report &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=remi&quot; class=&quot;user-hover&quot; rel=&quot;remi&quot;&gt;remi&lt;/a&gt;! We will investigate this soon.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1767068">CDRIVER-4012</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|hr6jlr:</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>