bugmake - Bugs: bug #35336, Altering MAKEFLAGS doesn't...

 
 

bug #35336: Altering MAKEFLAGS doesn't correctly alter the behavior of make

Submitted by:  Brian Vandenberg <phantal>
Submitted on:  Fri 20 Jan 2012 08:01:03 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 3.82Operating System: Any
Fixed Release: 4.0Triage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 22 May 2013 06:52:57 AM UTC, comment #1:

Most of this is a duplicate of Savannah bug #20501. The difference in -p output has also been fixed.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Fri 20 Jan 2012 08:01:03 AM UTC, original submission:

To verify this, I ran 3 separate tests:

  • Test 1:
    • Flags used: -p, entered from the command-line
  • Test 2:
    • Flags used: -Rrnp, entered from the command-line
  • Test 3:
    • Flags used: -Rrnp, added to MAKEFLAGS in a makefile

In each case, I ran:

gmake > testN.txt

... then compared them using meld. Other than adding to MAKEFLAGS in test 3, the makefile was empty. The results were thus:

  • Test 1: This had the most rules/variables (as you might expect)
  • Test 2: There were no default-rules, and the variables emitted appear to be variables that are part of make's functionality
  • Test 3: There were fewer default rules & variables than test #1, but the number of rules and variables that were emitted far exceeded the number that weren't emitted.

Along these lines, but perhaps only cosmetic: You get different output if you pass -p on the command-line -vs- adding it to MAKEFLAGS.

I've attached 4 logs demonstrating these issues.

Brian Vandenberg <phantal>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #24849:  minusp_cmdline.txt added by phantal (24kB - text/plain)
file #24850:  Rrnp_cmdline.txt added by phantal (6kB - text/plain)
file #24851:  minusp_invar.txt added by phantal (24kB - text/plain)
file #24852:  Rrnp_invar.txt added by phantal (23kB - text/plain)

 

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 phantal (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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 22 May 2013 06:52:57 AM UTCpsmithStatusNone=>Fixed
      Assigned toNone=>psmith
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.0
    Fri 20 Jan 2012 08:01:03 AM UTCphantalAttached File-=>Added minusp_cmdline.txt, #24849
      Attached File-=>Added Rrnp_cmdline.txt, #24850
      Attached File-=>Added minusp_invar.txt, #24851
      Attached File-=>Added Rrnp_invar.txt, #24852

    Back to the top


    Powered by Savane 3.1-cleanup