bugmake - Bugs: bug #32872, Inheritance of target-specific...


bug #32872: Inheritance of target-specific variable not always suppressed by private

Submitted by:  None
Submitted on:  Mon 21 Mar 2011 08:07:50 PM UTC  
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  Paul D. Smith <psmith> Open/Closed:  Closed
Component Version:  3.82 Operating System:  POSIX-Based
Fixed Release:  4.0 Triage Status:  Verified

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 02 May 2011 02:55:55 PM UTC, comment #1: 

I agree, this is a bug

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Mon 21 Mar 2011 08:07:50 PM UTC, original submission:  

The private modifier should suppress inheritance of target-specific variables, but this does not seem to always work.

In a chain of dependant targets, if more than one target modifies a private target-specific variable, then the later target in the chain inherits the private variable from the earlier target.

Building the attached makefile with GNU Make 3.82, I get the following output:

bar3: FOO 1 3
bar2: FOO
bar1: FOO 1

I was not expecting the private value of DEFS used by target 'bar1' to be inherited and used when creating the private value of DEFS for target 'bar3'.  The output I expected was:

bar3: FOO 3
bar2: FOO
bar1: FOO 1

The attached makesimple is probably a simpler example and I expected it to give the following output:

bar3: 3
bar1: 1




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

Attach Files:

Attached Files
file #22982:  makefile added by None (165B - application/octet-stream)
file #22983:  makesimple added by None (154B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-07 psmith StatusNone => Fixed
        Assigned toNone => psmith
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.0
    2011-05-02 psmith Triage StatusNone => Verified
    2011-03-21 None Attached File- => Added makefile, #22982
        Attached File- => Added makesimple, #22983

    Back to the top

    Powered by Savane 3.6