<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:08:23 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>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-576] Incorrect build dependencies listed for libcfsutil.a</title>
                <link>https://jira.whamcloud.com/browse/LU-576</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The dependencies listed for the libcfsutil.a target are incorrect. The sources for that library are listed in libcfs/libcfs/autoMakefile.am as:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;libcfsutil_a_SOURCES = nidstrings.c util/parser.c util/parser.h util/platform.h \
                       util/l_ioctl.c util/util.c
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Expanding out the above relative pathnames for the referenced &lt;span class=&quot;error&quot;&gt;&amp;#91;parser|platform&amp;#93;&lt;/span&gt;.h files gives the following files:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;libcfs/libcfs/util/parser.h
libcfs/libcfs/util/platform.h
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The problem is these files do not exist. My assumption is, the dependencies it is intending to use are the following files:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;libcfs/include/libcfs/util/parser.h
libcfs/include/libcfs/util/platform.h
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Even worse, the &lt;span class=&quot;error&quot;&gt;&amp;#91;parser|platform&amp;#93;&lt;/span&gt;.c files do not reference &lt;span class=&quot;error&quot;&gt;&amp;#91;parser|platform&amp;#93;&lt;/span&gt;.h directly. These files are included through the directive:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;#include &amp;lt;libcfs/libcfsutil.h&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;But a dependency on libcfsutil.h is not in the *_SOURCES variable.&lt;/p&gt;

&lt;p&gt;I think the right thing to do in this situation would be to fix these path issues using an &quot;absolute&quot; path to the needed files, using a reference to the top of the source tree. For example:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;libcfsutil_a_SOURCES = $(top_srcdir)/libcfs/libcfs/util/nidstrings.c \
                       $(top_srcdir)/libcfs/libcfs/util/parser.c \
                       $(top_srcdir)/libcfs/libcfs/util/l_ioctl.c \
                       $(top_srcdir)/libcfs/libcfs/util/util.c \
                       $(top_srcdir)/libcfs/include/libcfs/util/parser.h \
                       $(top_srcdir)/libcfs/include/libcfs/util/platform.h \
                       $(top_srcdir)/libcfs/include/libcfs/libcfsutil.h
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Although, full pathnames are not used throughout the build system for Lustre, thus the inconsistency of using full pathnames here is not ideal.&lt;/p&gt;

&lt;p&gt;The patch submitted for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-455&quot; title=&quot;autogen.sh preparation produces automake chatter&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-455&quot;&gt;&lt;del&gt;LU-455&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;http://review.whamcloud.com/#change,1092&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,1092&lt;/a&gt;, &quot;fixes&quot; this issue simply by removing the &lt;span class=&quot;error&quot;&gt;&amp;#91;parser|platform&amp;#93;&lt;/span&gt;.h dependencies from the list of *_SOURCES.&lt;/p&gt;</description>
                <environment>Lustre 2.0.66</environment>
        <key id="11460">LU-576</key>
            <summary>Incorrect build dependencies listed for libcfsutil.a</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="10100">Low Priority</resolution>
                                        <assignee username="mdiep">Minh Diep</assignee>
                                    <reporter username="prakash">Prakash Surya</reporter>
                        <labels>
                            <label>llnl</label>
                    </labels>
                <created>Mon, 8 Aug 2011 13:25:46 +0000</created>
                <updated>Wed, 6 Nov 2019 06:04:57 +0000</updated>
                            <resolved>Wed, 6 Nov 2019 06:04:57 +0000</resolved>
                                    <version>Lustre 2.0.0</version>
                                    <fixVersion>Lustre 2.1.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="18928" author="pjones" created="Tue, 9 Aug 2011 10:21:11 +0000"  >&lt;p&gt;Brian&lt;/p&gt;

&lt;p&gt;Could you please comment?&lt;/p&gt;

&lt;p&gt;Prakash&lt;/p&gt;

&lt;p&gt;Does this mean that we should not land the patch from LU455?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="18960" author="prakash" created="Tue, 9 Aug 2011 11:37:30 +0000"  >&lt;p&gt;Peter,&lt;/p&gt;

&lt;p&gt;No, I definitely think the LU455 patch should still land.&lt;/p&gt;

&lt;p&gt;This &quot;fix&quot; I mention in the LU455 patch isn&apos;t changing any of the current behaviour. From the looks of it, it has always been broken, it was just wasn&apos;t being reported when using the DIST_SOURCES automake variable. So what was &quot;broken&quot; before is still &quot;broken&quot; with the LU455 patch, we just can no longer rely on the build system to hide the error for us.&lt;/p&gt;

&lt;p&gt;Patches to properly fix this ticket should be made separately. Although, the &quot;right&quot; fix that I mention is probably only possible with a total rehaul of the build system.&lt;/p&gt;</comment>
                            <comment id="18969" author="pjones" created="Tue, 9 Aug 2011 11:46:20 +0000"  >&lt;p&gt;ok, thanks for clarifying Prakash&lt;/p&gt;</comment>
                            <comment id="19067" author="brian" created="Thu, 11 Aug 2011 09:27:40 +0000"  >&lt;p&gt;I don&apos;t particularly have an issue with selective use of the full path, however couldn&apos;t a relative path also be used?&lt;/p&gt;

