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 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 3.82Operating System: POSIX-Based
Fixed Release: 4.0Triage 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
bar2:
bar1: 1

regards,
Rob.

Anonymous

 

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

Attach File(s):
   
   
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
  • -unavailable- added by psmith (Posted a comment)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 07 May 2011 08:11:41 PM UTCpsmithStatusNone=>Fixed
      Assigned toNone=>psmith
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.0
    Mon 02 May 2011 02:55:55 PM UTCpsmithTriage StatusNone=>Verified
    Mon 21 Mar 2011 08:07:50 PM UTCNoneAttached File-=>Added makefile, #22982
      Attached File-=>Added makesimple, #22983

    Back to the top


    Powered by Savane 3.1-cleanup1