NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/34967 (make(1) let's variables in Makefile override the command line)



The following reply was made to PR bin/34967; it has been noted by GNATS.

From: "Greg A. Woods; Planix, Inc." <woods%planix.ca@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: erh%NetBSD.org@localhost,
 rillig%NetBSD.org@localhost
Subject: Re: bin/34967 (make(1) let's variables in Makefile override the 
command line)
Date: Sat, 11 Oct 2008 12:44:55 -0400

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --Apple-Mail-13-623160105
 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
 Content-Transfer-Encoding: 7bit
 
 
 On 11-Oct-08, at 2:32 AM, erh%NetBSD.org@localhost wrote:
 
 > Synopsis: make(1) let's variables in Makefile override the command  
 > line
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: erh%NetBSD.org@localhost
 > State-Changed-When: Sat, 11 Oct 2008 06:32:08 +0000
 > State-Changed-Why:
 > Looks to me like this got fixed.  A make from the end of august  
 > appears
 > to work ok.
 
 It still doesn't look quite right to me yet, though in slightly  
 different variations than the original PR is concerned with.
 
 The precedence of command-line setting now works, but the first two,  
 via_shell and via_assignment still show no output no matter whether  
 the variable is set on the command line or in the environment.
 
 However "make -e" still produces the broken output as before by the  
 looks of it.
 
 Something must be really confused inside the logic of how values get  
 set and when expressions are evaluated.
 
 $  make -f tvarset.mk all COMPILERS="from the command line"
 before:
 via_shell:
 via_assignment:
 via_for_loop: from the command line
 
 after:
 via_shell: from the command line
 via_assignment: from the command line
 via_for_loop:  from the command line
 
 direct use:
 from the command line
 $ COMPILERS="from the environment" make -f tvarset.mk all
 before:
 via_shell:
 via_assignment:
 via_for_loop: from the environment
 
 after:
 via_shell: from the Makefile
 via_assignment: from the Makefile
 via_for_loop:  from the Makefile
 
 direct use:
 from the Makefile
 $ COMPILERS="from the environment with -e" make -e -f tvarset.mk all
 before:
 via_shell:
 via_assignment:
 via_for_loop: from the environment with -e
 
 after:
 via_shell: from the environment with -e
 via_assignment: from the Makefile
 via_for_loop:  from the Makefile
 
 direct use:
 from the environment with -e
 
 
 -- 
                                        Greg A. Woods; Planix, Inc.
                                        <woods%planix.ca@localhost>
 
 
 --Apple-Mail-13-623160105
 content-type: application/pgp-signature; x-mac-type=70674453;
        name=PGP.sig
 content-description: This is a digitally signed message part
 content-disposition: inline; filename=PGP.sig
 content-transfer-encoding: 7bit
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.8 (Darwin)
 
 iD8DBQFI8NgHZn1xt3i/9H8RAoQiAJ9IKujv7G+CPHylfvEunUtcMlwAbQCfb5XI
 /BEz1zIsYByCGhYUTUyryoE=
 =JKgQ
 -----END PGP SIGNATURE-----
 
 --Apple-Mail-13-623160105--
 


Home | Main Index | Thread Index | Old Index