bugmake - Bugs: bug #42249, error GNU make 4.0 in handling -q...

 
 

bug #42249: error GNU make 4.0 in handling -q -- exits with 2 if something needs to be updated

Submitted by:  Manoj Srivastava <srivasta>
Submitted on:  Wed 30 Apr 2014 05:52:35 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 4.0Operating System: POSIX-Based
Fixed Release: 4.1Triage Status: Medium Effort

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 02 May 2014 05:49:24 PM UTC, comment #2:

The fix seems to work for the package build that were broken with make 4.0, and so I think this report may be closed when that fix is released.

Manoj Srivastava <srivasta>
Thu 01 May 2014 01:57:00 PM UTC, comment #1:

Pushed a fix for this: we were not properly propagating the status code up when prerequisites were not built due to -q.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Wed 30 Apr 2014 05:52:35 PM UTC, original submission:

[Please retain the CC to -unavailable- so that updates to this report are also recorded in the Debian BTS]

Here's the minimal makefile needed to reproduce it, and a transcript:

,--- detect.mk ---
build-stamp:
echo $@

build-arch: build-stamp
`---

$ make --version | head -n1
GNU Make 3.81
$ make -f detect.mk -qn build-arch; echo $?
1

$ make --version | head -n1
GNU Make 4.0
$ make -f detect.mk -qn build-arch; echo $?
2

This is definitely a bug in GNU make 4.0 in handling -q. The docs are clear on what the exit codes should be, and with -q make should exit with 1 if something needs to be updated and no error was detected.

Manoj Srivastava <srivasta>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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 srivasta (Submitted the item)
  • -unavailable- added by srivasta (Link to the bug in the Debian BTS)
  • -unavailable- added by srivasta (Link to the bug in the Debian BTS)
  •  

    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
    Thu 01 May 2014 01:57:00 PM UTCpsmithStatusNone=>Fixed
      Assigned toNone=>psmith
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.1
      Triage StatusNone=>Medium Effort
    Wed 30 Apr 2014 05:52:35 PM UTCsrivastaCarbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1