bugmake - Bugs: bug #37315, private modifier on pattern...

 
 

bug #37315: private modifier on pattern specific variable ignored as prerequisite

Submitted by:  Ruben Brown <rubrown>
Submitted on:  Mon 10 Sep 2012 02:42:18 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.82Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 10 Sep 2012 09:12:38 PM UTC, comment #1:

This actually is a duplicate of bug #32872; even though that bug discusses target-specific variables not pattern-specific variables, the bug was in code common to both.

With the current CVS version, the output is as you expected:

Paul D. Smith <psmith>
Project Administrator
Mon 10 Sep 2012 02:42:18 PM UTC, original submission:

I’ve found a use case in which a chain of prerequisite targets appears to ignore the private modifier on a pattern specific variable definition. This occurs in gnu make 3.82. Please find a simple example of this use case below. This seems like a bug.

This looks like a bug of a similar type to bug #32872, however that bug is with target specific variables, not what Paul referred to in other bugs as pattern specific variables.

Make 3.82 behavior:

$make-3.82 -f Makefile debug
build: IMMEDIATE[-debug -implicit] DEFERRED[-debug -implicit]
all: IMMEDIATE[-debug -implicit] DEFERRED[-debug -implicit]
debug: IMMEDIATE[-debug] DEFERRED[-debug]

$make-3.82 -f Makefile all
build: IMMEDIATE[] DEFERRED[]
all: IMMEDIATE[-implicit] DEFERRED[-implicit]

Expected Behavior:

As I understand it the -implicit string should never occur outside the evaluation of the all target. E.G. The output of the debug target evaluation above should be, with the non-private –debug modification taking effect, and the private –implicit modification not taking effect outside the all target.

$make-3.82 -f Makefile debug
build: IMMEDIATE[-debug] DEFERRED[-debug]
all: IMMEDIATE[-debug -implicit] DEFERRED[-debug -implicit]
debug: IMMEDIATE[-debug] DEFERRED[-debug]

Ruben Brown <rubrown>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #26521:  Makefile added by rubrown (329B - 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)
  • -unavailable- added by rubrown (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 10 Sep 2012 09:12:38 PM UTCpsmithStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Mon 10 Sep 2012 02:42:18 PM UTCrubrownAttached File-=>Added Makefile, #26521

    Back to the top


    Powered by Savane 3.1-cleanup1