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

 
 

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

Submitter:  None
Submitted:  Mon 21 Mar 2011 08:07:50 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.82 Operating System:  POSIX-Based
Fixed Release:  4.0 Triage Status:  Verified
* Mandatory Fields

Add a New Comment Rich Markup
   

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

I agree, this is a bug

Paul D. Smith <psmith>
Group administrator
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
bar2:
bar1: 1

regards,
Rob.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    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 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.13-4448.
    Corresponding source code