&lt;p&gt;i.e.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;libcfsutil_a_SOURCES = nidstrings.c util/parser.c ../include/libcfs/util/parser.h ../include/libcfs/util/platform.h \
                       util/l_ioctl.c util/util.c
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="19078" author="prakash" created="Thu, 11 Aug 2011 11:57:42 +0000"  >&lt;p&gt;My issue with using the full paths is that doesn&apos;t look to be the way things are done anywhere else in the build system. Even though I think it&apos;s the right fix, without going through and making the change everywhere, it still feels like an ugly hack. I&apos;m sure I could look through the tree to answer this, but do you know how this sort of issue is handled in the other subsystems? I imagine having a separate &apos;include&apos; directory is a common idiom.&lt;/p&gt;

&lt;p&gt;And I haven&apos;t tried using &apos;..&apos; but technically I think it would work just fine. That solution just doesn&apos;t sit well with me.. Is there a good argument for &apos;..&apos; over full paths?&lt;/p&gt;

&lt;p&gt;Isn&apos;t the benefit of using relative paths the fact that you can move the top level directories around and things will still work? If &apos;..&apos; is used then you lock yourself into the current directory structure without explicitly spelling out the structure you expect by using the full paths.&lt;/p&gt;

&lt;p&gt;I know Chris Morrone also wasn&apos;t too keen using &apos;..&apos; to find the header files as well, although I&apos;m not sure what his reasoning on that was. Perhaps it would be a good idea to add him to the watch list and see what he says about this matter.&lt;/p&gt;</comment>
                            <comment id="19226" author="pjones" created="Mon, 15 Aug 2011 11:22:24 +0000"  >&lt;p&gt;chris,&lt;/p&gt;

&lt;p&gt;Adding you for your comments&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="19299" author="morrone" created="Tue, 16 Aug 2011 18:40:54 +0000"  >&lt;p&gt;Mostly I want to be clear that we think this is likely a common problem in the build system.  I don&apos;t think there is a point to fixing just these two.  If we fix it, we should figure out the correct solution and apply it everywhere that it is needed.&lt;/p&gt;

&lt;p&gt;I see no hurry to fix this either.  I think that making some of the bigger changes like moving ldiskfs and the lustre kernel patches out of the lustre tree would be excellent first steps to cleaning up the build system.  Once those are done, it will be easier to start some of the finer cleanup like this.&lt;/p&gt;

&lt;p&gt;I would not suggest using the full path when the files are in the same directory as the makefile, or in subdirectories below the make file.  I would perhaps only use the $(top_builddir) form of the path when we need to walk back up the tree.  I am not really particularly opposed to using &quot;..&quot;, though.&lt;/p&gt;</comment>
                            <comment id="60388" author="pjones" created="Tue, 11 Jun 2013 20:16:39 +0000"  >&lt;p&gt;Minh is working on this area nowadays&lt;/p&gt;</comment>
                            <comment id="60393" author="mdiep" created="Tue, 11 Jun 2013 21:35:59 +0000"  >&lt;p&gt;Chris, Prakash&lt;/p&gt;

&lt;p&gt;Could you let me know what else need to be done for this ticket?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="66739" author="adilger" created="Mon, 16 Sep 2013 16:24:03 +0000"  >&lt;p&gt;The patch &lt;a href=&quot;http://review.whamcloud.com/1092&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/1092&lt;/a&gt; was landed in 2011-08-12 for v2_0_66_0-40-g88ae427.  Is there anything left to fix, or should this be closed?&lt;/p&gt;</comment>
                            <comment id="78781" author="jfc" created="Sat, 8 Mar 2014 00:05:26 +0000"  >&lt;p&gt;Chris, Prakash,&lt;br/&gt;
Can I mark this as resolved?&lt;br/&gt;
Thanks,&lt;br/&gt;
~ jfc.&lt;/p&gt;</comment>
                            <comment id="78799" author="morrone" created="Sat, 8 Mar 2014 01:37:15 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/1092&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/1092&lt;/a&gt; was for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-455&quot; title=&quot;autogen.sh preparation produces automake chatter&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-455&quot;&gt;&lt;del&gt;LU-455&lt;/del&gt;&lt;/a&gt;, not this ticket.  I can&apos;t remember this being fixed off the top of my head.  I don&apos;t have time to do a more thorough search at the moment.  My assumption is that is has not been addressed until proven otherwise.&lt;/p&gt;</comment>
                            <comment id="257810" author="adilger" created="Wed, 6 Nov 2019 06:04:57 +0000"  >&lt;p&gt;It isn&apos;t clear that this is still a problem for anyone.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10490" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 27 Jun 2014 13:25:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzvt2f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8639</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10493" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 8 Aug 2011 13:25:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>