[lsb-discuss] lsb-discuss Digest, Vol 120, Issue 1

Brian Mayer blmayer at icloud.com
Tue Nov 1 15:23:21 UTC 2016


I'm proposing a standard way to define important directories by means of variables, so, instead of having
echo > /dev/null 2>&1 ;
we would have 
echo > $DEVDIR/null 2>&1 ;
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. 

Sent from my iPhone



Sent from my iPhone
> On 1 Nov 2016, at 10:00 AM, lsb-discuss-request at lists.linux-foundation.org wrote:
> 
> Send lsb-discuss mailing list submissions to
>   lsb-discuss at lists.linux-foundation.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss
> or, via email, send a message with subject or body 'help' to
>   lsb-discuss-request at lists.linux-foundation.org
> 
> You can reach the person managing the list at
>   lsb-discuss-owner at lists.linux-foundation.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lsb-discuss digest..."
> 
> 
> Today's Topics:
> 
>  1. Re: Hard coded directories in makefiles (Mats Wichmann)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 31 Oct 2016 08:32:25 -0600
> From: Mats Wichmann <mats at wichmann.us>
> To: lsb-discuss at lists.linux-foundation.org
> Subject: Re: [lsb-discuss] Hard coded directories in makefiles
> Message-ID: <06c9482e-8ad1-409f-5401-3bad22441bae at wichmann.us>
> Content-Type: text/plain; charset=windows-1252
> 
>> On 10/29/2016 09:38 AM, Brian Mayer wrote:
>> Hello all,
>> 
>> While trying to build LFS in a non standard hierarchy I faced the problem
>> of having to tweak variables so programs can compile OK, however those
>> makefiles have directories explicitly written in the code. Therefore I have
>> to edit those makefiles and put the correct path so the makefile can find
>> /dev/null and /bin/sh for example.
>> 
>> Hence my question is: Won't it be good if we could parse those variables to
>> makefiles or configure script, e.g. DEVDIR=/path/to/dev/ make, so they
>> could compile correctly?
>> 
>> This way we would be able to build custom systems easily, without the use
>> of symlinks or having to edit makefiles, and if we wish to comply with FHS
>> it will be easy the same way.
>> 
>> Thanks.
>> 
>> Sent from my iPad
>> _______________________________________________
>> lsb-discuss mailing list
>> lsb-discuss at lists.linux-foundation.org
>> https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss
> 
> Not sure what you are asking or proposing here.
> 
> Well constructed projects typically have ways to relocate paths with
> makefile variables like BINDIR, DESTDIR, etc.  Projects that don't do
> that are not as flexible.   For cross compiling the situation is
> typically even more complex.
> 
> 
> ------------------------------
> 
> _______________________________________________
> lsb-discuss mailing list
> lsb-discuss at lists.linux-foundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/lsb-discuss
> 
> 
> End of lsb-discuss Digest, Vol 120, Issue 1
> *******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/lsb-discuss/attachments/20161101/e222b7c8/attachment.html>


More information about the lsb-discuss mailing list