bugmake - Bugs: bug #61218, The -e option confuses the...

 
 

bug #61218: The -e option confuses the $(origin )

Submitted by:  Masahiro Yamada <masahiroy>
Submitted on:  Sat 25 Sep 2021 07:12:00 AM UTC
 
Severity:  3 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  None Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Sat 25 Sep 2021 07:12:00 AM UTC, original submission:  

Two makefiles are attached.

Without -e, $(origin FOO) remembers
that FOO came from the command line.

masahiro@grover:~$ make FOO=1
the origin of FOO: command line
FOO: 1
MAKEOVERRIDES: FOO=1
make -f Makefile.sub
make[1]: Entering directory '/home/masahiro'
the origin of FOO: command line
FOO: 1
MAKEOVERRIDES: FOO=1
make[1]: Leaving directory '/home/masahiro'

With -e, $(origin FOO) in the sub-make
shows 'environment' while it was given
from the command line.
Interestingly, FOO=1 was removed from ‚Äč$(MAKEOVERRIDES)

masahiro@grover:~$ make -e FOO=1
the origin of FOO: command line
FOO: 1
MAKEOVERRIDES: FOO=1
make -f Makefile.sub
make[1]: Entering directory '/home/masahiro'
the origin of FOO: environment
FOO: 1
MAKEOVERRIDES:
make[1]: Leaving directory '/home/masahiro'

Related discussion:
https://lists.gnu.org/archive/html/help-make/2021-09/msg00005.html
R

Masahiro Yamada <masahiroy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #51961:  Makefile added by masahiroy (132B - application/octet-stream)
file #51962:  Makefile.sub added by masahiroy (112B - text/x-microdvd)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by masahiroy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-09-25 masahiroy Attached File- => Added Makefile, #51961
        Attached File- => Added Makefile.sub, #51962

    Back to the top


    Powered by Savane 3.9