<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><span>I'm proposing a standard way to define important directories by means of variables, so, instead of having</span></div><div><pre style="word-wrap: break-word;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">echo &gt; /dev/null 2&gt;&amp;1 ; </span></font></pre><span></span><div>we would have&nbsp;</div><div><pre style="word-wrap: break-word;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">echo &gt; $DEVDIR/null 2&gt;&amp;1 ; </span></font></pre><pre style="word-wrap: break-word;"><font face="UICTFontTextStyleBody"><span style="white-space: normal;">This way we don't get errors of file not found. And it will work in any machine, I mean, machines with non standard file hierarchy.&nbsp;</span></font></pre></div><br><span>Sent from my iPhone</span><br><span></span><br><div><br><br>Sent from my iPhone</div><blockquote type="cite"><span>On 1 Nov 2016, at 10:00 AM, <a href="mailto:lsb-discuss-request@lists.linux-foundation.org">lsb-discuss-request@lists.linux-foundation.org</a> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Send lsb-discuss mailing list submissions to</span><br></blockquote><blockquote type="cite"><span> &nbsp;&nbsp;<a href="mailto:lsb-discuss@lists.linux-foundation.org">lsb-discuss@lists.linux-foundation.org</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>To subscribe or unsubscribe via the World Wide Web, visit</span><br></blockquote><blockquote type="cite"><span> &nbsp;&nbsp;<a href="https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss">https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss</a></span><br></blockquote><blockquote type="cite"><span>or, via email, send a message with subject or body 'help' to</span><br></blockquote><blockquote type="cite"><span> &nbsp;&nbsp;<a href="mailto:lsb-discuss-request@lists.linux-foundation.org">lsb-discuss-request@lists.linux-foundation.org</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>You can reach the person managing the list at</span><br></blockquote><blockquote type="cite"><span> &nbsp;&nbsp;<a href="mailto:lsb-discuss-owner@lists.linux-foundation.org">lsb-discuss-owner@lists.linux-foundation.org</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>When replying, please edit your Subject line so it is more specific</span><br></blockquote><blockquote type="cite"><span>than "Re: Contents of lsb-discuss digest..."</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Today's Topics:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span> &nbsp;1. Re: Hard coded directories in makefiles (Mats Wichmann)</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>----------------------------------------------------------------------</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Message: 1</span><br></blockquote><blockquote type="cite"><span>Date: Mon, 31 Oct 2016 08:32:25 -0600</span><br></blockquote><blockquote type="cite"><span>From: Mats Wichmann &lt;<a href="mailto:mats@wichmann.us">mats@wichmann.us</a>&gt;</span><br></blockquote><blockquote type="cite"><span>To: <a href="mailto:lsb-discuss@lists.linux-foundation.org">lsb-discuss@lists.linux-foundation.org</a></span><br></blockquote><blockquote type="cite"><span>Subject: Re: [lsb-discuss] Hard coded directories in makefiles</span><br></blockquote><blockquote type="cite"><span>Message-ID: &lt;<a href="mailto:06c9482e-8ad1-409f-5401-3bad22441bae@wichmann.us">06c9482e-8ad1-409f-5401-3bad22441bae@wichmann.us</a>&gt;</span><br></blockquote><blockquote type="cite"><span>Content-Type: text/plain; charset=windows-1252</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>On 10/29/2016 09:38 AM, Brian Mayer wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Hello all,</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>While trying to build LFS in a non standard hierarchy I faced the problem</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>of having to tweak variables so programs can compile OK, however those</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>makefiles have directories explicitly written in the code. Therefore I have</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>to edit those makefiles and put the correct path so the makefile can find</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>/dev/null and /bin/sh for example.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Hence my question is: Won't it be good if we could parse those variables to</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>makefiles or configure script, e.g. DEVDIR=/path/to/dev/ make, so they</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>could compile correctly?</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>This way we would be able to build custom systems easily, without the use</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>of symlinks or having to edit makefiles, and if we wish to comply with FHS</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>it will be easy the same way.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Thanks.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Sent from my iPad</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>_______________________________________________</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>lsb-discuss mailing list</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a href="mailto:lsb-discuss@lists.linux-foundation.org">lsb-discuss@lists.linux-foundation.org</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a href="https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss">https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Not sure what you are asking or proposing here.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Well constructed projects typically have ways to relocate paths with</span><br></blockquote><blockquote type="cite"><span>makefile variables like BINDIR, DESTDIR, etc. &nbsp;Projects that don't do</span><br></blockquote><blockquote type="cite"><span>that are not as flexible. &nbsp;&nbsp;For cross compiling the situation is</span><br></blockquote><blockquote type="cite"><span>typically even more complex.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>------------------------------</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>lsb-discuss mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:lsb-discuss@lists.linux-foundation.org">lsb-discuss@lists.linux-foundation.org</a></span><br></blockquote><blockquote type="cite"><span><a href="https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss">https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss</a></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>End of lsb-discuss Digest, Vol 120, Issue 1</span><br></blockquote><blockquote type="cite"><span>*******************************************</span><br></blockquote></div></body></html>